RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"script so if a player says swim then run a function"
-- server script local function onChat(player, message) if message:lower() == "swim" then -- your function here print(player.Name .. " said swim!") end end game.Players.PlayerAdded:Connect(function(player) player.Chatted:Connect(function(message) onChat(player, message) end) end)