From e1f378505c41f21cb57ee2f556ba905b77f3b165 Mon Sep 17 00:00:00 2001 From: Austin Date: Fri, 29 Oct 2021 21:58:34 -0400 Subject: [PATCH] use local animations --- luascripts/game/gameserver.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/luascripts/game/gameserver.lua b/luascripts/game/gameserver.lua index 8b25f73..739f8aa 100644 --- a/luascripts/game/gameserver.lua +++ b/luascripts/game/gameserver.lua @@ -149,6 +149,10 @@ if placeId~=nil and baseurl~=nil then game:Load(baseurl .. "/asset/?id=" .. placeId) end +if game:GetService("StarterPlayer"):FindFirstChild("StarterCharacterScripts") ~= nil and game:GetService("StarterPlayer").StarterCharacterScripts:FindFirstChild("Animate") == nil then + pcall(function()game:GetObjects("rbxasset://fonts/humanoidAnimateLocal.rbxm")[1].Parent = game:GetService("StarterPlayer").StarterCharacterScripts end) +end + -- Now start the connection ns:Start(port)