So my checkpoints were working then stopped

Hello as you probably saw my checkpoints where working then they stopped
extra information (It was still working for other players just stopped for me)

Here is the two scripts i use for my checkpoints
Script 1
local spawn = script.Parent
if hit and hit.Parent and hit.Parent:FindFirstChild(“Humanoid”) then
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
local checkpointData = game.ServerStorage:FindFirstChild(“CheckpointData”)
if not checkpointData then
checkpointData =“Model”, game.ServerStorage)
checkpointData.Name = “CheckpointData”

	local checkpoint = checkpointData:FindFirstChild(tostring(player.userId))
	if not checkpoint then
		checkpoint ="ObjectValue", checkpointData)
		checkpoint.Name = tostring(player.userId)

			character:WaitForChild("HumanoidRootPart").CFrame = game.ServerStorage.CheckpointData[tostring(player.userId)].Value.CFrame +, 4, 0)

	checkpoint.Value = spawn

Script 2
function ot(hit)
if hit.Parent ~= nil then
local player = game.Players:playerFromCharacter(hit.Parent)
if player ~= nil then
if player.leaderstats.Stage.Value == script.Parent.Name - 1 then
local h = hit.Parent:FindFirstChild(“Humanoid”)
if h ~= nil then
if h.Health ~= 0 then
player.leaderstats.Stage.Value = script.Parent.Name
end end end end end end


Here is a video to show it btw the flags are the checkpoints
robloxapp-20210207-1802212.wmv (3.0 MB)

I’ve seen this before In obby games if u have the levitation animation u don’t touch the part and then it doesn’t work. I hope this helps

This isnt the case i have to forced to basic animation and it was working didnt change my animation and it stoped working

1 Like