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
|
  |
| Joined: 14 Oct 2007 |
| Total Posts: 8263 |
|
| |
|
Pendragon
|
  |
| Joined: 14 Oct 2007 |
| Total Posts: 8263 |
|
| |
|
Pendragon
|
  |
| Joined: 14 Oct 2007 |
| Total Posts: 8263 |
|
| |
|
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
|
  |
| 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
|
  |
| Joined: 14 Oct 2007 |
| Total Posts: 8263 |
|
| |
|
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
|
  |
| Joined: 14 Oct 2007 |
| Total Posts: 8263 |
|
| |
|
|
| 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 |
|
|
|
| 18 Aug 2011 12:34 AM |
| Are you sure you have a model in Lighting called "HAWKI"? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|