Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-4

How do I create a VIP door script? [closed]

Asked by 9 years ago

I want the script to check who's allowed in and who's not, if they are not allowed in they get killed. How to make the script?

Closed as Not Constructive by woodengop, Shawnyg, and M39a9am3R

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
awfulszn 394 Moderation Voter
9 years ago

This is one without a VIP T-shirt

01print("VIP Door Script loaded")
02 
03-- list of account names allowed to go through the door.
04permission = { "Snowballs" }
05 
06function checkOkToLetIn(name)
07    for i = 1,#permission do
08        -- convert strings to all upper case, otherwise we will let in
09        -- "Username1" but not "username" or "uSERNAME"
10        if (string.upper(name) == string.upper(permission[i])) then return true end
11    end
12    return false
13end
14 
15local Door = script.Parent
View all 36 lines...

This is one WITH a VIP T-shirt

01print ("VIP T-Shirt Door Script Loaded")
02 
03-- list of account names allowed to go through the door.
04permission = { "Snowballs", "Test" } -- This is how many people can still get through, so you don't have to change shirts. You can also have another friend here.
05 
06-- TextureId of the VIP shirt.
07texture = "http://www.roblox.com/Item.aspx?ID=17764138" -- Link of the T-shirt
08 
09function checkOkToLetIn(name)
10    for i = 1,#permission do
11        -- convert strings to all upper case, otherwise we will let in
12        -- "Username" but not "username" or "uSERNAME"
13        if (string.upper(name) == string.upper(permission[i])) then return true end
14    end
15    return false
View all 45 lines...

Hope this helps! (By the way, place this script INSIDE the part for the VIP door)

0
Ok thanks :) SnowbaIIs -2 — 9y
0
NP awfulszn 394 — 9y
Ad