I'm new at tweening, and apparently I got a WOO6 warning at line 14,1 (Statement spans multiple lines; use indentation to silence) that I'm unsure how to fix
local TweenService = game:GetService("TweenService") part = Instance.new("Part") part.Parent = game.Workspace Instance.new("Part") part.Anchored = true part.BrickColor = BrickColor.new("Dark green") part.Position = Vector3.new(0,100,0) part.Size = Vector3.new(0.5,3,0.5) local tweenInfo = TweenInfo.new( 2, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, -1, true, 0 ) local tween = TweenService:Create(part, tweenInfo, {Position = Vector3.new(0,0,0)}) tween:Play()
Simply indent the code. There's also an error with the order. This is just an error with the TweenInfo, so here's a fixed version:
local tweenInfo = TweenInfo.new( 2, Enum.EasingDirection.Out, Enum.EasingStyle.Linear, -1, true, 0 )