Hello Developers.
I’m creating a Cybergrind map for a map submission and I have an issue, basically I am trying to make some parts move up but only two of the parts move up and afterwards the parts simply just decided to give up moving up and down.
while task.wait(5) do
for _, Plate in pairs(Plates:GetChildren()) do
if Plate:IsA("BasePart") then
local TweenGoal = {
Size = Vector3.new(50, 30, 50)
}
local Tween = game:GetService("TweenService"):Create(Plate,Tweeninfo,TweenGoal):Play()
task.wait()
end
end
task.wait(3)
local RandomPlatformTransformation = math.random(1,5)
if RandomPlatformTransformation == 1 then
for _, Plate in pairs(Plates:GetChildren()) do
if Plate:IsA("BasePart") and Plate.Name == ("Plate1" or "Plate14" or "Plate13" or "Plate16") then
local TweenGoal = {
Size = Vector3.new(50, 60, 50)
}
local Tween = game:GetService("TweenService"):Create(Plate,Tweeninfo,TweenGoal):Play()
task.wait()
end
end
for _, Plate in pairs(Plates:GetChildren()) do
if Plate:IsA("BasePart") and Plate.Name == ("Plate6" or "Plate7" or "Plate10" or "Plate11") then
local TweenGoal = {
Size = Vector3.new(50, 50, 50)
}
local Tween = game:GetService("TweenService"):Create(Plate,Tweeninfo,TweenGoal):Play()
task.wait()
end
end
end
end