It works perfectly fine until the reset

can u give me some tips or for my script for me?

local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:wait()
local SGui = plr.PlayerGui:WaitForChild('Animations')
local j1 = script.Parent:FindFirstChild('Jump')
local da = char:WaitForChild('Animate')
local jump = da.jump.JumpAnim


script.Parent.MouseButton1Click:connect(function()
	if j1 and jump then
		jump.AnimationId = j1.AnimationId
	end	
end)

char = plr.CharacterAdded:wait()





3 comments

0

Why are you defining character again at the bottom?

0

it worked once so the player would load before the gui

0

Where is this script being placed? The character? Player? If the character, make sure you put the script back in every time you respawn.