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: Im having trouble with my VIP Door

Previous Thread :: Next Thread 
MysteryManiac is not online. MysteryManiac
Joined: 19 Feb 2010
Total Posts: 18
21 Feb 2010 05:04 PM
It works Offline but not on Online. Does anyone know?
Report Abuse
abbymcabby is not online. abbymcabby
Joined: 03 Apr 2009
Total Posts: 2402
21 Feb 2010 05:04 PM
...
Report Abuse
H1998 is not online. H1998
Joined: 30 Mar 2009
Total Posts: 3336
21 Feb 2010 05:11 PM
mostly scripts break when you have Build mode/Solo mode

use roblox studio instead
Report Abuse
Xtreme101 is not online. Xtreme101
Joined: 03 Jan 2009
Total Posts: 4385
21 Feb 2010 05:28 PM
Post your script here. We would be glad to help.
Report Abuse
MysteryManiac is not online. MysteryManiac
Joined: 19 Feb 2010
Total Posts: 18
21 Feb 2010 05:44 PM
I did use Roblox Studio.
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
21 Feb 2010 05:47 PM
We also said post the script please.
Report Abuse
MysteryManiac is not online. MysteryManiac
Joined: 19 Feb 2010
Total Posts: 18
21 Feb 2010 06:05 PM

Its the roblox wiki script but it want work online
print ("VIP T-Shirt Door Script Loaded")

-- list of account names allowed to go through the door.
permission = { "MysteryManiac" } -- This is how many people can still get through, so u don't have to change shirts. You can also have another friend here.

-- TextureId of the VIP shirt.
texture = "http://www.roblox.com/asset/?version=1&id=1194117" -- Go to the wiki below this script to find out how to change the shirt. And paste the link in between the "" marks.

function checkOkToLetIn(name)
for i = 1,#permission do
-- convert strings to all upper case, otherwise we will let in
-- "Username" but not "username" or "uSERNAME"
if (string.upper(name) == string.upper(permission[i])) then return true end
end
return false
end

local Door = script.Parent

function onTouched(hit)
print("Door Hit")
local human = hit.Parent:findFirstChild("Humanoid")
if (human ~= nil ) then
if human.Parent.Torso.roblox.Texture == texture then --the shirt
Door.Transparency = 0.7
Door.CanCollide = false
wait(4) -- this is how long the door is open
Door.CanCollide = true
Door.Transparency = 0
-- a human has touched this door!
print("Human touched door")
-- test the human's name against the permission list
elseif (checkOkToLetIn(human.Parent.Name)) then
print("Human passed test")
Door.Transparency = 0.7
Door.CanCollide = false
wait(4) -- this is how long the door is open
Door.CanCollide = true
Door.Transparency = 0
else human.Health = 0 -- delete this line of you want a non-killing VIP door
end
end
end

script.Parent.Touched:connect(onTouched)
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
21 Feb 2010 06:14 PM
looks like a free model.
Report Abuse
MysteryManiac is not online. MysteryManiac
Joined: 19 Feb 2010
Total Posts: 18
21 Feb 2010 06:16 PM
got it off roblox wiki
Report Abuse
oysi93 is not online. oysi93
Joined: 27 Apr 2008
Total Posts: 12469
21 Feb 2010 06:17 PM
It is a free model.
All those free models have scripts that have waay too many lines, you can almost shorten this script to around 5.
Report Abuse
oysi93 is not online. oysi93
Joined: 27 Apr 2008
Total Posts: 12469
21 Feb 2010 06:17 PM
To around 5 lines.
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
21 Feb 2010 06:24 PM
Yeah.

Tex = "TEXTURE HERE"
script.Parent.Touched:connect(function(lol)
if lol.Parent:FindFirstChild("Humanoid") then
if lol.Parent.Torso.roblox.Texture == Tex then
script.Parent.Transparency = .5 script.Parent.CanCollide = false wait(2)
script.Parent.Transparency = 0 script.Parent.CanCollide = true
end end end)
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