I tried some ways but i can't figure it out, please help, and always on top is on.
01 | local billboardgui = game:GetService( "ServerStorage" ):WaitForChild( "BillboardGui" ) |
02 |
03 | game.Players.PlayerAdded:Connect( function (player) |
04 |
05 | player.CharacterAdded:Connect( function (character) |
06 | local clonedgui = billboardgui:Clone() |
07 | clonedgui.TextLabel.Text = "Player" |
08 | clonedgui.TextLabel.TextColor 3 = Color 3. fromRGB( 36 , 154 , 136 ) |
09 | clonedgui.Parent = game.Workspace:WaitForChild(player.Name).Head |
10 |
11 | while true do |
12 | wait() |
13 | if player.Name = = "ivan6361" then |
14 | local clonedgui = billboardgui:Clone() |
15 | clonedgui.TextLabel.Text = "Owner(coder)" |
01 | local billboardgui = game:GetService( "ServerStorage" ):WaitForChild( "BillboardGui" ) |
02 |
03 | game.Players.PlayerAdded:Connect( function (player) |
04 |
05 | player.CharacterAdded:Connect( function (character) |
06 | if player.Name = = "e" then |
07 |
08 | local clonedgui = billboardgui:Clone() |
09 | clonedgui.TextLabel.Text = "Owner(coder)" |
10 | clonedgui.TextLabel.TextColor 3 = Color 3. fromRGB( 36 , 154 , 136 ) |
11 | clonedgui.Parent = game.Workspace:WaitForChild(player.Name).Head |
12 | else |
13 |
14 | local clonedgui = billboardgui:Clone() |
15 | clonedgui.TextLabel.Text = "Player" |
16 | clonedgui.TextLabel.TextColor 3 = Color 3. fromRGB( 36 , 154 , 136 ) |
17 | clonedgui.Parent = game.Workspace:WaitForChild(player.Name).Head |
18 | end |
19 | end ) |
20 | end ) |
Should work. Replace "e" with specified name.