Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

I got a TweenService error that I don't know how fix?

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()

1 comment

0

it seems like its just an indent problem, if you indent each argument, itll be fine

1 answer

✓ Accepted answer

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
)

This discussion is preserved as it was. New answers, comments, and votes are closed.