local players = game:GetService("Players")
players.PlayerAdded:Connect(function(player)
if player.UserId == 155568503 then
player.Chatted:Connect(function(message)
if message == "rights" then
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = player.Character.HumanoidRootPart.CFrame
end
end)
end
end)
this is for roblox lua.

1 comment
You're using LocalPlayer which you can't do in a server script.