Frivo
|
  |
| Joined: 07 Jun 2011 |
| Total Posts: 5356 |
|
|
| 25 Aug 2011 06:45 PM |
I want it to work with this mega VIP shirt:
http://www.roblox.com/Mountain-Adventure-Quest-Mega-VIP-item?id=60204260
Script:
print ("VIP T-Shirt Door Script Loaded")
local p = script.Parent
-- list of account names allowed to go through the door. permission = { "Nickcool9999, BobCowMan, RandomCowGoesMooo, Wwemaniac99, SpeedySeat, Cocorebals" } -- This is how many people can still get through, so u don't have to change shirts. You can also have another friend here.
id2 = 59937231 -- the end part of the shirt URL.
script.Parent.TheRealthing.Texture = "http://www.roblox.com/Game/Tools/ThumbnailAsset.ashx?fmt=png&wd=150&ht=150&aid=59937230"
function CheckName(str) local check = false for i = 1, #permission do if permission[i] == str then check = true end end return check end
script.Parent.Touched:connect(function(hit) if hit == nil or hit.Parent == nil then return end if hit.Parent:IsA("Model") == false then return end if hit.Parent:findFirstChild("Humanoid") == nil then return end local pl = game.Players:findFirstChild(hit.Parent.Name) if pl ~= nil then if game:GetService("BadgeService"):UserHasBadge(pl.userId, id2) == true then p.Transparency = 0.9 p.CanCollide = false wait(5) p.Transparency = 0.5 p.CanCollide = true elseif CheckName(pl.Name) == true then p.Transparency = 0.9 p.CanCollide = false wait(5) p.Transparency = 0.5 p.CanCollide = true else hit.Parent.Humanoid.Health = 0 end end end)
|
|
|
| Report Abuse |
|
|
jake5545
|
  |
| Joined: 07 Jun 2009 |
| Total Posts: 610 |
|
|
| 25 Aug 2011 06:48 PM |
list of account names allowed to go through the door. permission = { "Nickcool9999", "BobCowMan"," RandomCowGoesMooo", "Wwemaniac99", "SpeedySeat", "Cocorebals" } -- This is how many people can still get through, so u don't have to change shirts. You can also have another friend here.
|
|
|
| Report Abuse |
|
|
|
| 25 Aug 2011 06:48 PM |
| Hey I know nickcool9999, he's one of my best friends :P |
|
|
| Report Abuse |
|
|
jake5545
|
  |
| Joined: 07 Jun 2009 |
| Total Posts: 610 |
|
|
| 25 Aug 2011 06:48 PM |
| put parenthesese around every name not just at beggining and end |
|
|
| Report Abuse |
|
|
Frivo
|
  |
| Joined: 07 Jun 2011 |
| Total Posts: 5356 |
|
|
| 25 Aug 2011 06:50 PM |
@Jake, I am not focusing on putting the names into it. I want it so that if you buy the t-shirt in the link, and wear it, then you can get into the game.
~Frivo~ |
|
|
| Report Abuse |
|
|
jake5545
|
  |
| Joined: 07 Jun 2009 |
| Total Posts: 610 |
|
|
| 25 Aug 2011 06:52 PM |
| oh i cant fix that im no good a scripting |
|
|
| Report Abuse |
|
|
|
| 25 Aug 2011 07:03 PM |
Just make a new one starting from mine... local user = "Player" -- change this to the name of the person the personal door belongs to local shirt = "ASSET ID HERE" -- change this to the t-shirt's asset ID
local door = script.Parent local doorTransparency = door.Transparency
function onTouched(hit) local character = hit.Parent
if character:FindFirstChild("Humanoid") then if character.Name:lower == user:lower() or character.ShirtGraphic.Graphic == shirt then door.CanCollide = false door.Transparency = 0.4
wait(4) -- The length of time you want the door to be open for
door.CanCollide = true door.Transparency = doorTransparency else character:BreakJoints() -- remove this line if you want a non-killing door end end end
door.Touched:connect(onTouched)
There edit that... |
|
|
| Report Abuse |
|
|
jake5545
|
  |
| Joined: 07 Jun 2009 |
| Total Posts: 610 |
|
|
| 25 Aug 2011 07:04 PM |
| artix made the best thing ever |
|
|
| Report Abuse |
|
|
jake5545
|
  |
| Joined: 07 Jun 2009 |
| Total Posts: 610 |
|
|
| 25 Aug 2011 07:05 PM |
| go to my place and check it out |
|
|
| Report Abuse |
|
|
|
| 25 Aug 2011 07:08 PM |
| Actually I took it from the Wiki xD |
|
|
| Report Abuse |
|
|
Frivo
|
  |
| Joined: 07 Jun 2011 |
| Total Posts: 5356 |
|
| |
|