|
| 23 Mar 2016 11:23 AM |
function door() -- What the function is game.Workspace.Part.Transparency = 0.75 game.Workspace.Part.CanCollide = false game.Workspace.nob.Transparency = 0.75 game.Workspace.nob.CanCollide = false wait(2) game.Workspace.Part.Transparency = 0 game.Workspace.Part.CanCollide = true game.Workspace.nob.Transparency = 0 game.Workspace.nob.CanCollide = true end
game.Workspace.Part.ClickDetector.MouseClick:connect(door)
if game.Workspace.Part.Transparency == 0.75 then game.Workspace.light.Anchored = false end |
|
|
| Report Abuse |
|
|
| |
|
|
| 23 Mar 2016 11:39 AM |
| they both work just the "if" statement doesnt |
|
|
| Report Abuse |
|
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 23 Mar 2016 12:25 PM |
| It does, but it only runs once. |
|
|
| Report Abuse |
|
|
|
| 23 Mar 2016 01:14 PM |
| game.Workspace.light?????? |
|
|
| Report Abuse |
|
|
|
| 23 Mar 2016 03:14 PM |
yes. when the dorr is clicked it is opened and the light drops
(I want the light to become green but im testing it with eaier command |
|
|
| Report Abuse |
|
|