I have a LocalScript in StarterGui. I'm trying to get an animation to play when a TouchEnabled player joins, but everytime they die it replays again. Maybe I'm supposed to put the script somewhere else? I don't really know.
Edit: here's part of the script
local touchAnimationPlayed = false if game:GetService("UserInputService").TouchEnabled == true then if touchAnimationPlayed == false then playAnimation() touchAnimationPlayed = true end end