koontayJoin Date: 2007-03-08 Post Count: 1371 |
Is there a way, so that if someone is wearing a certain hat, they get admin weapons and stuff? Like how if you aren't wearing a Atro Helm and you go in a moon place, your head explodes. I would give you Anaminus's Admin Weapons script, but I can't on this comp. So is it possible, and if it is can someone make it for me? |
|
tottiJoin Date: 2006-11-02 Post Count: 2684 |
Easy...just change the shirt ID to the hat ID
Totti |
|
|
koontayJoin Date: 2007-03-08 Post Count: 1371 |
Erm....But I don't have a shirt script....
Totti, could you just whip one up for me? |
|
LuigiFanJoin Date: 2007-06-18 Post Count: 4143 |
Well I havent tested this and it might not work, but this might work for an admin hat door.
function onTouched(hit)
print("Door Hit")
local human = hit.Parent:findFirstChild("EmeraldEye")
if (human ~= nil ) then
Door.Transparency = .5
Door.CanCollide = false
wait(7)
Door.CanCollide = true
Door.Transparency = 0
else human.Health= 0
end
end
end
connection = Door.Touched:connect(onTouched)
--Replace "EmeraldEye" with the hat name.
|
|
koontayJoin Date: 2007-03-08 Post Count: 1371 |
Ok, thanks. I'll try it out later. |
|
|
i dun think that will work cuz human equals to the hat and in else it says "human.Health=0" so it wont work (im 99.999999% sure) |
|
LuigiFanJoin Date: 2007-06-18 Post Count: 4143 |
Heh, I must have forgot that part XD
function onTouched(hit)
print("Door Hit")
local human = hit.Parent:findFirstChild("EmeraldEye")
if (human ~= nil ) then
Door.Transparency = .5
Door.CanCollide = false
wait(7)
Door.CanCollide = true
Door.Transparency = 0
else hit.Parent.Humanoid.Health = 0
end
end
end
connection = Door.Touched:connect(onTouched)
-- Try that!
=P-LuigiFan-=P |
|
PRGJoin Date: 2007-06-19 Post Count: 4185 |
silly hats only *walks in with a top hat* |
|
GanondudeJoin Date: 2007-06-22 Post Count: 1175 |
LuigiFan your door still won't work; you forgot to declare Door :P
This is a working Hat Door script:
------------------------------------------------------------------------------------------
Door = script.Parent
function onTouched(hit)
local human = hit.Parent:findFirstChild("Humanoid")
if (human ~= nil) then
local hat = hit.Parent:findFirstChild("EmeraldEye") -- change this to the hat you want
if (hat ~= nil) then
Door.Transparency = .5
Door.CanCollide = false
wait(3)
Door.CanCollide = true
Door.Transparency = 0
else human.Health= 0
end
end
end
connection = Door.Touched:connect(onTouched)
------------------------------------------------------------------------------------------
|
|
koontayJoin Date: 2007-03-08 Post Count: 1371 |
Erm....
OK.
I'll get to testing these out Tuesday.
But, consider how I wanna use this...
Say My Eyeball Drone army comes into my place. I want them all to start with Balefire (like an eyeball ray), but Balefire isn't a pickup-able weapon...
I need them to start with the weapon. I'll have to post Anaminus's admin weapons script... |
|
LuigiFanJoin Date: 2007-06-18 Post Count: 4143 |
Ok, I just made that in like 2 secs at night so dont blame me XD
=P-LuigiFan-=P |
|
|
gannon it wont work cuz of human.Health wich = the health of the hat so the script is rong |
|
koontayJoin Date: 2007-03-08 Post Count: 1371 |
Aaarrrgh! I hate to sound impatient but can someone make me it fast? I really need it!
(K) |
|
jeffcenaJoin Date: 2007-08-26 Post Count: 3743 |
kwl im guna try that Script o_O |
|
koontayJoin Date: 2007-03-08 Post Count: 1371 |
Erm...you do that... |
|
jeffcenaJoin Date: 2007-08-26 Post Count: 3743 |
lol |
|
|
this will take forever to figure out |
|
LuigiFanJoin Date: 2007-06-18 Post Count: 4143 |
Koontay, lavamaster's wrong because Gannon added the (hat = bla bla bla) and never changed the (human = bla bla bla). So Koontay just test it and it SHOULD work...
=P-LuigiFan-=P |
|
SgtDixonJoin Date: 2007-06-18 Post Count: 22 |
hi koontay, and everyone else =) |
|
|
uuugggghhhhh this is so easy this is minor scripting c'mon koontay so it yourself |
|
|
uuugggghhhhh this is so easy this is minor scripting c'mon koontay do it yourself |
|
|
kiddy1278Join Date: 2009-01-24 Post Count: 119 |
Some ROBLOX update must of broken your theory but I'll try it anyway. |
|
WhiteRainJoin Date: 2010-04-24 Post Count: 2723 |
Why necrobump... |
|