What do you want to achieve?
I need to move a platform using AlignPosition.
What is the issue?
NetworkOwnerShip is blocking me from accomplishing my goal.
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)
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.
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.