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: Quick Fix

Previous Thread :: Next Thread 
heirIoom is not online. heirIoom
Joined: 15 Jul 2012
Total Posts: 3775
13 Feb 2016 07:54 PM
Can anyone tel me how to fix this?

script.Parent.CFrame = CFrame.new(Vector3.new(workspace.Model.Torso.Position))

or

script.Parent.Position = Vector3.new(workspace.Model.Torso.Position)

Everytime I run either of these it brings the part to 0,0,0 with no errors.


Report Abuse
heirIoom is not online. heirIoom
Joined: 15 Jul 2012
Total Posts: 3775
13 Feb 2016 07:57 PM
B1


Report Abuse
thegoodpuppy is not online. thegoodpuppy
Joined: 07 Jul 2011
Total Posts: 2737
13 Feb 2016 07:59 PM
script.Parent.CFrame = Vector3.new(Workspace.Model.Torso.Position


If you don't have a variable, do game.Workspace also.
Report Abuse
AdvancedObjects is not online. AdvancedObjects
Joined: 11 Dec 2012
Total Posts: 3354
13 Feb 2016 08:00 PM
script.Parent.Position = game.Workspace.Model.Torso.Position



Report Abuse
mattscy is not online. mattscy
Joined: 06 May 2011
Total Posts: 1079
13 Feb 2016 08:00 PM
Just do

script.Parent.CFrame = workspace.Model.Torso.CFrame
Report Abuse
heirIoom is not online. heirIoom
Joined: 15 Jul 2012
Total Posts: 3775
13 Feb 2016 08:01 PM
Workspace is a deprecated method. Using workspace skips game.Workspace btw.

The above wouldnt work, because CFrame doesnt play in with Vector on the same lines. Also there werent any parenthesis. Ty for helpin out some though.


Report Abuse
heirIoom is not online. heirIoom
Joined: 15 Jul 2012
Total Posts: 3775
13 Feb 2016 08:01 PM
@Matt
Ur a life saver lol thanks a ton!


Report Abuse
thegoodpuppy is not online. thegoodpuppy
Joined: 07 Jul 2011
Total Posts: 2737
13 Feb 2016 08:03 PM
oh gg i forgot about that rip my scripting
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