RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a script that when you jump in the game you loose half health and show me were to put it"
-- local script (place in StarterPlayerScripts) local Players = game:GetService("Players") local player = Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") local function onJump() if humanoid.Health > 0 then humanoid.Health = humanoid.Health * 0.5 end end humanoid.Jumping:Connect(onJump)