Roblox lua on player chatted

roblox lua on player chatted game.Players.PlayerAdded:Connect(function(player) player.Chatted:Connect(function(msg) — do stuff with msg and player end) end)
roblox lua on player chatted game.Players.PlayerAdded:Connect(function(player) player.Chatted:Connect(function(msg) — do stuff with msg and player end) end)
lua data types nil, boolean, number, string, function, userdata, thread, and table
lua in pairs –Table is the table to iterate through –Index is the current index –Value is the value at the current index for index, value in pairs(table) do end
lua round number local number = 15.57 local number2 = 15.23 print(math.floor(number + 0.5)) –16 print(math.floor(number2 + 0.5)) –15
roblox hotkey script local UserInputService = game:GetService(“UserInputService”) local spaceHeld = UserInputService:IsKeyDown(Enum.KeyCode.Space)