Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function dmg()
- local h = hit.Parent:FindFirstChild("Humanoid")
- if h ~= nil then
- h.Health = h.Health - 1
- h.WalkSpeed = 0
- 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.Torso.Touched:connect(infect)
- script.Parent["Left Arm"].Touched:connect(dmg)
- script.Parent["Right Arm"].Touched:connect(dmg)
- while true do
- wait(.1)
- script.Parent["Head"].BrickColor = BrickColor.new("Forest green")
- script.Parent["Left Arm"].BrickColor = BrickColor.new("Forest green")
- script.Parent["Left Leg"].BrickColor = BrickColor.new("Dirt brown")
- script.Parent["Right Arm"].BrickColor = BrickColor.new("Forest green")
- script.Parent["Right Leg"].BrickColor = BrickColor.new("Dirt brown")
- script.Parent["Torso"].BrickColor = BrickColor.new("Dirt brown")
- script.Parent.Humanoid.MaxHealth = 35
- script.Parent.Humanoid.Health = 35
- script.Parent.Humanoid.WalkSpeed = 2
- script.Parent.Animate.walk.WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=956920334"
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement