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
 

Re: Elevator script!

Previous Thread :: Next Thread 
Bryte is not online. Bryte
Joined: 27 Jun 2013
Total Posts: 462
24 Jan 2014 03:32 PM
I need a script where when you click a button a "part" goes up it altitude 25 studs
just like a elevator
Report Abuse
Bryte is not online. Bryte
Joined: 27 Jun 2013
Total Posts: 462
24 Jan 2014 03:33 PM
B1
Report Abuse
Bryte is not online. Bryte
Joined: 27 Jun 2013
Total Posts: 462
24 Jan 2014 03:38 PM
B2
Report Abuse
Bryte is not online. Bryte
Joined: 27 Jun 2013
Total Posts: 462
24 Jan 2014 03:42 PM
b3
Report Abuse
iWasted1000Robux is not online. iWasted1000Robux
Joined: 26 Oct 2013
Total Posts: 813
24 Jan 2014 04:01 PM
http://www.roblox.com/Forum/ShowPost.aspx?PostID=80625843

#nerdsunited
Report Abuse
kingmatt2 is not online. kingmatt2
Joined: 20 Aug 2011
Total Posts: 6494
24 Jan 2014 04:02 PM
What he is saying we dont make scripts. We fix broken code. Now go make it yourself.
Report Abuse
VectorScripts is not online. VectorScripts
Joined: 21 Jan 2014
Total Posts: 3
24 Jan 2014 04:17 PM
I agree with King, and if you did not get the info you wanted from the forum post, here you are.

Put the script inside the part.
Here -

script.Parent.Position = Vector3.new(0, 1, 0)

repeat
script.Parent.Position = script.Parent.Position + Vector3.new(0, 1, 0)
wait()
until
script.Parent.Position = Vector3.new(0, 25, 0)



There you go. I want to fix broken code like king said, not make the code and let you get it.. oh well, I guess you can learn from this.
Report Abuse
VectorScripts is not online. VectorScripts
Joined: 21 Jan 2014
Total Posts: 3
24 Jan 2014 04:24 PM
I meant to show you the click thing.
Put a ClickDetector in the part.

Here you are!--

script.Parent.ClickDetector.onMouseClick:connect(function()
script.Parent.Position = Vector3.new(0, 1, 0)
repeat
script.Parent.Position = script.Parent.Position + Vector3.new(0, 1, 0)
until
script.Parent.Position == Vector3.new(0, 25, 0)
end)
Report Abuse
kingmatt2 is not online. kingmatt2
Joined: 20 Aug 2011
Total Posts: 6494
24 Jan 2014 04:25 PM
CFrame mabye?
Report Abuse
VectorScripts is not online. VectorScripts
Joined: 21 Jan 2014
Total Posts: 3
24 Jan 2014 04:26 PM
And one more thing, where it says onMouseClick should be onClicked.
Report Abuse
kingmatt2 is not online. kingmatt2
Joined: 20 Aug 2011
Total Posts: 6494
24 Jan 2014 04:28 PM
for i = 1,25 do
script.Parent.CFrame = script.Parent.CFrame.new(0, 1, 0)
end


Do that insted of repeat and Vector3.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
24 Jan 2014 04:31 PM
No, it should be MouseClick
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