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: CFraming Problem

Previous Thread :: Next Thread 
kapandr is not online. kapandr
Joined: 26 Jan 2013
Total Posts: 145
12 Jun 2014 06:20 PM
while wait(0.01) do
part.CFrame = CFrame.new(part.Position, Mouse.Hit.p)
end
Report Abuse
kapandr is not online. kapandr
Joined: 26 Jan 2013
Total Posts: 145
12 Jun 2014 06:21 PM
it stays original :/
Report Abuse
kapandr is not online. kapandr
Joined: 26 Jan 2013
Total Posts: 145
12 Jun 2014 06:35 PM
guys? o.O
Report Abuse
kapandr is not online. kapandr
Joined: 26 Jan 2013
Total Posts: 145
12 Jun 2014 07:27 PM
O.O
Report Abuse
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
12 Jun 2014 07:29 PM
Show me the whole script.
Report Abuse
Jason27993 is not online. Jason27993
Joined: 25 Sep 2010
Total Posts: 345
12 Jun 2014 07:29 PM
CFrame.new requires 3 arguments
x,y,z , yours doesnt work since it gives 6 arguments(2 Vector values), x,y,z of part and x,y,z of mouse.Hit
Report Abuse
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
12 Jun 2014 07:30 PM
It doesn't always require 3 arguments
Report Abuse
Jason27993 is not online. Jason27993
Joined: 25 Sep 2010
Total Posts: 345
12 Jun 2014 07:31 PM
No?O_o , on the wiki stays only x,y and z nothing more nothing less, or are there any optional ones that arent listed anywhere?
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
12 Jun 2014 07:31 PM
@jason

No..
Report Abuse
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
12 Jun 2014 07:33 PM
There are multiple types of CFrames with different arguments. One of them use the R01 matrix or something like that, where it has the first 3 arguments, and then 9, from the matrix

CFrame.new(1,0,1,0,0,-1,0,-1,0)
Report Abuse
Jason27993 is not online. Jason27993
Joined: 25 Sep 2010
Total Posts: 345
12 Jun 2014 07:33 PM
ahhh right, i forgot that one, thanks :D
Report Abuse
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
12 Jun 2014 07:33 PM
Also, this is calid for teleporting someone back to a CFrame value. I've used it before

player.Character.Torso.CFrame = CFrame.new(CFrameVal.Value.p)
Report Abuse
kapandr is not online. kapandr
Joined: 26 Jan 2013
Total Posts: 145
12 Jun 2014 07:34 PM
so how would I do mouse.hit.p as focus???
Report Abuse
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
12 Jun 2014 07:35 PM
Like I said, show the whole script
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
12 Jun 2014 07:36 PM
Accomplish, they are called consturctors

OP, your original should point the Part to where the mouse is
Report Abuse
kapandr is not online. kapandr
Joined: 26 Jan 2013
Total Posts: 145
12 Jun 2014 07:40 PM
part.CFrame = CFrame.new(part.CFrame, Mouse.Hit.p)?
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
12 Jun 2014 07:42 PM
What are you trying to do?
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
12 Jun 2014 07:43 PM
No:

part.CFrame = CFrame.new(part.CFrame.p, Mouse.Hit.p)?
Report Abuse
kapandr is not online. kapandr
Joined: 26 Jan 2013
Total Posts: 145
12 Jun 2014 07:43 PM
point the Part at the Mouse :P
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
12 Jun 2014 07:43 PM
Or your first one, using Position
Report Abuse
kapandr is not online. kapandr
Joined: 26 Jan 2013
Total Posts: 145
12 Jun 2014 07:44 PM
my 1st didn't Work...
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
12 Jun 2014 07:45 PM
Define part and mouse
Report Abuse
kapandr is not online. kapandr
Joined: 26 Jan 2013
Total Posts: 145
12 Jun 2014 07:47 PM
did it ages ago :P
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
12 Jun 2014 07:49 PM
Well it would work fine. So you're doing something wrong.
Report Abuse
kapandr is not online. kapandr
Joined: 26 Jan 2013
Total Posts: 145
12 Jun 2014 07:51 PM
well I got the Owner Value were it's only set to a Player wen someone touches the Part... do I needa do WaitForChild()? or repeat wait() until?
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