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
 

[ Content Deleted ]

Previous Thread :: Next Thread 
SCPTheSculpture173 is not online. SCPTheSculpture173
Joined: 09 Mar 2014
Total Posts: 79
24 Apr 2014 04:45 PM
I am working on a game and it has slide doors that are opened with a button. How do I make a slide door with buttons?
Report Abuse
Demystified is not online. Demystified
Joined: 05 Nov 2007
Total Posts: 6580
24 Apr 2014 04:45 PM
first thing's first

learn RBX.Lua

wiki.roblox.com
Report Abuse
SCPTheSculpture173 is not online. SCPTheSculpture173
Joined: 09 Mar 2014
Total Posts: 79
24 Apr 2014 04:47 PM
I am learning Lua but I need to make the slide door now...
Report Abuse
BladeXE is not online. BladeXE
Joined: 22 Dec 2012
Total Posts: 3857
24 Apr 2014 04:48 PM
how big are the doors?
Report Abuse
Demystified is not online. Demystified
Joined: 05 Nov 2007
Total Posts: 6580
24 Apr 2014 04:48 PM
if player clicks then if door not open then vector3.new (probably a loop would be best)
Report Abuse
12packkid is not online. 12packkid
Joined: 24 Jun 2011
Total Posts: 1418
24 Apr 2014 04:49 PM
--You may have to edit this slightly

but=Instance.new('ClickDetector',yourpart)
but.MaxActivationDistance=6
leftdoor=yourleftdoor
rightdoor=yourrightdoor

but.MouseButton1Down:connect(function()
for i=0,100,5 do
wait()
leftdoor.CanCollide=false
rightdoor.CanCollide=false
leftdoor.CFrame=leftdoor.CFrame*CFrame.new(-0.3,0,0)
rightdoor.CFrame=rightdoor.CFrame*CFrame.new(0.3,0,0)
wait(4)
leftdoor.CFrame=leftdoor.CFrame*CFrame.new(0.3,0,0)
rightdoor.CFrame=rightdoor.CFrame*CFrame.new(-0.3,0,0)
end
end)

Report Abuse
12packkid is not online. 12packkid
Joined: 24 Jun 2011
Total Posts: 1418
24 Apr 2014 04:51 PM
Sorry, add just before the second to last 'end' leftdoor.CanCollide=true rightdoor.CanCollide=true
Report Abuse
BladeXE is not online. BladeXE
Joined: 22 Dec 2012
Total Posts: 3857
24 Apr 2014 04:51 PM
tell me how big the doors are
I crush ^
and ^^
Report Abuse
SCPTheSculpture173 is not online. SCPTheSculpture173
Joined: 09 Mar 2014
Total Posts: 79
24 Apr 2014 04:52 PM
The doors are about as big as a normal door. It is the slide door from SCP containment breach.
Report Abuse
12packkid is not online. 12packkid
Joined: 24 Jun 2011
Total Posts: 1418
24 Apr 2014 04:59 PM
Sorry, but what he means by size is, if you open up explorer (located in the view tab of ROBLOX Studio) and also open up properties (found in the same tab) you will find that the parts true size is in the 'Size' property.

e.g 2, 4, 1.2

He wants you to paste that.
Report Abuse
SCPTheSculpture173 is not online. SCPTheSculpture173
Joined: 09 Mar 2014
Total Posts: 79
24 Apr 2014 05:07 PM
I'll PM when I can check it out. Can't right now because of the internet.
Report Abuse
COOLDUDE11OO is not online. COOLDUDE11OO
Joined: 21 Aug 2011
Total Posts: 5115
24 Apr 2014 05:17 PM
b = Instance.new("ClickDetector", script.Parent)
db = false

function open()
for i = 1,script.Parent.Size.Z*10 do
script.Parent.CFrame = script.Parent.CFrame*CFrame.new(0,0,.1)
end
end
function close()
for i = 1,script.Parent.Size.Z*10 do
script.Parent.CFrame = script.Parent.CFrame*CFrame.new(0,0,-.1)
end
end

b.MouseClick:connect(function()
if db == false then
db = true
open()
elseif db == true then
db = false
close()
end
end)

Just put this inside the door.
Report Abuse
SCPTheSculpture173 is not online. SCPTheSculpture173
Joined: 09 Mar 2014
Total Posts: 79
24 Apr 2014 06:17 PM
Am I suppost to put this as a child of workspace or the button's child?
Report Abuse
2unknown2 is not online. 2unknown2
Joined: 30 Oct 2011
Total Posts: 9351
24 Apr 2014 06:18 PM
Put this in the doors it loops them


while true do end repeat until false
Report Abuse
NeonRiver is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
24 Apr 2014 06:21 PM
[ Content Deleted ]
Report Abuse
SCPTheSculpture173 is not online. SCPTheSculpture173
Joined: 09 Mar 2014
Total Posts: 79
24 Apr 2014 06:37 PM
Ok thanks!
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