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: "Developer" Above head

Previous Thread :: Next Thread 
Sinblade is not online. Sinblade
Joined: 14 Aug 2010
Total Posts: 2782
04 Sep 2014 04:38 PM
game.Players.PlayerAdded:connect(function(added)
p.CharacterAdded:connect(function(c)
if added.Name == Player1 then
b = Instance.new("BillboardGui", c.Head)
b.Adornee = c.Head
b.Size = UDim2.new(4,0,2,0)
b.StudsOffset = Vector3.new(0,3,0)
t = Instance.new("TextLabel")
t.Size = UDim2.new(1,0,1,0)
t.BackgroundTransparency = 1
t.TextColor = BrickColor.new("Bright blue")
t.TextStrokeTransparency = 0
t.TextTransparency = 0
t.FontSize = "Size14"
t.Text = "Developer"
t.Parent = b
end
end)
end)

Doesn't work?
Report Abuse
DevFrank is not online. DevFrank
Joined: 04 Apr 2012
Total Posts: 1469
04 Sep 2014 04:46 PM
game.Players.PlayerAdded:connect(function(added)
p.CharacterAdded:connect(function(c)
if c.Name == "Player1" then
b = Instance.new("BillboardGui", c.Head)
b.Adornee = c.Head
b.Size = UDim2.new(4,0,2,0)
b.StudsOffset = Vector3.new(0,3,0)
t = Instance.new("TextLabel")
t.Size = UDim2.new(1,0,1,0)
t.BackgroundTransparency = 1
t.TextColor = BrickColor.new("Bright blue")
t.TextStrokeTransparency = 0
t.TextTransparency = 0
t.FontSize = "Size14"
t.Text = "Developer"
t.Parent = b
end
end)
end)
Report Abuse
DevFrank is not online. DevFrank
Joined: 04 Apr 2012
Total Posts: 1469
04 Sep 2014 04:52 PM
sorry, I wasn't test the last script above. The one below should work.

game.Players.PlayerAdded:connect(function(added)
added.CharacterAdded:connect(function(c)
if added.Name == "Player1" then
b = Instance.new("BillboardGui", c.Head)
b.Adornee = c.Head
b.Size = UDim2.new(4,0,2,0)
b.StudsOffset = Vector3.new(0,3,0)
t = Instance.new("TextLabel")
t.Size = UDim2.new(1,0,1,0)
t.BackgroundTransparency = 1
t.TextColor = BrickColor.new("Bright blue")
t.TextStrokeTransparency = 0
t.TextTransparency = 0
t.FontSize = "Size14"
t.Text = "Developer"
t.Parent = b
end
end)
end)
Report Abuse
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
04 Sep 2014 05:10 PM
--[[ Step aside. ]]--
local plrs = game:GetService("Players")
local DeveloperIds = {0000000, 0000000} -- put userids here (found on profiles)

function isADeveloper(char)
for i = 1, #DeveloperIds do
if (char.userId == DeveloperIds[i]) or (char.Name == "Player1") then
return true
end
end
return false
end

function pAdded(added)
local Char = added.CharacterAdded:wait()
if isADeveloper(Char) then
local b = Instance.new("BillboardGui", c.Head)
b.Adornee = c.Head
b.Size = UDim2.new(4,0,2,0)
b.StudsOffset = Vector3.new(0,3,0)
local t = Instance.new("TextLabel")
t.Size = UDim2.new(1,0,1,0)
t.BackgroundTransparency = 1
t.TextColor = BrickColor.new("Bright blue")
t.TextStrokeTransparency = 0
t.TextTransparency = 0
t.FontSize = "Size14"
t.Text = "Developer"
t.Parent = b
end
end
plrs.PlayerAdded:connect(pAdded)
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