Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onDamage(Part)
- f = script.Parent.Owner
- if Part.Parent:FindFirstChild("Humanoid") ~= nil and Part.Parent.Name ~= f.Value and Part.Parent:findFirstChild("DS") == nil then
- script.Disabled = true
- x = script.Parent
- x.Anchored = true
- x.CanCollide = false
- z = x["Mesh"]
- z.MeshType = "Sphere"
- for i = 1,10 do
- z.Scale = z.Scale + Vector3.new(1,1,1)
- x.Transparency = x.Transparency - .05
- Part.Parent.Humanoid.Health = Part.Parent.Humanoid.Health -.005
- wait(0.05)
- end
- end
- if Part.Parent:findFirstChild("DS") ~= nil and Part.Parent.Name ~= f.Value and Part.Parent:FindFirstChild("Humanoid") ~= nil then
- Part.Parent.Humanoid.Health = Part.Parent.Humanoid.Health + 15
- x = math.random(1,5)
- if x == 1 then
- game:GetService("Chat"):Chat(Part.Parent.Head, "Now i got some ".. script.Parent.Name .." In My Belly" )
- end
- script.Disabled = true
- end
- end
- script.Parent.Touched:connect(onDamage)
- door = script.Parent
- function onDamage(Part)
- f = script.Parent.Owner
- if Part.Parent:FindFirstChild("Humanoid") ~= nil and Part.Parent.Name ~= f.Value then
- script.Disabled = true
- door = script.Parent
- Part.Parent.Torso.Velocity = door.CFrame.lookVector * 50
- for i = 1,10 do
- Part.Parent.Humanoid.Health = Part.Parent.Humanoid.Health - 2
- script.Parent.Mesh.Scale = script.Parent.Mesh.Scale + Vector3.new(.5,.5,.5)
- Part.Parent.Humanoid.Sit = true
- wait(0.05)
- end
- end
- wait(0.025)
- script.Parent:remove()
- end
- script.Parent.Touched:connect(onDamage)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement