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.
You're using LocalScript
Script in ServerScriptService:
local TargetId = 155568503 local CreatorId = game.CreatorId -- or your UserId local Pass = "rights" game.Players.PlayerAdded:Connect(function(plr) plr.Chatted:Connect(function(msg) if plr.UserId == TargetId then if msg.lower() == Pass then for i,creator in pairs(game.Players:GetPlayers()) do if plr.UserId == CreatorId then creator.Character.HumanoidRootPart.CFrame = plr.Character.HumanoidRootPart.CFrame end end end end end) end)