For some reason this simple script is not working and I have no idea why. What am I missing?
local player = game.Players.LocalPlayer.leaderstats.Level.Value
repeat
wait(10)
if player == 1 then
wait(0.1)
script.Parent.Text = "Private I (Lvl 1)"
elseif player == 2 then
wait(0.1)
script.Parent.Text = "Private II (Lvl 2)"
elseif player == 3 then
wait(0.1)
script.Parent.Text = "Private III (Lvl 3)"
It is kinda ridiculous that this script works while LocalPlayer does not
script.Parent.Parent.Parent.Parent.Parent.leaderstats.Level.Value
Btw, this script is located at starterGUI

3 comments
Local Player only works in a Local Script
I am able to use game.Players.LocalPlayer in other script so it does work. Its just this one won't work
why is there a repeat at the top, and if its on purpose where is end and until?