#How do I check if there are too many characters in text
1 messages · Page 1 of 1 (latest)
local stripped = string.gsub(Message, " ", "")
if stripped == "" then
return
end
U can just remove all spaces from the message and check if the message is empty
As for checking for spam you can just log the amount of messages a player has sent and remove the first entry after a certain time, repeatedly, and if the amount of messages exceed your limit just don’t send anything
there’s def a better solution than that but just throwing out some ideas
what about if there's too many spaces before text?
no, this'll only run if its only spaces
yeah but like is there anyway to check for text after the space?
This removes all spaces from the text
If the message still contains any content after the removal of the spaces then you have your message..?
?
ik im cooked when i dont understand string library
:>