SetNetworkOwner(nil) not working

  1. What do you want to achieve?
    I need to move a platform using AlignPosition.

  2. What is the issue?
    NetworkOwnerShip is blocking me from accomplishing my goal.

  3. What solutions have you tried so far?
    I have tried setting the networkOwnerShip of each part in the model to nil, but somehow the player is still getting assigned as the networkOwner.

The script works fine as long as I only test by running the server.

for i, v in script.Parent:GetDescendants() do
	if v:IsA("BasePart") and not v.Anchored then
		v:SetNetworkOwner(nil)
	end
end

local ts = game:GetService("TweenService")

local ti = TweenInfo.new(10, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, false, 2)

ts:Create(script.Parent.Ghost, ti, {CFrame = script.Parent.End.CFrame}):Play()



(Had to downgrade the video quality since upload limits)

1 Like

Could you share an affected file? I would like to look into this further.

2 Likes

Here’s the file that contains the moving raft.

NetworkIssue.rbxl (58.3 KB)

1 Like

Okay so after a lot of research I found some tutorial that Roblox made which shows you how to make an elevator using PrismaticConstraints which I pretty much copied and modified a bit and now my raft works perfectly.
TLDR: Use PrismaticConstraints.

1 Like

So this is really weird. When I am on the server it works fine, but not on the client. I have been trying to reproduce this is many different ways and am still not sure what’s wrong. I will take a further look into it later, still not exactly sure why it isn’t working.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.