Okay, so I’m working on some sort of script that moves a table of models up above the sky.
I’m storing the OriginalPosition and SkyPosition inside these crates.
This is my code:
local Crates = workspace.Crates
for _, crate in next, Crates:GetChildren() do
local a = Instance.new("Vector3Value", crate)
a.Name = "OriginalPosition"
a.Value = crate.Center.Position
local b = Instance.new('Vector3Value', crate)
b.Name = "SkyPosition"
b.Value = crate.Center.Position + Vector3.new(0, 250, 0)
for _, cratePart in next, crate:GetChildren() do
local pos = {}
pos.Position = b.Value
local New = TweenService:Create(cratePart, TweenInfo.new(13), pos)
New:Play()
end
end
If anyone knows what is causing this error to happen and how I can fix it that’d be hugely appreciated.