#Leaderstats bug, (i think

6 messages · Page 1 of 1 (latest)

warped isle
#
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
#

i know the touched part worked, its just not changes the leaderstats.

#

if you need more info, please ask\

near pendant
warped isle
#

Dude im actually gonna kms

#

i feel so dumb