Can someone help me with this error

So I am trying to make a custom command
Here is the image:

Then I am getting an error:

And also, I removed the “)” in the end in line 5.

replace the ends at the end of your code with

        end
    end)
end)

this should fix it

1 Like

Alright thank you, I am trying to test this.

You forgot to add an end. You have an end for line 1, an end for line 2, but no end for the if statement.

game.Players.PlayerAdded:Connect(function(player)
  player.Chatted:Connect(function(msg)
  if msg==";dinnerbone me" then
char.LowerTorso.Root.C0 = char.LowerTorso.Root.C0 * CFrame.Angles(0, 0, math.pi) * CFrame.new(0, -1, 0)
    end
  end)
end)

so something like this?

2 Likes