My script giving me "statement spans multiple times" error whenever I use TweenPosition to tween position of a gui

Basically, I’m trying to tween a image label position, but for some reason it’s not working at all, even tho I type the code correctly it’s giving me “statement spans multiple times” error

Don’t use TweenPosition and TweenSize - they are deprecated.
Use TweenService instead

local TweenService = game:GetService("TweenService")

TweenService:Create(script.Parent.Parent:WaitForChild("ControlGui").ControlsFrame,, Enum.EasingStyle.Circular, Enum.EasingDirection.Out, 2, true), {
	Position = UDim2.fromScale(.304, .15)

And the problem in your situation is incorrect line placement. (In particular, this is not an error, just warnings).

1 Like

Thank you I actually realized I placed the lines incorrectly before seeing your reply, thanks for the TweenService suggestion too! I only use TweenService to tween buttons, texts frames transparency

1 Like