Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Thanks for using this script
- This script is made by Joriangames/Problox Studio Scripts
- Want to know how to use this and script explanation?
- Check the video here: https://youtu.be/49PD-ER8Vtc
- ]]
- local minF = 15
- local maxF = 45
- game.Players.PlayerAdded:Connect(function(plr)
- plr.CharacterAdded:Connect(function(char)
- local hum = char:WaitForChild("Humanoid")
- local humR = char:WaitForChild("HumanoidRootPart")
- local humRHeight
- wait(3)
- hum.FreeFalling:Connect(function(Standing)
- if Standing then
- humRHeight = humR.Position.Y
- elseif not Standing then
- local fallHeight = humRHeight - humR.Position.Y
- if fallHeight >= maxF then
- char.Head:Destroy()
- elseif fallHeight >= minF then
- hum.Health = hum.Health -20
- end
- end
- end)
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement