✓ Accepted answer
Since you are changing the parent's text on the client, the change will not replicate to the server. This means that only that player will see the changes. This also means that the change didn't technically occur because it is never changed on the server.
To fix this, use a PlayerAdded event to edit the text when a new player joins. This event has a player parameter that refers to the player that joined. Also pair this with a GetPropertyChangedSignal event that will fire whenever the value changes rather than every second inside a while loop.
game:GetService("Players").PlayerAdded:Connect(function(player)
local levelData = player.Extra:WaitForChild("Data_Level")
local Lvl
levelData:GetPropertyChangedSignal("Value"):Connect(function()
Lvl.Text = levelData.Value
end)
Lvl.Text = levelData.Value
end)
Hope this helped!
1 comment
If this is a local script how come you can use .LocalScript