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

How to get a sword to do Self-Infliction and then Loop?

Asked by 10 years ago

So I want my sword to be special and if you like don't have permission to not get harmed by the sword you get hurt for holding it... But I don't think the script I've made is right... But this is all I could think of. I don't know how to loop either, so could someone help with that?

01-- list of account names allowed to go through the door.
02permission = { "MasterPoke99" } -- This is how many people can still get through, so u don't have to change shirts. You can also have another friend here. -EDIT
03 
04-- TextureId of the VIP shirt.
05texture = "http://www.roblox.com" -- EDIT
06function checkOkToLetIn(name)
07    for i = 1,#permission do
08        -- convert strings to all upper case, otherwise we will let in
09        -- "Username" 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 51 lines...

Oh and where do I put the script in the sword...

THX!

Answer this question