I need assistance with trying to figure out the best way to have a player jump out of a seat and be repositioned without moving the seat too. I believe it has something to do with the players’ internet connection, but do not know of a correct fix. Does Network Ownership fix my problem by chance? If so, how would I use it for this situation?
This is a GIF of how it should be:
Keep note, everything works properly in studio, but not when I am with another player in-game because the chair teleports with them.
Alright, here is some code (closer to the bottom is where the player jumps out of the seat):
function Main:Teleport(Players, Remotes, Queue, ServerInfo)
local Plr = Players:FindFirstChild(ServerInfo.PlayerOnStage.Value)
for i,v in pairs(Players:GetPlayers()) do
if v ~= Plr then
Remotes:FindFirstChild("ChangeButtonGUI"):FireClient(v, "VISIBLE")
elseif v == Plr then
Remotes:FindFirstChild("ChangeButtonGUI"):FireClient(v, "INVISIBLE")
end
end
local Char = game.Workspace:FindFirstChild(ServerInfo.PlayerOnStage.Value)
Char:FindFirstChild("Humanoid").Sit = false
Char:FindFirstChild("Humanoid").JumpPower = 50
Char:FindFirstChild("Humanoid").Jump = true
wait(0.5)
Char:FindFirstChild("HumanoidRootPart").CFrame = game.Workspace.StageSpawn.CFrame + Vector3.new(0,2,0)
Char:FindFirstChild("Humanoid").JumpPower = 0
end