So im working on it for a long time now and i just cant make it work, i really need help. so from what i got u cant run animation on click detector or atleast it has to be a Local script... anyways... i did make a script a normal script and the only thing it does is run the animation on click but its only working on roblox studio...
so i just wanned to ask if someone knows how to run an animation on click of a click detector (please help me im working on it for too long and it wont work)
function onClicked() hum = game.Players.LocalPlayer.Character.Humanoid anim_feet = hum:LoadAnimation(script.Parent.Animation) current = anim_feet current:Play() wait(2.5) current:Stop() end script.Parent.ClickDetector.MouseClick:connect(onClicked)
that's a normal scripts and it only works in roblox studio

5 comments
script please
just a sec
also, local scripts can access a click detector's mouse click event
it would be alot easier to read if you made it a lua chunk
Bruh this is from one year ago I figured this out already