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
 

Vector3 help!

Previous Thread :: Next Thread 
vendo88 is not online. vendo88
Joined: 11 Jan 2011
Total Posts: 769
16 Feb 2014 06:35 PM
local DoorOpen =script.Parent.Door.Position
function onTouched(hit)
DoorOpen = Vector3.new(0, 50, 0)
wait(4)
DoorOpen = Vector3.new(0, 157.5, 0)


end
Report Abuse
Laedere is not online. Laedere
Joined: 17 Jun 2013
Total Posts: 23601
16 Feb 2014 06:37 PM
what about it
Report Abuse
vendo88 is not online. vendo88
Joined: 11 Jan 2011
Total Posts: 769
16 Feb 2014 06:38 PM
Won't work
Report Abuse
DataStore is not online. DataStore
Joined: 07 Feb 2012
Total Posts: 8540
16 Feb 2014 06:38 PM
Setting a variable to a property will simply make the variable equal to what the property is at that time. Therefore, if that function was ever called, you'd simply be changing the variable and not the property.
Report Abuse
Andrew1234567mmm is not online. Andrew1234567mmm
Joined: 14 Oct 2009
Total Posts: 691
16 Feb 2014 06:38 PM
Use CFrame, Vector3 is the Vector Position which can mess it up a lot and CFrame is the coordinate frame position
Report Abuse
MarioKartAddict is not online. MarioKartAddict
Joined: 11 Nov 2009
Total Posts: 42774
16 Feb 2014 06:39 PM
You're changing the variable not the value

local DoorOpen = script.Parent.Door
function onTouched(hit)
DoorOpen.Position = Vector3.new(0, 50, 0)
wait(4)
DoorOpen.Position = Vector3.new(0, 157.5, 0)


end
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
16 Feb 2014 06:40 PM
local DoorOpen =script.Parent.Door
function onTouched(hit)
DoorOpen.Position = Vector3.new(0, 50, 0)
wait(4)
DoorOpen.Position = Vector3.new(0, 157.5, 0)
end

--Add connection line too
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