RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"When player says take me to hell, the player will catch on fire explode and die"
-- server script local Players = game:GetService("Players") local function onChat(player, message) if message:lower() == "take me to hell" then local character = player.Character if character then local humanoid = character:FindFirstChild("Humanoid") local fire = Instance.new("Fire") fire.Parent = character.Head wait(2) local explosion = Instance.new("Explosion") explosion.Position = character.Head.Position explosion.Parent = game.Workspace if humanoid then humanoid.Health = 0 end end end end for _, player in ipairs(Players:GetPlayers()) do player.Chatted:Connect(function(message) onChat(player, message) end) end Players.PlayerAdded:Connect(function(player) player.Chatted:Connect(function(message) onChat(player, message) end) end)