|
| 08 Aug 2011 02:07 PM |
Okay so I made somethign sot hat if you're in a Group it will change your Clothes to what you put. The problem is the hat touches it first which Disconnects it. Script:
id = "106362"
debounce = false
function onTouch(hit) if (hit.Parent.Humanoid ~= nil) and debounce == false then debounce = true if game.Players:findFirstChild(hit.Parent.Name):IsInGroup(id) == true then hit.Parent.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=42001448" wait(1) hit.Parent.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=30318037" wait(1) end elseif game.Players:findFirstChild(hit.Parent.Name):IsInGroup(id) ~= true then script.Parent.CanCollide = false end end debounce = false
script.Parent.Touched:connect(onTouch)
Ouput:
Running Script "Workspace.Uniform.Script" Humanoid is not a valid member of Hat Script "Workspace.Uniform.Script", Line 6 stack end
Also while you're here ,I have the feeling I added a couple of things that aren't needed. Please remove them if you spot them... |
|
|
| Report Abuse |
|