Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local db = false
- script.Parent.Touched:connect(function(hit)
- if hit.Parent:FindFirstChild("Humanoid") then
- if db == false then
- if hit.Parent.Humanoid.Health < 100 then
- hit.Parent.Humanoid.Health = hit.Parent.Humanoid.MaxHealth
- db = true
- script.Parent.BrickColor = BrickColor.new("Bright red")
- wait(5)
- db = false
- script.Parent.BrickColor = BrickColor.new("Bright green")
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement