RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"chat cant be accessed on client"
-- server script local player = game.Players.LocalPlayer local chat = game:GetService("Chat") local gui = script.Parent.Health local gui2 = script.Parent.RealHealth local sgui = script.Parent function onChat(player, message) if string.lower(message) == "chealth" then gui.Text = "Max Health: " .. player.Character.Humanoid.MaxHealth gui2.Text = "Current Health: " .. player.Character.Humanoid.Health sgui.Enabled = true task.wait(5) sgui.Enabled = false end end game.Players.PlayerAdded:Connect(function(player) player.Chatted:Connect(function(message) onChat(player, message) end) end)