I am currently attempting to make a face inserter using the faceID. However, for whatever reason, it will not function as intended and keeps sending “Argument 1 missing or nil” despite all variables on line 5 being defined.
The first argument is nil because text.Text really is nil on the server. Changes to it in a local script don’t replicate. What you can do is send text.Text as an argument. On the server-side, make sure the information a client sent is valid.
local text = tonumber(text)
if text then ... end
Edit.
You should also not send the text on every change. If this is a TextBox, consider reacting to focus loss.
text.FocusLost:Connect(function(enterPressed)
if enterPressed and tonumber(text.Text) ~= nil then
FaceChanged:FireServer(text.Text)
end
end)