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: Can someone make sense out of this for me, please?

Previous Thread :: Next Thread 
Pendragon is not online. Pendragon
Joined: 14 Oct 2007
Total Posts: 8263
17 Aug 2011 10:30 PM
--Tutorial: First, create your honor group. Get the group ID and replace the mentioned number below with it.
--Second, use your favorite program and create a cool banner to go above the person's head. Upload it, place the decal on a brick,
--and get the Asset ID. Replace the asset below with the new asset you got, it is also tagged where this needs to be done.
--Third, make a new model named "WepsGroup" (CAPS SENSITIVE!!) and put it in the lighting. Put any guns or tools you want your honor
--troops to spawn with inside that model. After all this, your good to go!

game.Players.PlayerAdded:connect(onPlayerRespawned)
function onPlayerRespawned(newPlayer)
wait(1)
if newPlayer:IsInGroup(130233) then --Replace the number here with your group ID
gui=Instance.new("BillboardGui")
gui.Parent=newPlayer.Character.Head
gui.Adornee=newPlayer.Character.Head
gui.Size=UDim2.new(2,0,3,0) --This adjusts the Size of your logo. I had to play with the numbers a little.
gui.StudsOffset=Vector3.new(0,2,0)
text=Instance.new("ImageLabel")
text.Image = "http://www.roblox.com/asset/?id=55524322" -- Replace this with the texture ID of the header you want your honor troop to have.
text.Size=UDim2.new(1.25,0,0.75,0)
text.Position=UDim2.new(-0.125,0,-0.25,0)
text.BackgroundTransparency = 1
text.Parent=gui
w = game.Lighting.HAWKI:GetChildren()
for i = 1,#w do
w[i]:Clone().Parent = newPlayer.Backpack
end
end
end

function onPlayerEntered(newPlayer)
newPlayer.Changed:connect(function (property)
if (property == "Character") then
onPlayerRespawned(newPlayer)
end
end)
end

game.Players.PlayerAdded:connect(onPlayerEntered)

--Created by tibiscus




I want it to show my group logo on top of me when I enter a game, you have to enter the ID of your group on the top, but I don't know what else.
Report Abuse
Pendragon is not online. Pendragon
Joined: 14 Oct 2007
Total Posts: 8263
17 Aug 2011 10:43 PM
bump
Report Abuse
Pendragon is not online. Pendragon
Joined: 14 Oct 2007
Total Posts: 8263
17 Aug 2011 10:49 PM
._. ..
Report Abuse
Pendragon is not online. Pendragon
Joined: 14 Oct 2007
Total Posts: 8263
17 Aug 2011 11:02 PM
Bump, pl0x I need help
Report Abuse
xXArkayXx is not online. xXArkayXx
Joined: 11 Aug 2011
Total Posts: 10
17 Aug 2011 11:04 PM
The script is for group banners above people's heads and for giving guns to members of your group when they spawn I guess :P
Report Abuse
Pendragon is not online. Pendragon
Joined: 14 Oct 2007
Total Posts: 8263
17 Aug 2011 11:38 PM
No help still? I'll ask tomorrow I guess >>_<
Report Abuse
Pendragon is not online. Pendragon
Joined: 14 Oct 2007
Total Posts: 8263
18 Aug 2011 12:14 AM
Bump..

~PD
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
18 Aug 2011 12:16 AM
Output?

<'eof' expected near 'end' on line 9001>
Report Abuse
Pendragon is not online. Pendragon
Joined: 14 Oct 2007
Total Posts: 8263
18 Aug 2011 12:19 AM
@Nate

?

~PD
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
18 Aug 2011 12:31 AM
@nate - He can't use output, as this requires online mode.

OT: You have an awesome namesnipe, in my opinion, I LOVE that book series. :o
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
18 Aug 2011 12:34 AM
Are you sure you have a model in Lighting called "HAWKI"?
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
18 Aug 2011 12:41 AM
Try this:

game.Players.PlayerAdded:connect(onPlayerRespawned)
function onPlayerRespawned(newPlayer)
wait(1)
if newPlayer:IsInGroup(130233) then --Replace the number here with your group ID
gui=Instance.new("BillboardGui")
gui.Parent=newPlayer.Character.Head
gui.Adornee=newPlayer.Character.Head
gui.Size=UDim2.new(2,0,3,0) --This adjusts the Size of your logo. I had to play with the numbers a little.
gui.StudsOffset=Vector3.new(0,2,0)
text=Instance.new("ImageLabel")
text.Image = "http://www.roblox.com/asset/?id=55524322" -- Replace this with the texture ID of the header you want your honor troop to have.
text.Size=UDim2.new(1.25,0,0.75,0)
text.Position=UDim2.new(-0.125,0,-0.25,0)
text.BackgroundTransparency = 1
text.Parent=gui
w = game.Lighting:findFirstChild("HAWKI")
if w then
w2 = w:GetChildren()
for i = 1,#w2 do
w2[i]:Clone().Parent = newPlayer.Backpack
end
end
end
end

function onPlayerEntered(newPlayer)
newPlayer.Changed:connect(function (property)
if (property == "Character") then
onPlayerRespawned(newPlayer)
end
end)
end

game.Players.PlayerAdded:connect(onPlayerEntered)

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