|
| 22 Jun 2013 08:23 PM |
I want this script to continue putting the same billboardGUI even when the player dies or resets but i cant do it so can someone help me?
if true then game.Players.PlayerAdded:connect(function(Plr) local player = Plr local cname = Plr.Name if player:IsInGroup(785479) then local findcharacter = game.Workspace:FindFirstChild(cname) if findcharacter then local billboard = Instance.new("BillboardGui",findcharacter.Head) local text = Instance.new("TextLabel",billboard) text.Text = "LSC" billboard.Active = true billboard.AlwaysOnTop = true billboard.Enabled = true billboard.Size = UDim2.new(0, 1, 0, 1) text.FontSize = "Size18" billboard.ExtentsOffset = Vector3.new(0, 4, 0) text.Size = UDim2.new(0, 1, 0, 1) text.Visible = true local brickcolor = BrickColor.new("Lime green") text.TextColor3 = brickcolor.Color --text.TextColor3 = Color3.new(85,255,0) text.TextStrokeTransparency = 0 else local brickcolor = BrickColor.new("Really red") text.TextColor3 = brickcolor.Color --text.TextColor3 = Color3.new(255,0,0) text.Text = "GUEST" end end end) end |
|
|
| Report Abuse |
|
|
| |
|
Voidion
|
  |
| Joined: 01 Aug 2011 |
| Total Posts: 2668 |
|
|
| 22 Jun 2013 08:29 PM |
Plr.CharacterAdded:connect(function(Character) local billboard = Instance.new("BillboardGui", Character.Head) end) |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2013 08:32 PM |
| What does that have to do with anything by making it so when the player dies the billboardgui would still be in the head?? |
|
|
| Report Abuse |
|
|
Voidion
|
  |
| Joined: 01 Aug 2011 |
| Total Posts: 2668 |
|
|
| 22 Jun 2013 08:35 PM |
| This will fire everytime the character spawns or respawns. The billboard gui will be inserted into the character's head everytime they spawn or respawn. This is what you wanted, right? |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2013 08:36 PM |
| Yes but it already does that once in the beginning of the script... Where do I put that in the script? and doesnt there have to be a "if Plr.Humanoid == 0 then" in the script? |
|
|
| Report Abuse |
|
|
Voidion
|
  |
| Joined: 01 Aug 2011 |
| Total Posts: 2668 |
|
|
| 22 Jun 2013 08:45 PM |
I'm going to shorten this a bit...
game.Players.PlayerAdded:connect(function(Plr) Plr.CharacterAdded:connect(function(Chr) local Name = Plr.Name if Plr:IsInGroup(785479) then local billboard = Instance.new("BillboardGui", Chr.Head) local text = Instance.new("TextLabel", billboard) text.Text = "LSC" billboard.Active = true billboard.AlwaysOnTop = true billboard.Enabled = true billboard.Size = UDim2.new(0, 1, 0, 1) text.FontSize = "Size18" billboard.ExtentsOffset = Vector3.new(0, 4, 0) text.Size = UDim2.new(0, 1, 0, 1) text.Visible = true local brickcolor = BrickColor.new("Lime green") text.TextColor3 = brickcolor.Color --text.TextColor3 = Color3.new(85,255,0) text.TextStrokeTransparency = 0 else local brickcolor = BrickColor.new("Really red") text.TextColor3 = brickcolor.Color --text.TextColor3 = Color3.new(255,0,0) text.Text = "GUEST" end end) end)
If this doesn't work please don't just say "didn't work". Say what it says in the output. |
|
|
| Report Abuse |
|
|
| |
|