Put script in Awnser plz.
COMMUNITY QUESTION
How do u do so you click a door and then it open and closes each time you click?
2 answers
Here's a simple script that opens and closes when clicked. Insert the script and a ClickDetector into the door part. Modify the script to your liking. EDIT: I didn't see your comment, remove the CanCollide and Transparency lines and change them to rotate the door. Use this page on the wiki for help: http://wiki.roblox.com/index.php?title=CFrame
door = script.Parent
open = false
door.ClickDetector.MouseClick:connect(function()
if(open == false) then
door.CanCollide = false
door.Transparency = 0.5
open = true
elseif(open == true) then
door.CanCollide = true
door.Transparency = 0
open = false
end
end)
2 comments
0
Thanks thats perfect!
0
You're welcome!
If you mean a sliding door then use the HansCo sliding door kit
http://web.roblox.com/HansCo-CFrame-Door-A-item?id=14704864
Its very simple to use. If you already have a door then the script might be usefull :P
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
I mean by a swivel door so it swivels around!