Good day everyone. I've had this problem for quite a long time now and I haven't figured out how to solve this. Basically, when I tween a part to another position, the part gets tweened to position(0,0,0) instead of the assigned position. Here's the script [Server-Sided-Script]
wait(3)
repeat wait() until #(script.Parent.Parent.Positions["001001"]:GetChildren()) == 7
local ts = game:GetService("TweenService")
local car = script.Parent
local cfs = script.Parent.Parent.Positions["001001"]
local info = {}
for i, v in pairs(cfs:GetChildren()) do
wait()
table.insert(info,v.Position)
end
print(info)
local times = 0
if times < #(script.Parent.Parent.Positions["001001"]:GetChildren()) + 1 then
times = times + 1
ts:Create(car,TweenInfo.new(3),{
Position = Vector3.new(info[times])
}):Play()
wait(3)
else
return
end
The parts that the part is getting tweened to has its CanCollide property set to false. I'm not sure whether this will affect it. The parts are not at Vector3.new(0,0,0), so I don't see why the position gets tweened to 0,0,0.
Any help is greatly appreciated!
