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
 

help?

Previous Thread :: Next Thread 
SCRIPTINGrocks is not online. SCRIPTINGrocks
Joined: 23 Oct 2010
Total Posts: 84
08 Nov 2011 07:52 PM
This is a admin door script for a T-shirt
It isnt working



print ("Admin Shirt Door Script Loaded")

permission = { "name" }

texture = { "http://www.roblox.com/super-pony-item?id=65371582" }

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
if human.Parent.Torso.roblox.Texture == texture or texture2 then
Door.Transparency = 0.5
Door.CanCollide = false
wait(1)
Door.CanCollide = true
Door.Transparency = 0

print("Human touched door")

elseif (checkOkToLetIn(human.Parent.Name)) then
print("Human passed test")
Door.Transparency = 0.0
Door.CanCollide = false
wait(4)
Door.CanCollide = true
Door.Transparency = 0
else human.Health = 0
end
end
end

script.Parent.Touched:connect(onTouched)
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