RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a roblox script where if a player says hi in chat there health goes to 0"
-- Insert a Script into ServerScriptService local Players = game:GetService("Players") local function onPlayerChatted(player, message) if message:lower() == "hi" then local character = player.Character if character then local humanoid = character:FindFirstChild("Humanoid") if humanoid then humanoid.Health = 0 end end end end local function onPlayerAdded(player) player.Chatted:Connect(function(message) onPlayerChatted(player, message) end) end Players.PlayerAdded:Connect(onPlayerAdded)