Help With This Key Door Script?
the parent is the tool. This is for a key door, this script allows you to go through the door.
But it just won't.
Also it works in Playtest but not Online
03 | function onButton 1 Down(mouse) |
05 | local hit = mouse.Target |
06 | if (hit = = nil ) then return end |
07 | if (hit.Name = = "SilverDoor2" ) then |
08 | hit.Transparency = 0.8 |
09 | hit.CanCollide = false |
17 | function onSelected(mouse) |
18 | print ( "Action Tool Selected" ) |
20 | mouse.Button 1 Down:connect( function () onButton 1 Down(mouse) end ) |
23 | bin.Selected:connect(onSelected) |