generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Humanoid Problem

Previous Thread :: Next Thread 
Travis13000 is not online. Travis13000
Joined: 01 Sep 2012
Total Posts: 418
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
Travis13000 is not online. Travis13000
Joined: 01 Sep 2012
Total Posts: 418
22 Jun 2013 08:27 PM
HALP PLS
Report Abuse
Voidion is not online. 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
Travis13000 is not online. Travis13000
Joined: 01 Sep 2012
Total Posts: 418
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 is not online. 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
Travis13000 is not online. Travis13000
Joined: 01 Sep 2012
Total Posts: 418
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 is not online. 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
Travis13000 is not online. Travis13000
Joined: 01 Sep 2012
Total Posts: 418
22 Jun 2013 08:48 PM
Thank you. C:
It works
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image