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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Elevator not working

Previous Thread :: Next Thread 
TGIRoblox is not online. 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 is not online. TGIRoblox
Joined: 05 Aug 2010
Total Posts: 1257
22 Aug 2012 07:28 PM
Bump.
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
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 is not online. TGIRoblox
Joined: 05 Aug 2010
Total Posts: 1257
22 Aug 2012 07:33 PM
Thanks it worked.
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
22 Aug 2012 07:33 PM
No problem.
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