Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mdl = Instance.new("Model")
- mdl.Name = "Infinite Health Door"
- mdl.Parent = workspace
- local snd = Instance.new("Sound")
- snd.SoundId = "rbxassetid://305633397"
- local ihd = Instance.new("Part")
- snd.Parent = ihd
- ihd.Parent = mdl
- ihd.Material = "CorrodedMetal"
- ihd.Anchored = true
- ihd.Size = Vector3.new(7,9,2)
- ihd.Position = Vector3.new(29,4.5,-45)
- ihd.Rotation = Vector3.new(0,15,0)
- local part1 = Instance.new("Part")
- part1.Material = "DiamondPlate"
- part1.Parent = mdl
- part1.Size = Vector3.new(1,9,2)
- part1.Position = Vector3.new(24,4.5,-45)
- part1.Anchored = true
- local part2 = part1:Clone()
- part2.Parent = mdl
- part2.Position = Vector3.new(33,4.5,-46)
- local hitbox = Instance.new("Part")
- hitbox.Parent = mdl
- hitbox.Anchored = true
- hitbox.CanCollide = false
- hitbox.Size = Vector3.new(2,9,2)
- hitbox.Position = Vector3.new(25,4.5,-44)
- hitbox.Transparency = 1
- function touch(part)
- if part.Parent.Humanoid then
- part.Parent.Humanoid:TakeDamage(part.Parent.Humanoid.MaxHealth * 0.05)
- wait()
- part.Parent.Humanoid.MaxHealth = part.Parent.Humanoid.MaxHealth + 1
- part.Parent.Humanoid.Health = part.Parent.Humanoid.MaxHealth
- end
- end
- hitbox.Touched:Connect(touch)
- function amog()
- snd:Destroy()
- end
- snd.Ended:Connect(amog)
- snd:Play()
- while wait() do
- ihd.Rotation = Vector3.new(0,14,0)
- hitbox.Size = Vector3.new(0,0,0)
- wait()
- ihd.Rotation = Vector3.new(0,15,0)
- hitbox.Size = Vector3.new(2,9,2)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement