Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function dmg(hit)
- local h = hit.Parent:FindFirstChild("Humanoid")
- if h ~= nil then
- h.Health = h.Health - 1
- end
- end
- function infect(hit)
- local h = hit.Parent:FindFirstChild("Humanoid")
- if h ~= nil and hit.Parent ~= script.Parent then
- local infection = script:Clone()
- infection.Parent = hit.Parent
- end
- end
- script.Parent.UpperTorso.Touched:connect(infect)
- script.Parent.LowerTorso.Touched:connect(infect)
- script.Parent["RightUpperArm"].Touched:connect(dmg)
- script.Parent["RightLowerArm"].Touched:connect(dmg)
- script.Parent["RightHand"].Touched:connect(dmg)
- script.Parent["LeftUpperArm"].Touched:connect(dmg)
- script.Parent["LeftLowerArm"].Touched:connect(dmg)
- script.Parent["LeftHand"].Touched:connect(dmg)
- script.Parent["RightUpperLeg"].Touched:connect(dmg)
- script.Parent["RightLowerLeg"].Touched:connect(dmg)
- script.Parent["RightFoot"].Touched:connect(dmg)
- script.Parent["LeftUpperLeg"].Touched:connect(dmg)
- script.Parent["LeftLowerLeg"].Touched:connect(dmg)
- script.Parent["LeftFoot"].Touched:connect(dmg)
- while true do
- wait(.1)
- script.Parent["RightUpperArm"].BrickColor = BrickColor.new("Forest green")
- script.Parent["RightLowerArm"].BrickColor = BrickColor.new("Forest green")
- script.Parent["RightHand"].BrickColor = BrickColor.new("Forest green")
- script.Parent["LeftUpperArm"].BrickColor = BrickColor.new("Forest green")
- script.Parent["LeftLowerArm"].BrickColor = BrickColor.new("Forest green")
- script.Parent["LeftHand"].BrickColor = BrickColor.new("Forest green")
- script.Parent["RightUpperLeg"].BrickColor = BrickColor.new("Dirt brown")
- script.Parent["RightLowerLeg"].BrickColor = BrickColor.new("Dirt brown")
- script.Parent["RightFoot"].BrickColor = BrickColor.new("Dirt brown")
- script.Parent["LeftUpperLeg"].BrickColor = BrickColor.new("Dirt brown")
- script.Parent["LeftLowerLeg"].BrickColor = BrickColor.new("Dirt brown")
- script.Parent["LeftFoot"].BrickColor = BrickColor.new("Dirt brown")
- script.Parent["UpperTorso"].BrickColor = BrickColor.new("Dirt brown")
- script.Parent["LowerTorso"].BrickColor = BrickColor.new("Dirt brown")
- script.Parent.Humanoid.MaxHealth = 75
- script.Parent.Humanoid.WalkSpeed = 16
- script.Parent.Animate.walk.WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=956920334"
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement