Animation script isn't working on team create

 local debounce = true
local remevent = game.ReplicatedStorage.RE.money
if script.Parent.Equipped then
	local plrstat = game.Players.LocalPlayer.leaderstats
	local strestat = plrstat.Strength
	script.Parent.Activated:Connect(function()
		if debounce == true then
			debounce = false
			strestat.Value = strestat.Value + 1 

			local hum = game.Players.LocalPlayer.Character.Humanoid
			hum:LoadAnimation(script.Parent.weight):Play()


			remevent:FireServer(strestat.Value)


			wait(1)
			debounce = true
		end
	end)
end

This is inside a local script, the game is on team create.
This only works on my end and not his, I’ve committed the script using drafts however it still does not work. I can’t tell if this is a scripting error, or if it’s an error on studio’s part.
Any help is greatly appreciated.

I ran into a similar issue recently, but the animations started working when my friend reuploaded the animations on a place that didn’t have TC on.

1 Like