Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do you Script a Click Open Door?

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.

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 :)

1 comment

0

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

This discussion is preserved as it was. New answers, comments, and votes are closed.