F = GetMouse() function Clicked() workspace.Door.CanCollide = false workspace.Door.Transparency = 0.5 wait(3) workspace.Door.Transparency = 0 workspace.Door.CanCollide = true end workspace.Button.F.Button1Down:connect(Clicked)
I can't seem to figure out how to get the Click event to work. What do I need to do to fix this? Or what needs to be added and taken out?
Because for a brick to be able to be clicked you must add a ClickDetector. Which allows clicks on a brick.
To learn more about how to use ClickDetectors look here: http://wiki.roblox.com/index.php?title=ClickDetector
game.Workspace.Button.F.ClickDetector.MouseClick:connect(Clicked)