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: Vector3 Values

Previous Thread :: Next Thread 
DevSmart is not online. DevSmart
Joined: 16 Jun 2012
Total Posts: 139
03 Mar 2016 07:27 PM
How do I change a vector3 value to a brick's vector3 value using a script? I've tried using this script:

while true do
wait()
script.Value.Value.X = script.Parent.CFrame.X
script.Value.Value.Y = script.Parent.CFrame.Y
script.Value.Value.Z = script.Parent.CFrame.Z
end

But I get an error. Can someone help ~ basically give me the script. :P
Report Abuse
DevSmart is not online. DevSmart
Joined: 16 Jun 2012
Total Posts: 139
03 Mar 2016 07:34 PM
bump
Report Abuse
ExtremeBuilder15 is not online. ExtremeBuilder15
Joined: 01 May 2012
Total Posts: 3176
03 Mar 2016 07:42 PM
What's the error?
Report Abuse
Mister_Manakin is not online. Mister_Manakin
Joined: 16 Sep 2009
Total Posts: 1935
03 Mar 2016 08:07 PM
CFrame has vector components but it isn't the same as a vector3.

try CFrame.p.X
or just Position.X, they're the same anyway.
Report Abuse
DevSmart is not online. DevSmart
Joined: 16 Jun 2012
Total Posts: 139
03 Mar 2016 08:33 PM
The error is X cannot be assigned to .
Report Abuse
DevSmart is not online. DevSmart
Joined: 16 Jun 2012
Total Posts: 139
03 Mar 2016 08:43 PM
bump
Report Abuse
DevSmart is not online. DevSmart
Joined: 16 Jun 2012
Total Posts: 139
03 Mar 2016 08:50 PM
bump
Report Abuse
Mister_Manakin is not online. Mister_Manakin
Joined: 16 Sep 2009
Total Posts: 1935
03 Mar 2016 09:04 PM
while true do
wait()
script.Value.Value = Vector3.new(script.Parent.CFrame.p)
end
Report Abuse
Mister_Manakin is not online. Mister_Manakin
Joined: 16 Sep 2009
Total Posts: 1935
03 Mar 2016 09:05 PM
if "script.Value" is a Vector3Value object then that should work.
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