I can't get this script to work. Is there something that I typed wrong in it?
01 | local door = script.Parent |
02 |
03 | function open() -- This Function will make the door open. |
04 | door.CanCollide = false -- Makes players able to walk through door. |
05 |
06 | for transparency = 0 , 1 , . 1 do |
07 | door.Transparency = transparency |
08 | wait (. 1 ) |
09 | end |
10 | end |
11 | function close() -- This Function will close the door |
12 | for transparency = 1 , 0 , . 1 do |
13 | door.Transparency = transparency |
14 | wait (. 1 ) |
15 | end |
Guys please help!
Here ya go. This script does both. But only works with T-Shirts not Gamepasses
01 | print ( "VIP T-Shirt Door Script Loaded" ) |
02 |
03 |
04 | permission = { "yzeerf1313" } --Put who ever you want to go through the door without the T shirt |
05 | -- TextureId of the VIP shirt. |
06 | texture = "" -- Put the asset of the t shirt here. The whole link |
07 |
08 | function checkOkToLetIn(name) |
09 | for i = 1 ,#permission do |
10 |
11 |
12 |
13 | if (string.upper(name) = = string.upper(permission [ i ] )) then return true end |
14 | end |
15 | return false |
wow that's super complicated above. I recommend making a table
Vip = {"Insertnamehere","ETC","ETC"}
function isPlayerVip(name) for i, v in pairs do if name == v then -- do stuff here like make the door uncancollide or whatever else -- break their joints or whatever you want end end end