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: Working T-Shirt VIP Door

Previous Thread :: Next Thread 
Jay98brown is not online. Jay98brown
Joined: 16 Feb 2011
Total Posts: 692
31 May 2011 04:48 PM
Does anybody have a working T-Shirt VIP door I have a script but it doesnt work so can you help?

local user = "" -- change this to the name of the person the personal door belongs to
local shirt = "455656" -- 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 string.lower(hit.Parent.Name) == string.lower(user) or
hit.Parent.ShirtGraphic.Graphic == shirt then
script.Parent.CanCollide = false
script.Parent.Transparency = 0.4

wait(4) -- The length of time you want the door to be open for

script.Parent.CanCollide = true
script.Parent.Transparency = parent_transparency
else
hit.Parent:BreakJoints() -- remove this line if you want a non-killing door
end
end
end

script.Parent.Touched:connect(onTouched)
Report Abuse
PompeyTheGreat is not online. PompeyTheGreat
Joined: 10 Apr 2011
Total Posts: 5615
31 May 2011 04:53 PM
Asset id can't be just numbers, has to be this:

http://www.roblox.com/asset/?id= then you would put the numbers after the =
Report Abuse
Jay98brown is not online. Jay98brown
Joined: 16 Feb 2011
Total Posts: 692
31 May 2011 06:36 PM
Well I did that but it still doesnt work D:
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