|
| 21 Feb 2010 05:04 PM |
| It works Offline but not on Online. Does anyone know? |
|
|
| Report Abuse |
|
|
| |
|
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
|
  |
| 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 |
|
|
| |
|
|
| 21 Feb 2010 05:47 PM |
| We also said post the script please. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
| |
|
| |
|
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
|
  |
| Joined: 27 Apr 2008 |
| Total Posts: 12469 |
|
| |
|
|
| 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 |
|
|