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: So I used the wiki VIP door and made it global...

Previous Thread :: Next Thread 
fart101 is not online. fart101
Joined: 16 Dec 2011
Total Posts: 350
06 Sep 2011 05:24 PM
And here's the VIP script:

print("VIP Door Script loaded")

-- list of account names allowed to go through the door.
permission = _G.Permission.Tier1

function checkOkToLetIn(name)
    for i = 1,#permission do
        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
        print("Human touched door")
        if (checkOkToLetIn(human.Parent.Name)) then
            print("Human passed test")
            Door.Transparency = 1
            Door.CanCollide = false
            wait(1) -- this is how long the door is open
            Door.CanCollide = true
            Door.Transparency = 1
        end
    end
end

script.Parent.Touched:connect(onTouched)

And the global value script:

_G.Permission = {
Tier1 = {"minicl55", "SCARFACIAL", "breadandmilk","combativewolffe","malasiscookieguy","Chiba20","fart101"},
Tier2 = {"minicl55", "SCARFACIAL", "Chiba20", "fart101"},
Tier3 = {"minicl55", "SCARFACIAL", "fart101"}
}

The global values is in game.Workspace, the VIP door script is in the VIP door (so game.Workspace.VIP door.VIP door script)

Any idea why this might not work?

--minicl55, the magical unicorn--
Report Abuse
fart101 is not online. fart101
Joined: 16 Dec 2011
Total Posts: 350
06 Sep 2011 05:42 PM
bump

--minicl55, the magical unicorn--
Report Abuse
fart101 is not online. fart101
Joined: 16 Dec 2011
Total Posts: 350
06 Sep 2011 05:46 PM
I would really appreciate it if you helped me, PLEASE!

--minicl55, the magical unicorn--
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
06 Sep 2011 05:47 PM
Clicking a button to insert it from free models does not mean it's yours.
Report Abuse
fart101 is not online. fart101
Joined: 16 Dec 2011
Total Posts: 350
06 Sep 2011 05:48 PM
Actually, an online friend of mine (SCARFACIAL) made it.

In the free models, there are 2. one that is mine (check it here:

http://www.roblox.com/Global-VIP-door-item?id=61263503

)

and another which scripts are nothing like it.

--minicl55, the magical unicorn--
Report Abuse
KingBoo is not online. KingBoo
Joined: 16 Jul 2007
Total Posts: 8495
06 Sep 2011 05:49 PM
"So I made"

You just.. your name isn't even first in any of the tiers, you'd figure if you actually made it that your name would be first.
Report Abuse
fart101 is not online. fart101
Joined: 16 Dec 2011
Total Posts: 350
06 Sep 2011 05:50 PM
minicl55 is my main, who is banned.

If you search him, he doesn't come up. Thats why my siggy uses his name, too.

--minicl55, the magical unicorn--
Report Abuse
KingBoo is not online. KingBoo
Joined: 16 Jul 2007
Total Posts: 8495
06 Sep 2011 05:51 PM
print("VIP Door Script loaded")

-- list of account names allowed to go through the door.
permission = _G.Permission.Tier1

function checkOkToLetIn(name)
for i = 1,#permission do
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
print("Human touched door")
if (checkOkToLetIn(human.Parent.Name)) then
print("Human passed test")
Door.Transparency = 1
Door.CanCollide = false
wait(1) -- this is how long the door is open
Door.CanCollide = true
Door.Transparency = 1
end
end
end

script.Parent.Touched:connect(onTouched)


Is the wiki.roblox vip door.

You did not make any of it.
Report Abuse
fart101 is not online. fart101
Joined: 16 Dec 2011
Total Posts: 350
06 Sep 2011 05:53 PM
I know. I made the permission script. (Well, SCARFACIAL made it for me, but he gave it to me)

But it doesn't work.

Why would I design another script if there is a working one available on the wiki?

--minicl55, the magical unicorn--
Report Abuse
KingBoo is not online. KingBoo
Joined: 16 Jul 2007
Total Posts: 8495
06 Sep 2011 05:55 PM
Well then you have no right to say "So I made"
Report Abuse
fart101 is not online. fart101
Joined: 16 Dec 2011
Total Posts: 350
06 Sep 2011 05:56 PM
fine. I fixed the title. Will you help me how?

--minicl55, the magical unicorn--
Report Abuse
fart101 is not online. fart101
Joined: 16 Dec 2011
Total Posts: 350
06 Sep 2011 05:59 PM
So I take it you aren't going to help me >_>

--minicl55, the magical unicorn--
Report Abuse
fart101 is not online. fart101
Joined: 16 Dec 2011
Total Posts: 350
06 Sep 2011 06:01 PM
*sighs*

So I guess all that auguring was for nothing...

--minicl55, the magical unicorn--
Report Abuse
Parthax is not online. Parthax
Joined: 27 Apr 2011
Total Posts: 6941
06 Sep 2011 06:12 PM
[ Content Deleted ]
Report Abuse
fart101 is not online. fart101
Joined: 16 Dec 2011
Total Posts: 350
06 Sep 2011 06:19 PM
lol ik :P

I did it in play mode.

And you can do it in build mode, I think, I haven't tried it, but the guys name is player.

--minicl55, the magical unicorn--
Report Abuse
fart101 is not online. fart101
Joined: 16 Dec 2011
Total Posts: 350
06 Sep 2011 06:30 PM
So can I get some help over here?

--minicl55, the magical unicorn--
Report Abuse
fart101 is not online. fart101
Joined: 16 Dec 2011
Total Posts: 350
06 Sep 2011 08:08 PM
Pwease? :D

--minicl55, the magical unicorn--
Report Abuse
fart101 is not online. fart101
Joined: 16 Dec 2011
Total Posts: 350
06 Sep 2011 08:18 PM
Why won't you help me?

--minicl55, the magical unicorn--
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