|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| Joined: 31 May 2012 |
| Total Posts: 66 |
|
| |
|
noah
|
  |
| Joined: 11 Sep 2006 |
| Total Posts: 18977 |
|
|
| 09 Jan 2013 08:05 PM |
| jonah's script should wurk, yo |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 09 Jan 2013 08:37 PM |
| *I don't want to put it in the StarterGui for gameplay reasons, |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|