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: function arguments expected near 'Object1' ???

Previous Thread :: Next Thread 
shrimpoop is not online. shrimpoop
Joined: 28 Sep 2008
Total Posts: 1307
28 Oct 2011 10:36 PM
function onButton1Down(mouse)
local Object1 = game.Lighting.Object:clone()
Object1:MoveTo(sentryghost.Position)
objectghost:remove -- random part don't worry
Object.Parent = game.Workspace --this is where output specifies problem
script.Parent:remove()
end


I would appreciate help.

This is a local script if that makes a difference :l
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
28 Oct 2011 10:38 PM
Object one must be in workspace to move I believe.
Report Abuse
NecroBumpist is not online. NecroBumpist
Joined: 12 Sep 2010
Total Posts: 4198
28 Oct 2011 10:40 PM
The line

"objectghost:remove -- random part don't worry"

should be changed to

"objectghost:remove() -- random part don't worry"
Report Abuse
Ganondude is not online. Ganondude
Joined: 22 Jun 2007
Total Posts: 1175
28 Oct 2011 10:40 PM
Typo: "Object" should be "Object1".
Report Abuse
shrimpoop is not online. shrimpoop
Joined: 28 Sep 2008
Total Posts: 1307
28 Oct 2011 10:43 PM
Fixed :l

Thank you necro, I completely overlooked that.
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