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: Why won't this work!?

Previous Thread :: Next Thread 
SgtJdog22 is not online. 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
Kingslaya356 is not online. Kingslaya356
Joined: 09 Jul 2008
Total Posts: 178
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 is not online. robotmega
Joined: 16 May 2009
Total Posts: 14084
05 Aug 2011 08:06 PM
Just get another free model.
:)
Report Abuse
ServerLabs is not online. ServerLabs
Joined: 29 Dec 2010
Total Posts: 2263
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 is not online. 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 is not online. 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
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