Billboard label is cloning itself and not coloring correctly?[Half Solved]
Asked by
6 years ago Edited 6 years ago
ok so this script is supposed to clone a billboard gui and set it inside every player that joins and that works fine but it is coloring everyones namelabel blue (aka owner only) and it is also cloning another billboard gui in the 0,0,0 position in the game idk where i tried deleting everything in workspace and every other thing in existance in studio but it still sets there and just says PlayerName (default value) and its local only because it didnt show up server sided and i tried the whole delete everything process again with dex and still nothing it just sits there looking dumb
script:
01 | game.Players.PlayerAdded:Connect( function (player) |
02 | player.CharacterAdded:Connect( function (char) |
03 | local human = char.Humanoid or char:WaitForChild( "Humanoid" ) |
04 | human.NameDisplayDistance = 0 |
05 | local gui = script.NameLabel:Clone() |
06 | local label = gui.Player |
07 | label.Text = player.Name |
08 | label.TextColor 3 = Color 3. new( 0 / 255 , 0 / 255 , 255 / 255 ) |
10 | human.DisplayDistanceType = "None" |
11 | if player.UserId = = 38270341 then |
12 | label.TextColor 3 = script.Parent.Script.Owner.Value |
13 | elseif player.UserId = = 291995028 or player.UserId = = 131541716 or player.UserId = = 41163273 or player.UserId = = 291995028 then |
14 | label.TextColor 3 = script.Parent.Script.Admin.Value |
15 | elseif game:GetService( "MarketplaceService" ):UserOwnsGamePassAsync(player.UserId, 5665608 ) then |
16 | label.TextColor 3 = script.Parent.Script.VIP.Value |
18 | label.TextColor 3 = Vector 3. new( 0 / 255 , 0 / 255 , 0 / 255 ) |