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: part not moving to position?

Previous Thread :: Next Thread 
letris is not online. letris
Joined: 17 Dec 2012
Total Posts: 572
10 Apr 2017 02:48 PM
local coin = game.workspace.coin:Clone()
coin.Parent = script.Parent
coin.Position = Vector3.new(script.Parent.Position)

what is wrong here... i have no idea why this isnt working, the part isnt going to the specified position
Report Abuse
devHoodie is online. devHoodie
Joined: 04 Nov 2008
Total Posts: 30332
10 Apr 2017 02:50 PM
coin.Parent = script.Parent.Parent

do that


r+://487783315r+://467523707r+://215869124
Report Abuse
letris is not online. letris
Joined: 17 Dec 2012
Total Posts: 572
10 Apr 2017 02:51 PM
nope, doesnt work
Report Abuse
CallMeKY is not online. CallMeKY
Joined: 07 Dec 2014
Total Posts: 63
10 Apr 2017 02:51 PM
You could try CFrame
Report Abuse
letris is not online. letris
Joined: 17 Dec 2012
Total Posts: 572
10 Apr 2017 02:52 PM
^already tried, i get this error:

Workspace.powerupspawn.Script:5: bad argument #3 to 'Position' (Vector3 expected, got CFrame)
Report Abuse
letris is not online. letris
Joined: 17 Dec 2012
Total Posts: 572
10 Apr 2017 02:54 PM
i found out how to fix it, but i dont see why it wasnt working before, but it worked with this:
coin.Position = Vector3.new(script.Parent.Position.x,script.Parent.Position.y,script.Parent.Position.z)
Report Abuse
Mister_Manakin is not online. Mister_Manakin
Joined: 16 Sep 2009
Total Posts: 1935
10 Apr 2017 02:55 PM
coin.CFrame = CFrame.new(script.Parent.Position)
Report Abuse
devHoodie is online. devHoodie
Joined: 04 Nov 2008
Total Posts: 30332
10 Apr 2017 02:55 PM
coin.CFrame = script.Parent.CFrame


r+://487783315r+://467523707r+://215869124
Report Abuse
letris is not online. letris
Joined: 17 Dec 2012
Total Posts: 572
10 Apr 2017 02:56 PM
^ah thats right... i didnt even think of that
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