How do you script a click open door? The door I am asking how to script is an Individual Part that you can manually open and close by clicking it. When the door opens CanColide is disabled and Transparency is enabled.
✓ ANSWER ACCEPTED
How do you Script a Click Open Door?
1 answer
✓ Accepted answer
What you're asking for is very simple. This isn't a request site, but first you should read up on the following.
-ClickDetectors. ClickDetectors
-Parts and properties (Transparency and CanColide)
It isn't hard to look things up for once.
local IsOpen = false
local Part = Instance.new("Part", Workspace)
local ClickDetector = Instance.new("ClickDetector", Part)
clickDetector.MouseClick:connect(function(Player))
Part.Transparency = IsOpen and 1 or 0
Part.CanColide = not IsOpen
end)
Accept and thumb up please :)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Did now work. Also, it is not inside the ROBLOX Wiki.