-
What do you want to achieve? Keep it simple and clear!
A short username detect like /sync paulo = /sync paulocezarnbr -
What is the issue? Include screenshots / videos if possible!
attempt to index nil with lower
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
Edit the script.Yes.
script(Server):
local syncstring = "/sync ([%w_]+)"
local leavesync = "/unsync"
local function shortname(user)
for _, plr in pairs(game:GetService("Players"):GetPlayers()) do
local user = user:match(syncstring)
if user:lower() == (plr.Name:lower()):sub(1, #user) then
return plr.Name
end
end
end
