I was working on a rainbow part script, and then I though it would be cool if I could get everything in Workspace, and make it rainbow…
Here is what I have so far.
for _,part in pairs(workspace:GetChildren()) do --NEED HELP HERE
if part:IsA("BasePart") then --NEED HELP HERE
end
while true do --no need to mess with past here...
wait(1)
wait(0.1)
game:GetService('TweenService'):Create(
part,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut),
{Color = Color3.fromRGB(255, 0, 0)}):Play()
wait(1.1)
game:GetService('TweenService'):Create(
part,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut),
{Color = Color3.fromRGB(255, 155, 0)}):Play()
wait(1.1)
game:GetService('TweenService'):Create(
part,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut),
{Color = Color3.fromRGB(255, 255, 0)}):Play()
wait(1.1)
game:GetService('TweenService'):Create(
part,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut),
{Color = Color3.fromRGB(0, 255, 0)}):Play()
wait(1.1)
game:GetService('TweenService'):Create(
part,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut),
{Color = Color3.fromRGB(0, 255, 255)}):Play()
wait(1.1)
game:GetService('TweenService'):Create(
part,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut),
{Color = Color3.fromRGB(0, 155, 255)}):Play()
wait(1.1)
game:GetService('TweenService'):Create(
part,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut),
{Color = Color3.fromRGB(255, 0, 255)}):Play()
wait(1.1)
game:GetService('TweenService'):Create(
part,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut),
{Color = Color3.fromRGB(255, 0, 155)}):Play()
wait(1.1)
end
end
end
Thanks!