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
 

Help on CFrame (1 line)

Previous Thread :: Next Thread 
Vitalityc is not online. Vitalityc
Joined: 02 Aug 2013
Total Posts: 302
24 May 2015 08:37 PM
Line: script.Parent.Position=CFrame.new(script.Parent.Parent.CFrame)

Output: Workspace.test.apple.Move:18: bad argument #1 to 'new' (Vector3 expected, got userdata)

Any help quys?
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
24 May 2015 08:37 PM
Positions use Vector3 values, not CFrame

-[::ƧѡÎḾḠΰῩ::]-[::Helper of Scripting and Writer of Wikis::]
Report Abuse
GlaciesRex is not online. GlaciesRex
Joined: 22 Oct 2011
Total Posts: 1100
24 May 2015 08:38 PM
script.Parent.Position=Vector3.new(CFrame.new(script.Parent.Parent.CFrame))
Report Abuse
Vitalityc is not online. Vitalityc
Joined: 02 Aug 2013
Total Posts: 302
24 May 2015 08:41 PM
@GlaciesRex, The same output comes out.
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
24 May 2015 08:41 PM
^
wtf are you on

script.Parent.CFrame = script.Parent.Parent.CFrame
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
24 May 2015 08:41 PM
@glacies
Report Abuse
Vitalityc is not online. Vitalityc
Joined: 02 Aug 2013
Total Posts: 302
24 May 2015 08:43 PM
Wow I'm on everything I guess you can say, thanks.
Report Abuse
lilblitz56 is not online. lilblitz56
Joined: 06 Nov 2010
Total Posts: 461
24 May 2015 09:02 PM
script.Parent.Position=Vector3.new(script.Parent.Parent.Position)


Try this
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
24 May 2015 09:04 PM
noobs are filling up scripters
Report Abuse
lilblitz56 is not online. lilblitz56
Joined: 06 Nov 2010
Total Posts: 461
24 May 2015 09:08 PM
Who me? I'm not the best scripter but I'm not a nub :)
Report Abuse
Chrapnel is not online. Chrapnel
Joined: 01 Feb 2014
Total Posts: 951
24 May 2015 09:10 PM
script.Parent.Position = script.Parent.Parent.Position

...why has this not been mentioned yet
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
24 May 2015 09:11 PM
I'm not sure if you're intending to change the Position or the CFrame of the parent...
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