My animation wont work

How would i make this work with a moon animation?

local tool = script.Parent
local anim = script.Folder.anim
local player = game:GetService(“Players”).LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local humanoid = char:WaitForChild(“Humanoid”)
local loadanim = humanoid:LoadAnimation(anim)

tool.Activated:Connect(function()

loadanim:Play()

end)
2 Likes

Can you send the output??? word word

1 Like

Folder is not a valid member of LocalScript “Players.Xxoof_oofoofxX.Backpack.Tool.LocalScript”

1 Like

:WaitForChild(“Folder”) is the answer u may be looking for i havent read much so

1 Like

I fixed it thank you for helping.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.