So, the stage selector wasnt changing when i reach the other checkpoint. im not very good in scripting and so is my builder. were trying to figure out how to make it change when i reach the other checkpoint but we couldnt.
heres the script that i use
wait(2)
local player = game.Players.LocalPlayer
local currentStage = player.CurrentStage
while wait() do
script.Parent.Text = tostring(currentStage.value)
end
While I’m not sure as to exactly why this doesn’t work, but It could be some problem as it’s not able to find it, etc. here is a script that should work (although yours should work too):
local player = game.Players.LocalPlayer
repeat
wait()
until player:FindFirstChild("CurrentStage")
local currentStage = player.CurrentStage
currentStage:GetPropertyChangedSignal("Value"):Connect(function()
script.Parent.Text = tostring(currentStage.Value)
end)
Edit: I edited it to property changed signal as it was pointed out I had it wrong there
An attribute is literally Value and other things of an IntValue, NumberValue or almost any instance. Please, before commenting that something is incorrect, know what something is. Here is what I used