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: Player Entered

Previous Thread :: Next Thread 
AnonymousAcc0unt is not online. AnonymousAcc0unt
Joined: 26 Mar 2009
Total Posts: 81
09 Jan 2013 07:43 PM
I really hate this function... I have so much trouble with it!

Here's an exerpt (the essential part of the script)...:

game.Players.ChildAdded:connect(function(p)
game.Lighting.Value:clone().Parent = p
wait()
end)

Why does a player not receive the value?

Please note that I want the player to receive it, not the character.

Thanks!
Report Abuse
Jonah13249 is not online. Jonah13249
Joined: 09 Oct 2009
Total Posts: 2105
09 Jan 2013 07:49 PM
game.Players.PlayerAdded:connect(function (player)
 game.Lighting.Value:clone().Parent = player.Backpack --Into their backpack? PlayerGui?
end)

or if you want it in the character, try this:

game.Players.PlayerAdded:connect(function (player)
 player.CharacterAdded:connect(function (character)
  game.Lighting.Value:clone().Parent = character
 end)
end)

~ṡсɾïρτïṉģ hεlρεɾṡ ۩ lυαlεαɾṉεɾṡ ④ øƒвќṃṿј~ ღ ▂▃▅▆█ρεώḋïερïε☄сυτïερïε█▆▅▃▂ღ 【▬】
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
09 Jan 2013 07:50 PM
'
game.Players.ChildAdded:connect(function(p)
game.Lighting.Value:clone().Parent = p
wait()
end)
'

1)Make sure it's a normal, not local script.
2)Make sure the value exists
3)Make sure the script is in Workspace [NOT lighting]
Report Abuse
AnonymousAcc0unt is not online. AnonymousAcc0unt
Joined: 26 Mar 2009
Total Posts: 81
09 Jan 2013 08:00 PM
It's not working! I made sure of those three things, cntkillme. Still nothing!
It's in Workspace, the value exists, it's not disabled and it is a normal (not Local) script.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
09 Jan 2013 08:01 PM
try this:

game.Players.PlayerAdded:connect(function(p)
game.Lighting["Value"]:clone().Parent = p
end)
Report Abuse
LFMEB is not online. LFMEB
Joined: 31 May 2012
Total Posts: 66
09 Jan 2013 08:02 PM
lol'd
Report Abuse
noah is online. noah
Joined: 11 Sep 2006
Total Posts: 18977
09 Jan 2013 08:05 PM
jonah's script should wurk, yo
Report Abuse
AnonymousAcc0unt is not online. AnonymousAcc0unt
Joined: 26 Mar 2009
Total Posts: 81
09 Jan 2013 08:36 PM
It worked, thank you.

But now I want to do the same thing with a ScreenGui.
I don't want to put it in the PlayerGui for gameplay reasons, so I want it to clone into the PlayerGui but it doesn't work! I have a frame and everything in the ScreenGui, and they are checked Visible. But it never wants to copy and paste into the player's PlayerGui. :(
Report Abuse
AnonymousAcc0unt is not online. AnonymousAcc0unt
Joined: 26 Mar 2009
Total Posts: 81
09 Jan 2013 08:37 PM
*I don't want to put it in the StarterGui for gameplay reasons,
Report Abuse
Jonah13249 is not online. Jonah13249
Joined: 09 Oct 2009
Total Posts: 2105
09 Jan 2013 08:52 PM
game.Players.PlayerAdded:connect(function (player)
game.Lighting.Value:clone().Parent = player.PlayerGui
end)

~ṡсɾïρτïṉģ hεlρεɾṡ ۩ lυαlεαɾṉεɾṡ ④ øƒвќṃṿј~ ღ ▂▃▅▆█ρεώḋïερïε☄сυτïερïε█▆▅▃▂ღ 【▬】
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