I know that this is for when a player enters; but i cant seem to get it to automatically update for my RPG. Basically the GUi above the players head will show his level, and when he levels up the gui should update, but idk how to put this into the code without it messing up the parameters:
game.Players.PlayerAdded:connect(onPlayerRespawned)
function onPlayerRespawned(newPlayer)
wait(1)
gui=Instance.new("BillboardGui")
gui.Parent=newPlayer.Character.Head
gui.Adornee=newPlayer.Character.Head
gui.Size=UDim2.new(3,0,3,0)
gui.StudsOffset=Vector3.new(0,2,0)
local text1=Instance.new("TextLabel")
text1.Text = ("Level:"..newPlayer.leaderstats.Lvl.Value)
text1.FontSize = "Size14"
text1.TextColor3 = Color3.new(170, 0, 0)
text1.TextStrokeColor3 = Color3.new(0, 0, 0)
text1.TextStrokeTransparency = 0
text1.Size=UDim2.new(1,0,1,0)
text1.Position=UDim2.new(0,0,0,0)
text1.BackgroundTransparency = 1
text1.Parent=gui
end
function onPlayerEntered(newPlayer)
newPlayer.Changed:connect(function (property)
if (property == "Character") then
onPlayerRespawned(newPlayer)
end
end)
end
game.Players.PlayerAdded:connect(onPlayerEntered)
thanks ~ bubs

5 comments
Thanks a lot! But does this mean that other players will be able to see it? (Because it's a local script) ?
Other players will be able to see it as long as you don't have filtering enabled
How can I make sure filtering is off? Or is it off by default ?
Umm how do i make a new LocalScript in Backpack?
Filtering is off by default, and to make a localscript in backpack just make it in the StarterPack while in edit mode!