I tried to make a script, but for some reason it doesn't work. I don't know why, so I need help.
local localplayer = players.LocalPlayer local animation = localplayer.Character.Humanoid:LoadAnimation(script.Parent.Animation) script.Parent.Touched:Connect(function(hit) animation:Play() end)
I am unsure if this works (I'm Still New To Roblox Studio) But Try this create a folder with all the animation in it under the script
local animation = script:WaitForChild("Animations") local Character = player.Character local Humanoid = Character:WaitForChild("Humanoid") local animation = Humanoid:LoadAnimation(Animations:WaitForChild("animation")) script.Parent.Touched;Connect(Function(Hit)) animation:Play() end