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: I need a VIP door.

Previous Thread :: Next Thread 
Captainblewy is not online. Captainblewy
Joined: 15 Jul 2011
Total Posts: 288
25 Feb 2012 03:25 PM
Can someone script one for me? (T-SHIRT) http://www.roblox.com/Whos-next-VIP-item?id=73329215 , please.
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
25 Feb 2012 03:42 PM
I need a new lamborghini.
Report Abuse
TINISH0TZ is not online. TINISH0TZ
Joined: 20 Nov 2009
Total Posts: 2549
25 Feb 2012 03:44 PM
There's a simple tutorial on the Wiki.
Report Abuse
unholysoda is not online. unholysoda
Joined: 15 May 2010
Total Posts: 9024
25 Feb 2012 03:44 PM
http://wiki.roblox.com/index.php/How_do_I_make_VIP_doors%3F
Report Abuse
Captainblewy is not online. Captainblewy
Joined: 15 Jul 2011
Total Posts: 288
25 Feb 2012 03:47 PM
I tried that!!! IT DOESNT WORK FOR ME >:( I DON'T UNDERSTAND HOW TO PUT IT ALL TOGETHER AND THE SHIRT AND THE THING, CAN SOMEONE JJUST GET THE SCRIPT WITH THIS SHIRT SO IT LETS PEOPLE THROUGH> http://www.roblox.com/Whos-next-VIP-item?id=73329215
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
25 Feb 2012 03:49 PM
local user = "Player" -- The player's username.
local assetId = 1032571 -- The ID of the asset that must be owned by the player. Generally the ID of the t-shirt that lets the player through.
 
local door = script.Parent -- The door. Assumes this script is in the door.
 
door.Touched:connect(function(otherPart)
    if not otherPart.Parent then return end
    local player = game:GetService('Players'):GetPlayerFromCharacter(otherPart.Parent) or game:GetService('Players'):GetPlayerFromCharacter(otherPart.Parent.Parent)
 
    if player and player.Character and (player.Name:lower() == user:lower() or game:GetService('BadgeService'):UserHasBadge(player.userId, assetId)) then
        local anchoredState = door.Anchored -- Remember whether the door was anchored.
        local transparencyState = door.Transparency -- Remember the door's tranparency.
 
        door.Anchored = true
        door.CanCollide = false
        door.Transparency = .5
        wait(4) -- You can change this if you want to edit for how long the door stays open.
        door.CanCollide = true
        door.Anchored = anchoredState -- Gives back to the door it previous anchored state.
        door.Transparency = transparencyState -- Give back its transparency to the door.
    else
        player.Character:BreakJoints() -- Kill the player if he's not allowed to go through. Remove this if you don't want the player to die.
    end
end)
Report Abuse
Captainblewy is not online. Captainblewy
Joined: 15 Jul 2011
Total Posts: 288
25 Feb 2012 03:52 PM
Can you put this shirt Id in there, I dont know how. http://www.roblox.com/Whos-next-VIP-item?id=73329215
Report Abuse
unholysoda is not online. unholysoda
Joined: 15 May 2010
Total Posts: 9024
25 Feb 2012 03:56 PM
local user = "Player" -- The player's username.
local assetId = 73329215 -- The ID of the asset that must be owned by the player. Generally the ID of the t-shirt that lets the player through.

local door = script.Parent -- The door. Assumes this script is in the door.

door.Touched:connect(function(otherPart)
if not otherPart.Parent then return end
local player = game:GetService('Players'):GetPlayerFromCharacter(otherPart.Parent) or game:GetService('Players'):GetPlayerFromCharacter(otherPart.Parent.Parent)

if player and player.Character and (player.Name:lower() == user:lower() or game:GetService('BadgeService'):UserHasBadge(player.userId, assetId)) then
local anchoredState = door.Anchored -- Remember whether the door was anchored.
local transparencyState = door.Transparency -- Remember the door's tranparency.

door.Anchored = true
door.CanCollide = false
door.Transparency = .5
wait(4) -- You can change this if you want to edit for how long the door stays open.
door.CanCollide = true
door.Anchored = anchoredState -- Gives back to the door it previous anchored state.
door.Transparency = transparencyState -- Give back its transparency to the door.
else
player.Character:BreakJoints() -- Kill the player if he's not allowed to go through. Remove this if you don't want the player to die.
end
end)
Report Abuse
TINISH0TZ is not online. TINISH0TZ
Joined: 20 Nov 2009
Total Posts: 2549
25 Feb 2012 03:57 PM
Unhol's script seems correct.
Report Abuse
Captainblewy is not online. Captainblewy
Joined: 15 Jul 2011
Total Posts: 288
25 Feb 2012 04:01 PM
I put the script in the door, IT KILLED ME.....
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
25 Feb 2012 04:02 PM
I just looked at the VIP doors article... eww...

I'm completely rewriting that page.
Report Abuse
Captainblewy is not online. Captainblewy
Joined: 15 Jul 2011
Total Posts: 288
25 Feb 2012 04:05 PM
The door is staying open forever...
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