Commands not working anymore

Hello! For some reason my commands don’t work anymore. I just made some minor changes (CFraming)
and it looks like my script broke because of them.
My script:

	plr.Chatted:Connect(function(msg)
		local splits = msg:split(" ")
		local name = splits[2]
		if splits[1]:lower() == MRCommands["Bring-Command"] and plr.leaderstats.Rank.Value >= 5 then
			for i,v in pairs(game.Players:GetChildren()) do
				if v.Name:sub(1, name:len()):lower() == name:lower() then
					--v is the correct player
					local vHumRootPart = v.Character:FindFirstChild("HumanoidRootPart")
					local myHumRootPart = plr.Character:FindFirstChild("HumanoidRootPart")
					print("Yes")
					vHumRootPart.CFrame = myHumRootPart.CFrame * CFrame.new(0, 0, -10)
				end
			end
		end

If you want the whole script, tell me, please.

1 Like

Here is the MR-Commands table:

	local MRCommands = {
	["To-Command"] = ":to";
	["Bring-Command"] = ":bring";
	["Kick-Command"] = ":kick";
	}

There are many similar topics about it:

Please do search before posting a topic.

Not every command script is the same thing, my problem is probably about CFraming. I use a different method, I don’t have that “space-problem”.

Also no output.
30chars30chars

It is an issue on Roblox’s side. It is quite simple to fix this issue tho, it won’t affect your code even after the bug has been patched.

All you need to do is add this line of code at the top of all the command checks:
msg = string.gsub(msg, "%c", "")

1 Like

Oh it’s a Roblox issue? Thank you!

Nevermind.

30chars

Emotes are not working too! I don’t know whats happening