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 Help

Previous Thread :: Next Thread 
DKKiller7 is not online. DKKiller7
Joined: 11 Dec 2010
Total Posts: 34
16 Jul 2011 08:31 PM
I was doing the script tutorials on roblox wiki and when i did the elevator 1 it didn't work and in output said nothing was wrong.
Report Abuse
DKKiller7 is not online. DKKiller7
Joined: 11 Dec 2010
Total Posts: 34
16 Jul 2011 08:43 PM
Debounce = false

local b = script.Parent -- Button to ground floor
local p1 = script.Parent.Parent.Part1 -- the plate upon which you stand
local pos1 = script.Parent.Parent.pos1 -- position of ground floor
local pos2 = script.Parent.Parent.pos2 -- position of 2nd floor


function onTouched(hit)
if (hit.Parent:FindFirstChild("Humanoid") ~= nil) then -- if it's a human
if (Debounce == false) then
Debounce = true
b.BrickColor = BrickColor.new(24) -- change color to yellow
p1.BodyPosition.position = pos1.Position -- go to ground floor
p1.Anchored = false
wait(5)
b.BrickColor = BrickColor.new(1) -- change color to white
Debounce = false
end
end
end

script.Parent.Touched:connect(onTouched)
Report Abuse
Scriptishish is not online. Scriptishish
Joined: 16 Oct 2007
Total Posts: 1231
16 Jul 2011 08:45 PM
Won't that only take it to the ground floor?
Report Abuse
DKKiller7 is not online. DKKiller7
Joined: 11 Dec 2010
Total Posts: 34
16 Jul 2011 08:54 PM
....oh lol
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