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 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