RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a script with a fancy gui that gives me the option to change the amount of health I have"
-- local script local gui = script.Parent.FancyGUI local healthSlider = gui.HealthSlider local healthLabel = gui.HealthLabel local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local function updateHealth() local newHealth = healthSlider.Value healthLabel.Text = "Health: " .. tostring(newHealth) character.Humanoid.Health = newHealth end healthSlider.Changed:Connect(updateHealth)