I’m trying to unanchor a part before I add an align position so that it works. I’ve come across this issue though, I believe>> " If this constraint attaches one part ( A ) to another part ( B ) that is anchored or connected to an anchored part ( Z ), part A will not be locally simulated when interacting with a player."
It works if I unanchor the main part before I play the game, so why doesn’t it work if I unanchor it afterward? The code is in a function that gets called once the player gets close enough. Everything welded to the gravitator is unanchored. I’m not looking for an entirely new method unless it’s short. Thank you.
if character then
if character:FindFirstChild("HumanoidRootPart")then
local HRP = character.HumanoidRootPart
for i, disk in pairs(self.Model:GetChildren())do
disk.gravitator.Anchored = false
local Attach1 = Instance.new("Attachment")
Attach1.Parent = HRP
local Attach0 = Instance.new("Attachment")
Attach0.Parent = disk.PrimaryPart
local AlignPos = Instance.new("AlignPosition")
AlignPos.Attachment0 = Attach0
AlignPos.Attachment1 = Attach1
AlignPos.MaxForce = 100000000
AlignPos.Parent = disk.gravitator
end
end
end
Edit: Server side solutions are not an option, Individual players should see different things.