|
| 13 Oct 2013 12:48 PM |
sc/local player = "cyberelectro"
function Infect(player) shared.Dress(player, "7") for _, v in next, player:GetChildren() do if obj.ClassName == "Part" then v.Touched:connect(function(obj) if not obj.Parent:FindFirstChild("Humanoid") then return end Infect(obj.Parent) end) end end end
Infect(Workspace:FindFirstChild(player)
I'm sure that there is an error with the last line, it is confusing me, though. |
|
|
| Report Abuse |
|
|
| 13 Oct 2013 12:59 PM |
Use:
Infect(Workspace:FindFirstChild(player.Name))
When you search for the player, it's looking for the player in game.Players which will never be in the workspace. |
|
|
| Report Abuse |
|
|
| 13 Oct 2013 01:01 PM |
| Thanks, fixed the problem! |
|
|
| Report Abuse |
|