|
| 10 Nov 2017 05:09 PM |
I need help with this simple script not working for some reason:
script.Parent.Touched:Connect(function(hit) if hit.Name == "Keycard" then script.Parent.CanCollide = false script.Parent.Transparency = 1 wait(2) script.Parent.CanCollide = true script.Parent.Transparency = 0 end end)
|
|
|
| Report Abuse |
|
|
| |
|
royaltoe
|
  |
| Joined: 14 Sep 2011 |
| Total Posts: 36834 |
|
|
| 10 Nov 2017 05:13 PM |
| seems like it would work for me. what does the keycard look like? is it a model? tool? |
|
|
| Report Abuse |
|
|
Lazar0o
|
  |
| Joined: 08 Dec 2016 |
| Total Posts: 54 |
|
|
| 10 Nov 2017 05:19 PM |
i suck at scripting but try putting instead of script.parent put game.workspace.blablabla and see if that works
|
|
|
| Report Abuse |
|
|
| |
|
|
| 10 Nov 2017 05:26 PM |
| The door isn't opening, like its supposed to. |
|
|
| Report Abuse |
|
|
dexperaux
|
  |
| Joined: 18 Dec 2013 |
| Total Posts: 153 |
|
|
| 10 Nov 2017 05:28 PM |
| I think its "connect" not "Connect" |
|
|
| Report Abuse |
|
|
Lazar0o
|
  |
| Joined: 08 Dec 2016 |
| Total Posts: 54 |
|
|
| 10 Nov 2017 05:38 PM |
| get a free model of a key and a door , if it works go look at the script and compare it to yours , u may accidentally learn something :) |
|
|
| Report Abuse |
|
|
| |
|