Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by 4 years ago

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()
0
it seems like its just an indent problem, if you indent each argument, itll be fine zadobyte 692 — 4y

1 answer

Log in to vote
0
Answered by
SirGamezy 186
4 years ago

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

Answer this question