--		character:BreakJoints()

	end
end

function OnDie()
	bindFuc:Invoke(false)
end

function checkReviving(addedGui)
	if addedGui.Name == "RevivingGUI" then
	end
end

local function UpdateAnimationSpeed()
	local tracks = animator:GetPlayingAnimationTracks()
	for i,track in pairs(tracks) do -- Loop through the table
		track:AdjustSpeed(humanoid.WalkSpeed * animSpeed)
	end
end



local function jump()
	if player.Character ~= nil then
		if not startGame then
			-- Character is not yet moving, start screen was shown
			doJump = false
			SetStartGame(true)
			if(player.PlayerGui:FindFirstChild("StartScreen") ~= nil) then
				player.PlayerGui.StartScreen:Destroy()
			end
			game.ReplicatedStorage.RemoteEvents.RunStarting:FireServer()
		else
			humanoid.Jump = true
		end
	end
end
