generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Can someone fix this script?

Previous Thread :: Next Thread 
Frivo is not online. 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 is not online. 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
Rayblox150 is not online. Rayblox150
Joined: 29 Dec 2010
Total Posts: 2790
25 Aug 2011 06:48 PM
Hey I know nickcool9999, he's one of my best friends :P
Report Abuse
jake5545 is not online. 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 is not online. 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 is not online. 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
Artixlol9999 is not online. Artixlol9999
Joined: 11 Sep 2010
Total Posts: 915
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 is not online. jake5545
Joined: 07 Jun 2009
Total Posts: 610
25 Aug 2011 07:04 PM
artix made the best thing ever
Report Abuse
jake5545 is not online. jake5545
Joined: 07 Jun 2009
Total Posts: 610
25 Aug 2011 07:05 PM
go to my place and check it out
Report Abuse
Artixlol9999 is not online. Artixlol9999
Joined: 11 Sep 2010
Total Posts: 915
25 Aug 2011 07:08 PM
Actually I took it from the Wiki xD
Report Abuse
Frivo is not online. Frivo
Joined: 07 Jun 2011
Total Posts: 5356
25 Aug 2011 07:13 PM
Thanks Artix

~Frivo~
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image