So I’m looking to optimize my code a little bit further, and I want to be able to have a script connection disconnect itself. I don’t think it’s possible to disconnect it inside the function? I’ve been researching for about an hour or two and I can’t find anything because it’s a very niche problem.
local signal3 = track.Ended:Connect(function()
print("Animation Track Ended")
--Do code here
signal3:Disconnect()
end)