local checkpoints = script.Parent:GetChildren()
for i, checkpoint in checkpoints do
if checkpoint:IsA("Part") then
local function touch()
checkpoint.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("HumanoidRootPart") then
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
local stage = tonumber(checkpoint.Name)
player:WaitForChild("leaderstats"):WaitForChild("Stage").Value += 1
end
end)
end
end
end
#Leaderstats bug, (i think
6 messages · Page 1 of 1 (latest)
i know the touched part worked, its just not changes the leaderstats.
if you need more info, please ask\
Are you calling the function?