Client Script
local Player = game.Players.LocalPlayer
local Message = script.Parent.Text
game.ReplicatedStorage.SendServer:FireServer(Player, Message)
Server Script
game.ReplicatedStorage.SendServer.OnServerEvent:connect(function(player,msg)
if not LengthCheck(msg) then
function LengthCheck(Message)
if string.len(Message) > 100 then
return false
else
return true
end
end
Error Output-
bad argument #1 to 'len' (string expected, got Object)

2 comments
OMG I Knew I was missing something in front of my face! I'm and Idiot.
If this answer helped you and solved your issue, please accept it :)