|
| 25 Sep 2011 07:59 PM |
| So i'm scripting a v.i.p t-shirt door. i inserted the id of shirt. and it still wont work... |
|
|
| Report Abuse |
|
|
piemario
|
  |
| Joined: 17 Jul 2009 |
| Total Posts: 1379 |
|
|
| 25 Sep 2011 08:05 PM |
| subtract the last number by 1 and make sure its an asset not a URL |
|
|
| Report Abuse |
|
|
|
| 25 Sep 2011 08:17 PM |
| alright,the last number of id? |
|
|
| Report Abuse |
|
|
pwnedu46
|
  |
| Joined: 23 May 2009 |
| Total Posts: 7534 |
|
|
| 25 Sep 2011 08:24 PM |
No, the entire id-1
For example: the asset of this decal http://www.roblox.com/Kate-Purple-item?id=62543996
is
http://www.roblox.com/asset?id=62543995
~ pwnedu46 ~ |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 25 Sep 2011 08:24 PM |
| The wiki is probably right your just doing something wrong. |
|
|
| Report Abuse |
|
|
pwnedu46
|
  |
| Joined: 23 May 2009 |
| Total Posts: 7534 |
|
| |
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
| |
|
|
| 26 Sep 2011 04:24 PM |
| yeah most likly im doing something wrong. Well, ima keep on trying. |
|
|
| Report Abuse |
|
|
|
| 26 Sep 2011 04:44 PM |
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) |
|
|
| Report Abuse |
|
|
|
| 26 Sep 2011 04:47 PM |
| The wiki's 'VIP script' is horrible. |
|
|
| Report Abuse |
|
|
|
| 26 Sep 2011 04:47 PM |
| Yup,I've learned that. it doesnt work. and the script that was just posted is the one i just used. |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
| |
|
|
| 26 Sep 2011 05:39 PM |
| You Can Use My VIP Door Dude! Id Mind, Really |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 26 Sep 2011 05:41 PM |
| I know but that'll be harder it's easier to just say the tshirt method. |
|
|
| Report Abuse |
|
|
| |
|