I have it so when a player touches a part it triggers an animation, but it triggers multiple times. Ive solved this before I just dont remember how I did it, is there a wiki page or anything on this?
Heres the script, its under starterplayer. Because thats where all my scripts go that are vital for the player.
local trigger = game.Workspace.AnimationRunners.AnimationRunner1
local player = game.Players.LocalPlayer
local cutscene1 = trigger.Cutscene1
repeat
wait()
until player.Character
trigger.Touched:connect(function()
local animation1 = player.Character.Humanoid:LoadAnimation(cutscene1)
animation1:Play()
end)
I only want it to trigger one time for forever... Dun dun daaaaah (unless they rejoin)

2 comments
If I'm correct, the script will reset itself on player reset. Or is this just in PlayerGui?
Its fine if it resets on death. I am creating a full story mode game with AI and voices and everything so if you die the cutscene will reset. But it works so thank you :)