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: RE: Does anyone read this

Previous Thread :: Next Thread 
doneyes is online. doneyes
Joined: 21 Mar 2008
Total Posts: 3466
02 Jul 2013 11:52 AM
torso.CFrame = ref.CFrame + Vector3.new(x.Value, y.Value,z.Value)


I don't understand the issue.
Report Abuse
Riderj is not online. Riderj
Joined: 15 Aug 2011
Total Posts: 1534
02 Jul 2013 11:54 AM
Can' mix CFrame's and Vector3's they have 2 very different argument possibilities.
Report Abuse
Thaeh is not online. Thaeh
Joined: 05 Feb 2011
Total Posts: 7685
02 Jul 2013 11:55 AM
x.Value won't work
you need to do it like this:
Vector3.x.Value
Report Abuse
doneyes is online. doneyes
Joined: 21 Mar 2008
Total Posts: 3466
02 Jul 2013 12:18 PM
That's not my whole script. I have the variables defined elsewhere.
Report Abuse
doneyes is online. doneyes
Joined: 21 Mar 2008
Total Posts: 3466
02 Jul 2013 12:19 PM
@first reply: What can I do to fix it?
Report Abuse
MrNicNac is not online. MrNicNac
Joined: 29 Aug 2008
Total Posts: 26567
02 Jul 2013 12:44 PM
That doesn't look like the area with that issue. Adding a Vector3 to a CFrame will simply slide the positional row of the matrix. It should be fine. I'm pretty sure that error is elsewhere.
Report Abuse
ExosXguy is not online. ExosXguy
Joined: 10 Oct 2010
Total Posts: 2239
02 Jul 2013 12:45 PM
Just to experiment, try CFrame.new instead of Vector3.new


See if there's any changes.
Report Abuse
doneyes is online. doneyes
Joined: 21 Mar 2008
Total Posts: 3466
02 Jul 2013 04:01 PM
bad argument #2 to '?' (Vector3 expected, got userdata)
Report Abuse
doneyes is online. doneyes
Joined: 21 Mar 2008
Total Posts: 3466
02 Jul 2013 04:21 PM
bump
Report Abuse
doneyes is online. doneyes
Joined: 21 Mar 2008
Total Posts: 3466
02 Jul 2013 06:20 PM
bump
Report Abuse
doneyes is online. doneyes
Joined: 21 Mar 2008
Total Posts: 3466
02 Jul 2013 11:16 PM
bump
Report Abuse
SamuelKingx is not online. SamuelKingx
Joined: 27 Jan 2012
Total Posts: 3472
02 Jul 2013 11:25 PM
What's the error?
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
02 Jul 2013 11:31 PM
Could you post the declarations of x, y , and z?
Report Abuse
doneyes is online. doneyes
Joined: 21 Mar 2008
Total Posts: 3466
02 Jul 2013 11:44 PM
CFrame can not assign to.

torso.CFrame = ref.CFrame + Vector3.new(0, 5, 0)

I changed the numbers to be sure.
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
02 Jul 2013 11:45 PM
Odd. What are torso and ref?
Report Abuse
doneyes is online. doneyes
Joined: 21 Mar 2008
Total Posts: 3466
03 Jul 2013 08:38 AM
just bricks. They should be fine.
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
03 Jul 2013 08:39 AM
Y not do:

* CFrame.new(1,1,1) instead of + Vector3?
Report Abuse
doneyes is online. doneyes
Joined: 21 Mar 2008
Total Posts: 3466
03 Jul 2013 07:19 PM
torso.CFrame = ref.CFrame * CFrame.new(0, 5, 0)

same error
Report Abuse
Destinova is not online. Destinova
Joined: 20 Jun 2013
Total Posts: 3
03 Jul 2013 07:23 PM
The problem seems to be "torso.CFrame", are you sure you referenced torso correctly?
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