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
 

:duplicate() or somewhat

Previous Thread :: Next Thread 
Undoomed is not online. Undoomed
Joined: 19 Oct 2010
Total Posts: 1662
11 Dec 2014 08:32 PM
I need something like :clone() but when I use clone the map spawns above my water instead of in the water where it is supposed to be

how do i make the map come from serverstorage and be put in the exact location its supposed to be?

the water is always in game.Workspace
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
11 Dec 2014 08:34 PM
Use SetPrimaryPartCFrame to move models.
Report Abuse
Undoomed is not online. Undoomed
Joined: 19 Oct 2010
Total Posts: 1662
11 Dec 2014 08:37 PM
so i made this using the wiki


game.Workspace.MapBayside.PrimaryPart = game.Workspace.MapBayside.Barrier
game.Workspace.MapBayside:SetPrimaryPartCFrame(game.Workspace.MapBayside.PrimaryPart.CFrame * CFrame.Angles(-225.54, 92.835, 104.38))



and it flipped my map upsidedown and in the air..
Report Abuse
Undoomed is not online. Undoomed
Joined: 19 Oct 2010
Total Posts: 1662
11 Dec 2014 08:42 PM
bump
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
11 Dec 2014 08:42 PM
Because you just rotated it.
Report Abuse
Undoomed is not online. Undoomed
Joined: 19 Oct 2010
Total Posts: 1662
11 Dec 2014 08:47 PM
game.Workspace.MapBayside:SetPrimaryPartCFrame(game.Workspace.MapBayside.PrimaryPart.CFrame.new(-225.54, 92.835, 104.38))

?
Report Abuse
Undoomed is not online. Undoomed
Joined: 19 Oct 2010
Total Posts: 1662
11 Dec 2014 08:53 PM
i think MoveTo(Vector3) would be better for what im doing

im just confused on where do i find the vector3 i want to use. do i just make a giant box the size of my model's selection and get its position?


ill try that
Report Abuse
C0mmando323 is not online. C0mmando323
Joined: 15 Dec 2012
Total Posts: 394
11 Dec 2014 09:29 PM
MoveTo() is probably not the best thing for what you're doing. I would suggest TranslateBy()
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