|
| 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
|
  |
| Joined: 13 Nov 2009 |
| Total Posts: 1911 |
|
| |
|
| |
|
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 |
|
|
|
| 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 |
|
|
|
| 15 May 2012 08:56 PM |
| Bump Script Above needs reversing |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
|
| 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
|
  |
| 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 |
|
|