TGIRoblox
|
  |
| Joined: 05 Aug 2010 |
| Total Posts: 1257 |
|
|
| 22 Aug 2012 07:27 PM |
Okay so I wanted to make an elevator where if a player touches it it will take the player upwards. But it seems that when my player touches it he will fall through the elevator even when it is CanCollide and the elevator itself seems a little glitchy. Here is what I have so far:
local Liftpad = game.Workspace.Liftpad
Liftpad.Touched:connect(function(hit) if not hit.Parent:FindFirstChild("Humanoid") then return end for i = 1,16 do
Liftpad.Position = Vector3.new(0,i,-13) wait()
end end)
|
|
|
| Report Abuse |
|
|
TGIRoblox
|
  |
| Joined: 05 Aug 2010 |
| Total Posts: 1257 |
|
| |
|
|
| 22 Aug 2012 07:28 PM |
game.Workspace.Liftpad.Touched:connect(function(hit) if not hit.Parent:FindFirstChild("Humanoid") then return end for i = 1,16 do game.Workspace.Liftpad.CFrame = game.Workspace.Liftpad.CFrame * CFrame.new(0,1,0) end end) |
|
|
| Report Abuse |
|
|
TGIRoblox
|
  |
| Joined: 05 Aug 2010 |
| Total Posts: 1257 |
|
| |
|
| |
|