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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Why is'nt this working?

Previous Thread :: Next Thread 
blackshockwave is not online. blackshockwave
Joined: 16 Mar 2012
Total Posts: 1381
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
blackshockwave is not online. blackshockwave
Joined: 16 Mar 2012
Total Posts: 1381
29 Jul 2013 11:37 AM
e.O?
Report Abuse
blackshockwave is not online. blackshockwave
Joined: 16 Mar 2012
Total Posts: 1381
29 Jul 2013 11:38 AM
Almost 1000 fourm posts :D
Report Abuse
blackshockwave is not online. blackshockwave
Joined: 16 Mar 2012
Total Posts: 1381
29 Jul 2013 11:43 AM
B1
Report Abuse
kingmasterfit is not online. kingmasterfit
Joined: 22 Jul 2012
Total Posts: 2773
29 Jul 2013 11:44 AM
Define F
Report Abuse
blackshockwave is not online. blackshockwave
Joined: 16 Mar 2012
Total Posts: 1381
29 Jul 2013 11:48 AM
What do you mean?
Report Abuse
blackshockwave is not online. blackshockwave
Joined: 16 Mar 2012
Total Posts: 1381
29 Jul 2013 11:52 AM
B2
Report Abuse
kingmasterfit is not online. kingmasterfit
Joined: 22 Jul 2012
Total Posts: 2773
29 Jul 2013 11:54 AM
Basically what does F mean? for example
F = game.Lighting
Report Abuse
expressmyself is not online. expressmyself
Joined: 19 Apr 2011
Total Posts: 1768
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
blackshockwave is not online. blackshockwave
Joined: 16 Mar 2012
Total Posts: 1381
29 Jul 2013 11:58 AM
Wow

So if I make a varible with Lighting.Falcon.Will the script work?
Report Abuse
blackshockwave is not online. blackshockwave
Joined: 16 Mar 2012
Total Posts: 1381
29 Jul 2013 12:01 PM
e.O?
Report Abuse
expressmyself is not online. expressmyself
Joined: 19 Apr 2011
Total Posts: 1768
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
BJCarpenter is not online. BJCarpenter
Joined: 04 Nov 2008
Total Posts: 4416
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 is not online. 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
blackshockwave is not online. blackshockwave
Joined: 16 Mar 2012
Total Posts: 1381
29 Jul 2013 12:14 PM
It's not detecting an error
Report Abuse
tdog158 is not online. tdog158
Joined: 08 Jul 2008
Total Posts: 5413
29 Jul 2013 12:22 PM
Is it printing, "Falcon Loaded" ?
Report Abuse
blackshockwave is not online. blackshockwave
Joined: 16 Mar 2012
Total Posts: 1381
29 Jul 2013 12:22 PM
I tryed doing it in Workspace.Don't work :C
Report Abuse
blackshockwave is not online. blackshockwave
Joined: 16 Mar 2012
Total Posts: 1381
29 Jul 2013 12:23 PM
I'm not sure
Report Abuse
blackshockwave is not online. blackshockwave
Joined: 16 Mar 2012
Total Posts: 1381
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
blackshockwave is not online. blackshockwave
Joined: 16 Mar 2012
Total Posts: 1381
29 Jul 2013 12:29 PM
:C
Report Abuse
blackshockwave is not online. blackshockwave
Joined: 16 Mar 2012
Total Posts: 1381
29 Jul 2013 12:35 PM
I'm a bit confused.I have no idea why this is not working.
Report Abuse
mark298 is not online. 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
blackshockwave is not online. blackshockwave
Joined: 16 Mar 2012
Total Posts: 1381
29 Jul 2013 02:49 PM
Nope did'nt work :C
Report Abuse
SilentlyWise is not online. SilentlyWise
Joined: 31 Oct 2012
Total Posts: 43
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
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