Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- this script was made by chatgpt and its supposed to be working for bedwars but idk
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- humanoid.HealthChanged:Connect(function(newHealth)
- if newHealth <= 0 then
- humanoid.Health = math.huge
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement