for some reason when I trigger this function instead of the backpack with the owner value of the player going to the part with the owner value with that player, it just goes to random parts or use a rondom backpack without an owner value can someone please help me?
game.ReplicatedStorage.Values.StoryValues.GetBackpacks:GetPropertyChangedSignal("Value"):Connect(function()
for i,v in pairs(game:WaitForChild("Workspace").HouseMap.Backpacks.BackpackParts:GetChildren()) do
if v.Owner.Value ~= nil then
local owner = v.Owner.Value
print(owner)
local partPos = v.CFrame
for i,v in pairs(game:WaitForChild("Workspace").HouseMap.Backpacks.Backpacks:GetChildren()) do
if v.Owner.Value == owner then
v.CFrame = partPos
end
end
end
end
end)
it just doesnt do anything it doesnt telport the player or anything when I change the value it doesnt even print triggered for some reaseon thats weird