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
 

Positioning Question

Previous Thread :: Next Thread 
Dragonstar1433 is not online. Dragonstar1433
Joined: 18 Sep 2011
Total Posts: 272
15 May 2012 07:59 PM
So the question is instead of positioning it is there another way to move it because when I go really close to the part (FYI its a hq door) when it is positioning it goes above my hq? Script is below!

function onClicked()
game.Workspace.Door.Position = Vector3.new(-30, 14.6, 29)
wait(0.2)
game.Workspace.Door.Position = Vector3.new(-31, 14.6, 29)
wait(0.2)
game.Workspace.Door.Position = Vector3.new(-32, 14.6, 29)
wait(0.2)
game.Workspace.Door.Position = Vector3.new(-33, 14.6, 29)
end

script.Parent.ClickDetector.MouseClick:connect(onClicked)
Report Abuse
rayoma is not online. rayoma
Joined: 13 Nov 2009
Total Posts: 1911
15 May 2012 08:01 PM
Yes, use CFrame.
Report Abuse
Dragonstar1433 is not online. Dragonstar1433
Joined: 18 Sep 2011
Total Posts: 272
15 May 2012 08:06 PM
Can you show me how?
Report Abuse
rayoma is not online. rayoma
Joined: 13 Nov 2009
Total Posts: 1911
15 May 2012 08:09 PM
function onClicked()
for i=0,3 do
workspace.Door.CFrame=CFrame.new(-30-i,14.6,29);
Wait(0.2);
end

script.Parent.ClickDetector.MouseClick:connect(onClicked);

The main CFrame constructor isn't too much different however it is a lot more useful.

Take a look at :
http://wiki.roblox.com/index.php/CFrame
Report Abuse
Dragonstar1433 is not online. Dragonstar1433
Joined: 18 Sep 2011
Total Posts: 272
15 May 2012 08:45 PM
How do I reverse this script CFrame I want it back to -33 by going inch by inch

function onClicked()
for i=0,52 do
game.Workspace.Door.CFrame = CFrame.new(-33+i,14.6,29);
Wait(0.1);
end
end

script.Parent.ClickDetector.MouseClick:connect(onClicked)
Report Abuse
Dragonstar1433 is not online. Dragonstar1433
Joined: 18 Sep 2011
Total Posts: 272
15 May 2012 08:56 PM
Bump Script Above needs reversing
Report Abuse
AccurateGames is not online. AccurateGames
Joined: 14 May 2012
Total Posts: 55
15 May 2012 09:14 PM
function onClicked()
for i=0,52 do
game.Workspace.Door.CFrame = CFrame.new(-33-i,14.6,29);
Wait(0.1);
end
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)

- AccurateGames
Report Abuse
Dragonstar1433 is not online. Dragonstar1433
Joined: 18 Sep 2011
Total Posts: 272
15 May 2012 10:04 PM
Didn't Work go to my first place and you'll see which way it goes and how I mean I want it to reverse.
Report Abuse
Dragonstar1433 is not online. Dragonstar1433
Joined: 18 Sep 2011
Total Posts: 272
15 May 2012 10:14 PM
Bump Really Need Help!
Report Abuse
Dragonstar1433 is not online. Dragonstar1433
Joined: 18 Sep 2011
Total Posts: 272
15 May 2012 10:29 PM
Didn't Work go to my place and you'll see which way it goes and how I mean I want it to reverse.

Sorry for reposting just really need help :/
Report Abuse
jrf2112 is not online. jrf2112
Joined: 29 Jun 2008
Total Posts: 3354
15 May 2012 10:39 PM
CFRAME

Brick.CFrame = CFrame.new(Vector3.new(56,62,23))

Now get to work.
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