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
 

Re: Elevator Script Help

Previous Thread :: Next Thread 
Super73706 is not online. Super73706
Joined: 31 Mar 2017
Total Posts: 112
16 May 2017 11:07 AM
This Is My Script:
Brick = script.Parent

function Ontouch()
Brick.CFrame = Brick.CFrame + Vector3.new(0,0.5,0)
wait(0.1)
Brick.CFrame = Brick.CFrame + Vector3.new(0,1,0)
wait(0.1)
Brick.CFrame = Brick.CFrame + Vector3.new(0,1.5,0)
wait(0.1)
Brick.CFrame = Brick.CFrame + Vector3.new(0,2,0)
wait(0.1)
Brick.CFrame = Brick.CFrame + Vector3.new(0,2.5,0)
wait(0.1)
Brick.CFrame = Brick.CFrame + Vector3.new(0,3,0)
wait(0.1)
Brick.CFrame = Brick.CFrame + Vector3.new(0,3.5,0)
wait(0.1)
Brick.CFrame = Brick.CFrame + Vector3.new(0,4,0)
wait(0.1)
Brick.CFrame = Brick.CFrame + Vector3.new(0,4.5,0)
wait(0.1)
Brick.CFrame = Brick.CFrame + Vector3.new(0,5,0)
wait(0.1)
Brick.CFrame = Brick.CFrame + Vector3.new(0,5.5,0)
wait(0.1)
Brick.CFrame = Brick.CFrame + Vector3.new(0,6,0)
wait(0.5)

Brick.CFrame = Brick.CFrame + Vector3.new(0,-0.5,0)
wait(0.1)
Brick.CFrame = Brick.CFrame + Vector3.new(0,-1,0)
wait(0.1)
Brick.CFrame = Brick.CFrame + Vector3.new(0,-1.5,0)
wait(0.1)
Brick.CFrame = Brick.CFrame + Vector3.new(0,-2,0)
wait(0.1)
Brick.CFrame = Brick.CFrame + Vector3.new(0,-2.5,0)
wait(0.1)
Brick.CFrame = Brick.CFrame + Vector3.new(0,-3,0)
wait(0.1)
Brick.CFrame = Brick.CFrame + Vector3.new(0,-3.5,0)
wait(0.1)
Brick.CFrame = Brick.CFrame + Vector3.new(0,-4,0)
wait(0.1)
Brick.CFrame = Brick.CFrame + Vector3.new(0,-4.5,0)
wait(0.1)
Brick.CFrame = Brick.CFrame + Vector3.new(0,-5,0)
wait(0.1)
Brick.CFrame = Brick.CFrame + Vector3.new(0,-5.5,0)
wait(0.1)
Brick.CFrame = Brick.CFrame + Vector3.new(0,-6,0)
end

Brick.Touched:connect(Ontouch)

It works great but how would I make it so my character doesn't just fall right through the floor when it starts going up?


Report Abuse
DevJoas is not online. DevJoas
Joined: 17 Dec 2014
Total Posts: 627
16 May 2017 11:13 AM
1st of all use a for loop for this

wiki.roblox.com/index.php?title=Loops#For


I think if you make the steps smaller the character shouldn't fall through
Report Abuse
Super73706 is not online. Super73706
Joined: 31 Mar 2017
Total Posts: 112
16 May 2017 11:16 AM
I dont know #### to apply a for loop to that.
Report Abuse
DevJoas is not online. DevJoas
Joined: 17 Dec 2014
Total Posts: 627
16 May 2017 11:17 AM
If you read the article I send you you would've. Read this too: ###### ####### il/4. ###### ##
Report Abuse
DevJoas is not online. DevJoas
Joined: 17 Dec 2014
Total Posts: 627
16 May 2017 11:18 AM
lu
a.o
rg/p


il/4
.3.
4.h
tml
Report Abuse
Super73706 is not online. Super73706
Joined: 31 Mar 2017
Total Posts: 112
16 May 2017 11:35 AM
function Ontouch for i=1,10, 0.1 do Brick.CFrame = Brick.CFrame + ################## end wait(5) for i=1,10, -0.1 do Brick.CFrame = Brick.CFrame + ################## end end Brick.Touched:connect(Ontouch) --Would this work?
Report Abuse
Super73706 is not online. Super73706
Joined: 31 Mar 2017
Total Posts: 112
16 May 2017 11:36 AM
tags lol


Report Abuse
DevJoas is not online. DevJoas
Joined: 17 Dec 2014
Total Posts: 627
16 May 2017 01:10 PM
Idk?

Why are you asking me that?

Test it out?

Run it in studio?
Report Abuse
TheCaptainTeach is online. TheCaptainTeach
Joined: 11 Jul 2015
Total Posts: 3846
16 May 2017 01:12 PM
use a body gyro instead so your player doesn't go through.

also use a loop
Report Abuse
DevJoas is not online. DevJoas
Joined: 17 Dec 2014
Total Posts: 627
16 May 2017 01:12 PM
BodyGyro is possible but I dislike most body movers in roblox
Report Abuse
noahcoolboy2 is not online. noahcoolboy2
Joined: 06 Aug 2016
Total Posts: 459
16 May 2017 01:13 PM
i can help add me on discord noah#5147
i know how to use for loops
Report Abuse
Super73706 is not online. Super73706
Joined: 31 Mar 2017
Total Posts: 112
16 May 2017 01:16 PM
I just did im the one that accidentally added u before XD


Report Abuse
Super73706 is not online. Super73706
Joined: 31 Mar 2017
Total Posts: 112
16 May 2017 01:48 PM
Brick = script.Parent function OnTouch() local player = game.Players.LocalPlayer local torso = player.Character.HumanoidRootPart for i=1,10, .01 do wait(1) Brick.CFrame = Brick.CFrame + Vector3.new(0, i, 0) torso.CFrame = torso.CFrame + ################## break end end Brick.Touched:connect(OnTouch) I tried that but it wont work.
Report Abuse
DevJoas is not online. DevJoas
Joined: 17 Dec 2014
Total Posts: 627
16 May 2017 01:55 PM
That script doesn't make sense? did noah recommend that?
Report Abuse
noahcoolboy2 is not online. noahcoolboy2
Joined: 06 Aug 2016
Total Posts: 459
16 May 2017 02:57 PM
No
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