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: onPlayerRespawned script?

Previous Thread :: Next Thread 
JOJObuddy011 is not online. JOJObuddy011
Joined: 27 Sep 2012
Total Posts: 840
27 Jun 2014 08:22 PM
How do I make this a function? Ill I see is free models with the playerenter function.
Report Abuse
Krosskode is not online. Krosskode
Joined: 26 Aug 2010
Total Posts: 11001
27 Jun 2014 08:25 PM
player.CharacterAdded:connect(function(character)
Report Abuse
Krosskode is not online. Krosskode
Joined: 26 Aug 2010
Total Posts: 11001
27 Jun 2014 08:26 PM
PlayerAdded is when they join.

CharacterAdded is everytime their character gets added back into the game i.e respawning.
Report Abuse
JOJObuddy011 is not online. JOJObuddy011
Joined: 27 Sep 2012
Total Posts: 840
27 Jun 2014 08:28 PM
@Kross
This didnt work.
Report Abuse
Krosskode is not online. Krosskode
Joined: 26 Aug 2010
Total Posts: 11001
27 Jun 2014 08:29 PM
What's your code?
Report Abuse
JOJObuddy011 is not online. JOJObuddy011
Joined: 27 Sep 2012
Total Posts: 840
27 Jun 2014 08:30 PM
Wait, I forgot to edit the rest of the script, hold on.
Report Abuse
JOJObuddy011 is not online. JOJObuddy011
Joined: 27 Sep 2012
Total Posts: 840
27 Jun 2014 08:32 PM
Still didnt work.
Heres my current script:


newPlayer.CharacterAdded:connect(function(character)
while newPlayer.Character ~= nil do end
character:FindFirstChild("Humanoid").NameOcclusion = Enum.OccludeAll
wait()
c = script.BillboardGui:Clone()
c.Parent = character
c.AdorneeScript.Disabled = false
c.TextLabel1.Visible = true
c.TextLabel.Visible = true
end)
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
27 Jun 2014 08:33 PM
you never defined newPlayer
Report Abuse
JOJObuddy011 is not online. JOJObuddy011
Joined: 27 Sep 2012
Total Posts: 840
27 Jun 2014 08:33 PM
oh forgot to do something
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
27 Jun 2014 08:33 PM
and get rid of the ugly while loop
Report Abuse
JOJObuddy011 is not online. JOJObuddy011
Joined: 27 Sep 2012
Total Posts: 840
27 Jun 2014 08:36 PM
current script:


newPlayer.CharacterAdded:connect(function(character)
character:FindFirstChild("Humanoid").NameOcclusion = Enum.OccludeAll
wait()
c = script.BillboardGui:Clone()
c.Parent = character
c.AdorneeScript.Disabled = false
c.TextLabel1.Visible = true
c.TextLabel.Visible = true
end)
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
27 Jun 2014 08:38 PM
game.Players.PlayerAdded:connect(function(newPlayer)
newPlayer.CharacterAdded:connect(function(character)
character:FindFirstChild("Humanoid").NameOcclusion = Enum.OccludeAll
wait()
local c = script.BillboardGui:Clone()
c.Parent = character
c.AdorneeScript.Disabled = false
c.TextLabel1.Visible = true
c.TextLabel.Visible = true
end)
end)
Report Abuse
JOJObuddy011 is not online. JOJObuddy011
Joined: 27 Sep 2012
Total Posts: 840
27 Jun 2014 08:38 PM
bump

I need help.
Report Abuse
JOJObuddy011 is not online. JOJObuddy011
Joined: 27 Sep 2012
Total Posts: 840
27 Jun 2014 08:40 PM
bump(2)
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
27 Jun 2014 08:40 PM
I just helped you stop bumping.
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
27 Jun 2014 08:41 PM
oh and you did nameocclusion wrong

game.Players.PlayerAdded:connect(function(newPlayer)
newPlayer.CharacterAdded:connect(function(character)
character:FindFirstChild("Humanoid").NameOcclusion = Enum.NameOcclusion.OccludeAll
wait()
local c = script.BillboardGui:Clone()
c.Parent = character
c.AdorneeScript.Disabled = false
c.TextLabel1.Visible = true
c.TextLabel.Visible = true
end)
end)
Report Abuse
JOJObuddy011 is not online. JOJObuddy011
Joined: 27 Sep 2012
Total Posts: 840
27 Jun 2014 08:43 PM
i didnt see where you first helped
Report Abuse
JOJObuddy011 is not online. JOJObuddy011
Joined: 27 Sep 2012
Total Posts: 840
27 Jun 2014 08:49 PM
it didnt remove names...
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