for i, part in pairs(script.Parent.RiseUp:GetDescendants()) do
if part:IsA("BasePart") or part:IsA("MeshPart") then
TS:Create(part, RisingInfo, {Position = part.Position + Vector3.new(0, 800, 0)}):Play()
end
end
Explorer:
I literally have no idea why, but this code won’t work. I’ve been staring at it for more than half an hour now and can’t find what’s wrong with it. TweenService is gotten correctly as the variable TS, All the children of RiseUp are MeshParts, and there are no errors in the Output. The code just won’t work. How do I fix this??
So I made the Code in studio and it worked fine, you can either check your Rising info if it’s incorrect or not but this is what I ran
for i, part in pairs(game.Workspace.Folder:GetDescendants()) do
if part:IsA("BasePart") or part:IsA("MeshPart") then
local tween = TS:Create(part, TweenInfo.new(55, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Position = part.Position + Vector3.new(0, 800, 0)})
tween:Play()
end
end