Client to server replication not working

script:

local VehicleSeat = script.Parent

VehicleSeat.Changed:Connect(function(prop)
	if prop == "Occupant" then
		print("player has changed")
		local humanoid = VehicleSeat.Occupant
		if humanoid then
			local player = game:GetService("Players"):GetPlayerFromCharacter(humanoid.Parent)
			if player then
				VehicleSeat:SetNetworkOwner(player)
				for i,v in pairs(VehicleSeat.Parent:GetDescendants()) do
					if v:IsA("BasePart") then
						v:SetNetworkOwner(player)
					end
				end
			end
		else
			VehicleSeat:SetNetworkOwner(nil)
		end
	end
end)

demo 2021-07-19 19-58-34

1 Like

Maybe set the PrimaryPart of the plane to something importnat and then use SetNetworkOwner() on the PrimaryPart?

still not working thanks anyway tho