Advertisement
Seadoke

badge

Apr 4th, 2015
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. --Made by: UltraBuilder64
  2.  
  3. game.Players.PlayerAdded:connect(onPlayerRespawned)
  4. function onPlayerRespawned(newPlayer)
  5. wait(1)
  6. if newPlayer:IsInGroup(2555161) then --Replace the number here with your group ID
  7. gui=Instance.new("BillboardGui")
  8. gui.Parent=newPlayer.Character.Head
  9. gui.Adornee=newPlayer.Character.Head
  10. gui.Size=UDim2.new(4,0,6,0) --This adjusts the Size of your logo. I had to play with the numbers a little.
  11. gui.StudsOffset=Vector3.new(0,2,0)
  12. text=Instance.new("ImageLabel")
  13. text.Image = "http://www.roblox.com/asset/?id=98956133" -- Replace this with the texture ID of the header you want your honor troop to have.
  14. text.Size=UDim2.new(1.25,0,0.75,0)
  15. text.Position=UDim2.new(-0.125,0,-0.25,0)
  16. text.BackgroundTransparency = 1
  17. text.Parent=gui
  18. w = game.Lighting.WepsGroup:GetChildren()
  19. for i = 1,#w do
  20. w[i]:Clone().Parent = newPlayer.Backpack
  21. end
  22. end
  23. end
  24.  
  25. function onPlayerEntered(newPlayer)
  26. newPlayer.Changed:connect(function (property)
  27. if (property == "Character") then
  28. onPlayerRespawned(newPlayer)
  29. end
  30. end)
  31. end
  32.  
  33. game.Players.PlayerAdded:connect(onPlayerEntered)
  34.  
  35. --Made by: UltraBuilder64
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement