SgtJdog22
|
  |
| Joined: 17 Aug 2008 |
| Total Posts: 4475 |
|
|
| 05 Aug 2011 07:46 PM |
game.Players.PlayerAdded:connect(onPlayerRespawned) function onPlayerRespawned(newPlayer) wait(1) gui=Instance.new("BillboardGui") gui.Parent=newPlayer.Character.Head gui.Adornee=newPlayer.Character.Head gui.Size=UDim2.new(3,0,2,0) gui.StudsOffset=Vector3.new(0,2,0) text=Instance.new("ImageLabel") text.Image = "http://www.roblox.com/asset/?id=58522350" text.Size=UDim2.new(1.25,0,1.25,0) text.Position=UDim2.new(-0.125,0,-0.25,0) text.BackgroundTransparency = 1 text.Parent=gui w = game.Lighting.WepsGroup: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)
If you know whats wrong please copy above and fix what is wrong and post it in a reply THNX!
~SgtJdog22 |
|
|
| Report Abuse |
|
|
|
| 05 Aug 2011 07:51 PM |
| What you should do is run that script in "solo" mode with the output open and it should tell you where it error-ed in the script and why |
|
|
| Report Abuse |
|
|
robotmega
|
  |
| Joined: 16 May 2009 |
| Total Posts: 14084 |
|
|
| 05 Aug 2011 08:06 PM |
Just get another free model. :) |
|
|
| Report Abuse |
|
|
|
| 05 Aug 2011 08:08 PM |
robot, stop trolling.
Here, try this. See what you might've done wrong?
game.Players.PlayerAdded:connect(function(newPlayer) wait(1) gui=Instance.new("BillboardGui") gui.Parent=newPlayer.Character.Head gui.Adornee=newPlayer.Character.Head gui.Size=UDim2.new(3,0,2,0) gui.StudsOffset=Vector3.new(0,2,0) text=Instance.new("ImageLabel") text.Image = "http://www.roblox.com/asset/?id=58522350" text.Size=UDim2.new(1.25,0,1.25,0) text.Position=UDim2.new(-0.125,0,-0.25,0) text.BackgroundTransparency = 1 text.Parent=gui w = game.Lighting.WepsGroup:GetChildren() for i = 1,#w do w[i]:Clone().Parent = newPlayer.Backpack 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 |
|
|
SgtJdog22
|
  |
| Joined: 17 Aug 2008 |
| Total Posts: 4475 |
|
|
| 05 Aug 2011 08:38 PM |
| THANK YOU!!! But i fell stupid now... :C |
|
|
| Report Abuse |
|
|
sapG
|
  |
| Joined: 29 Jan 2011 |
| Total Posts: 943 |
|
|
| 05 Aug 2011 09:28 PM |
game.Players.PlayerAdded:connect(onPlayerRespawned) function onPlayerRespawned(newPlayer) wait(1) gui=Instance.new("BillboardGui") gui.Parent=newPlayer.Character.Head gui.Adornee=newPlayer.Character.Head gui.Size=UDim2.new(3,0,2,0) gui.StudsOffset=Vector3.new(0,2,0) text=Instance.new("ImageLabel") text.Image = "http://www.roblox.com/asset/?id=58522350" text.Size=UDim2.new(1.25,0,1.25,0) text.Position=UDim2.new(-0.125,0,-0.25,0) text.BackgroundTransparency = 1 text.Parent=gui w = game.Lighting.WepsGroup: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)
You have the script right but you need to copy and paste the script in each respawn! Your wecome! |
|
|
| Report Abuse |
|
|