|
| 29 Jul 2013 11:35 AM |
So i'm trying to make it clone something I have in lighting into the player but its not working.
function Falcon(player) print("Falcon Loaded") F = Lighting.Falcon:clone() F.Parent = player end
game.Players.PlayerAdded:connect(Falcon) |
|
|
| Report Abuse |
|
|
| |
|
|
| 29 Jul 2013 11:38 AM |
| Almost 1000 fourm posts :D |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
|
| 29 Jul 2013 11:54 AM |
Basically what does F mean? for example F = game.Lighting
|
|
|
| Report Abuse |
|
|
|
| 29 Jul 2013 11:57 AM |
Yes king is right.
ROBLOX did this wierd thing where you have to use game.Lighing you can only do workspace.Object
You can't do Lighing.Object, StarterGui.Object, Players.Object, etc. |
|
|
| Report Abuse |
|
|
|
| 29 Jul 2013 11:58 AM |
Wow
So if I make a varible with Lighting.Falcon.Will the script work? |
|
|
| Report Abuse |
|
|
| |
|
|
| 29 Jul 2013 12:06 PM |
| No -_- it is game.Lighting.object that is what I'm explaining to you you can only to workspace.object |
|
|
| Report Abuse |
|
|
|
| 29 Jul 2013 12:09 PM |
No,
U should Open View>Output, and put print statements all over your code, and it will TELL u why it won't work:
function Falcon(player) -- here u seem to want a var passed to function Falcon print(player) -- Better print: This shows what local, Player, equals. print("Falcon Loaded") F = Lighting.Falcon:clone() F.Parent = player -- Parent = nil. As usual, it's doing exactly what u told it to do.................. end
game.Players.PlayerAdded:connect(Falcon) -- here u call Falcon, yet supply no argument..... |
|
|
| Report Abuse |
|
|
tdog158
|
  |
| Joined: 08 Jul 2008 |
| Total Posts: 5413 |
|
|
| 29 Jul 2013 12:13 PM |
| His script is fine with argument passing, bjcarpenter. Connecting PlayerAdded to his function will automatically pass the player to function Falcon. |
|
|
| Report Abuse |
|
|
|
| 29 Jul 2013 12:14 PM |
| It's not detecting an error |
|
|
| Report Abuse |
|
|
tdog158
|
  |
| Joined: 08 Jul 2008 |
| Total Posts: 5413 |
|
|
| 29 Jul 2013 12:22 PM |
| Is it printing, "Falcon Loaded" ? |
|
|
| Report Abuse |
|
|
|
| 29 Jul 2013 12:22 PM |
| I tryed doing it in Workspace.Don't work :C |
|
|
| Report Abuse |
|
|
| |
|
|
| 29 Jul 2013 12:24 PM |
| Since I can't check in Solo mode I use a gui to detect if its in the player. |
|
|
| Report Abuse |
|
|
| |
|
|
| 29 Jul 2013 12:35 PM |
| I'm a bit confused.I have no idea why this is not working. |
|
|
| Report Abuse |
|
|
mark298
|
  |
| Joined: 24 Oct 2008 |
| Total Posts: 1264 |
|
|
| 29 Jul 2013 12:37 PM |
game.Players.PlayerAdded:connect(function (player) print("Falcon Loaded") F = game.Lighting.Falcon:clone() F.Parent = player end)
|
|
|
| Report Abuse |
|
|
| |
|
|
| 29 Jul 2013 02:51 PM |
game.Players.PlayerAdded:connect(function (player) wait() print("Falcon Loaded") F = game.Lighting.Falcon:clone() F.Parent = player end)
Test>Start Server>Start Player |
|
|
| Report Abuse |
|
|