Hi,
I have this issue when the player parents out the other player’s character to nil then parenting
them to workspace in localscript, player1’s position isn’t changed in player2’s perspective
until player1 moves. How do I fix this?
Player2’s Perspective
Player1’s Perspective
Code
local runservice = game:GetService("RunService")
local localplr = game.Players.LocalPlayer
runservice.RenderStepped:Connect(function()
for _,plr in pairs(game.Players:GetPlayers()) do
local currentplrmap = plr.CurrentlyIn
if plr ~= localplr then
if localplr.CurrentlyIn.Value == "Main_Lobby" then
if currentplrmap.Value ~= "Main_Lobby" then
plr.Character.Parent = nil
else
plr.Character.Parent = workspace
end
else
if currentplrmap.Value == localplr.CurrentlyIn.Value then
plr.Character.Parent = workspace
else
plr.Character.Parent = nil
end
end
end
end
end)