#Help with script

1 messages · Page 1 of 1 (latest)

little wraith
#

Hi so I was trying to make a animation on a npc but sadly I cant get it to work. I found this script online and It should work.. sadly works kinda.
If i play test nothing happens but when I click current server it does work.. help

--Made by TotalClip--

--Insert this into your character--
local hum = script.Parent:WaitForChild("Humanoid")
local anim = hum:LoadAnimation(script:FindFirstChildOfClass("Animation"))
anim.Looped = true
anim:Play()

#

Ignore the ahh animation lol

elfin wren
#
local model = script.Parent
local hum = model:FindFirstChildOfClass("Humanoid")
if not hum then return end
local animator = hum:FindFirstChildOfClass("Animator")
local animObject = script:FindFirstChildOfClass("Animation")
if not animObject then return end
local anim = animator:LoadAnimation(animObject)
anim.Looped = true
anim:Play()
print("executed")
elfin wren
#

screenshot the bottom screen of your roblox studio

#

go to scripting chat

little wraith
elfin wren
#

lmfao