|
Ok here is my script: local user = "daltontheman11" -- change this to the name of the person the personal door belongs to
local door = script.Parent
local doorTransparency = door.Transparency
function onTouched(hit)
local character = hit.Parent
if character:FindFirstChild("Humanoid") then
if string.lower(character.Name) == string.lower(user) then
door.CanCollide = false
door.Transparency = 5.0
wait(2) -- You can change the number to the amount of seconds you want the door to be open
door.CanCollide = true
door.Transparency = doorTransparency
else
character:BreakJoints() -- remove this line if you want a non-killing door
end
end
end
script.Parent.Touched:connect(onTouched
But its not seeming to let me in or even kill me!!! HELP!! |
|
VitimanAJoin Date: 2008-04-04 Post Count: 869 |
not your script is it... erase the hints to make it less obvious XD |
|
|
I believe this should do the trick:
user = "daltontheman11"
door = script.Parent
function onTouched(hit)
character = hit.Parent
if character:FindFirstChild("Humanoid") and string.lower(character.Name) == string.lower(user) then
door.CanCollide = false
door.Transparency = 0.5
wait(2)
door.CanCollide = true
door.Transparency = 0
elseif character:findFirstChild("Humanoid") then
character:BreakJoints()
end
end
script.Parent.Touched:connect(onTouched) |
|
|
Wow they changed my subject lol well Silver it didn't work :( |
|
Blues714Join Date: 2008-12-23 Post Count: 6507 |
Try this instead!
(Put names here for permission to go through: "NAME","NAME","NAME","NAME")
( Link texture = )
local door = script.Parent
local doorTransparency = door.Transparency
function onTouched(hit)
local character = hit.Parent
if character:FindFirstChild("Humanoid") then
if string.lower(character.Name) == string.lower(user) then
door.CanCollide = false
door.Transparency = 0.0 < change to 3.0 or 4.0
wait(2) -- You can change the number to the amount of seconds you want the door to be open
door.CanCollide = true
door.Transparency = doorTransparency
else
character:HealthPoints(0)-- remove this line if you want a non-killing door
end
end
end
script.Parent.Touched:connect(onTouched)
Enjoy!
|
|
|
Thanks! I'm a little confused. Can you do that script but put my username and space for one more name? BTW do I space the names and commas or what? |
|
|
I'm taking to you Blues174 |
|
Blues714Join Date: 2008-12-23 Post Count: 6507 |
Like this:
("Daltontheman11","Random","Random") |
|
|
spaces dont register so you dont need a space for anything. MMM-K? |
|
|
Can you please make the whole script with that line I'm super confused |
|
Blues714Join Date: 2008-12-23 Post Count: 6507 |
^
Thanks for telling him |
|
Blues714Join Date: 2008-12-23 Post Count: 6507 |
Whoops not you above xD I mean above 2 |
|
|
Thanks about the spaces :) |
|
|
Ok I really need that script thanks! |
|
Blues714Join Date: 2008-12-23 Post Count: 6507 |
Here then :|
{ VIP Shirt Loading }
( Put names here for permission to go through: "Daltontheman11","NAME","NAME","NAME")
( Link texture = )
The door only confirms this: Roblox
The door does not confirm this: RoBlOx, ROBLOX, or RoBLox
local door = script.Parent
local doorTransparency = door.Transparency
function onTouched(hit)
local character = hit.Parent
if character:FindFirstChild("Humanoid") then
if string.lower(character.Name) == string.lower(user) then
door.CanCollide = false
door.Transparency = 0.0 < change to 3.0 or 4.0
wait(2) -- You can change the number to the amount of seconds you want the door to be open
door.CanCollide = true
door.Transparency = doorTransparency
else
character:HealthPoints(0)-- remove this line if you want a non-killing door
end
end
end
script.Parent.Touched:connect(onTouched)
Enjoy!
|
|
|
It didn't work!!!!!! Just plz put in the stuff I can copy, paste, and change NAme and then done.Thanks!G2g so ya. |
|
|
@blue
LOLOLOL I laughed at your script. Your arguments don't exist xD. The whole script you wrote is just made up..
table = {"ROBLOX","UttermostExedra"} --They can be robloX ROBLOX RoBlOx or whatever.
local door = script.Parent
door.Touched:connect(function(hit)
for i=1,#table do
local character = hit.Parent
if character:FindFirstChild("Humanoid") then
if string.lower(character.Name) == string.lower(table[i]) then
door.CanCollide = false
door.Transparency = 0.7
wait(2)
door.CanCollide = true
door.Transparency = 0
else
character.Humanoid.Health = 0
end
end
end
end)
|
|
|
is :HealthPoints() really a thing? lol |
|
Blues714Join Date: 2008-12-23 Post Count: 6507 |
That's one of my VIP script. I have like 76 VIP scripts |
|
pwnedu46Join Date: 2009-05-23 Post Count: 7534 |
"is :HealthPoints() really a thing? lol"
Nope.
@blues: You could make it more efficient by using a pairs iterator instead table[index].
______________________________________
~pwnedu46~ |
|
|
woah i just took a glance theres actually a LOT more wrong with that script :3 |
|
|
@blue
You can't script.. All of your scripts use functions and variables that aren't defined, nor they exist. You didn'tdefine the table, and you lower the strings of user, while your table has no name >_>. |
|
|
Lol, guys look at his profile. Scripting 5 stars. Now look at his bio xD
Bio: I'm really busy everytime since I am a programmer, designer, web programmer, Roblox Wiki programming, --LOL
School work, ETC. Since I came in 2008, I'm an 08er... Don't trust anyone that are selling VIP and saying it's for my game. They are fake. Real ones are made from me. If you get scam, I'm not gonna pay you. You got yourself into it.
LOLOLOLOL. He doesn't work at wiki, because his scripting is really, really terrible :O. |
|
|
|
Try this one...My works more efficent i guess put it in the brick you want:
--Admin Door Script Created by Vitouliss14!
local Admin = {"Vitouliss14","YOUR NAME HERE"}
local Door = script.Parent
function Touched(part)
local h = part.Parent:FindFirstChild("Humanoid")
if h~=nil then
for s,b in pairs(Admin) do
if string.lower(part.Parent.Name) == string.lower(b) then
Door.Transparency = 0.6
Door.CanCollide = false
wait(3)
Door.Transparency = 0
Door.CanCollide = true
end
end
end
end
script.Parent.Touched:connect(Touched) |
|