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 » Scripters
Home Search
 

Re: What is wrong with this line of code? Vector3 stuff

Previous Thread :: Next Thread 
GamerX2O is not online. GamerX2O
Joined: 29 Nov 2013
Total Posts: 93
07 Oct 2016 09:31 PM
script.Parent.Parent.BlueLamp.LightPart.Position = script.Parent.Parent.BlueLamp.LightPart + Vector3.new(0, 6, 0)

thats the line of code, this is the error.

21:29:47.615 - Workspace.2by2Plate.Plate.Script:33: bad argument #1 to '?' (Vector3 expected, got Object)

Report Abuse
nobodyish is not online. nobodyish
Joined: 12 Apr 2015
Total Posts: 509
07 Oct 2016 09:33 PM
full script plz


Report Abuse
GamerX2O is not online. GamerX2O
Joined: 29 Nov 2013
Total Posts: 93
07 Oct 2016 09:33 PM
lol nevermind I found it. Maybe i'll leave this thread open to see if other people can figure it out. XD it was a dumb mistake
Report Abuse
Real_Spooky is not online. Real_Spooky
Joined: 23 Oct 2013
Total Posts: 3149
07 Oct 2016 09:34 PM
You're trying to use the + operator between an object and a Vector3. Notice that you said "... BlueLamp.LightPart + Vector3.new( ..."
Report Abuse
Egzekiel is online. Egzekiel
Joined: 10 Jan 2011
Total Posts: 1079
07 Oct 2016 09:34 PM
You just forgot to put ".Position".


Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
07 Oct 2016 09:34 PM
You forgot .Position
Report Abuse
GamerX2O is not online. GamerX2O
Joined: 29 Nov 2013
Total Posts: 93
07 Oct 2016 09:35 PM
Those last two guys figured it out GG
Report Abuse
DevVince is not online. DevVince
Joined: 08 Nov 2008
Total Posts: 9245
07 Oct 2016 09:44 PM
Three*
Report Abuse
Egzekiel is online. Egzekiel
Joined: 10 Jan 2011
Total Posts: 1079
07 Oct 2016 09:46 PM
can i haz my cookie


Report Abuse
ace12345678135 is not online. ace12345678135
Joined: 30 Aug 2008
Total Posts: 341
07 Oct 2016 10:07 PM
NO *Grumpy cat face*
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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