TweenService Malfunctioning?

My issue is that my simple tween will not execute itself when I play it. My code is correct, does not have any invalid arguments, and doesn’t print any error inside the console output, I don’t see the issue here. This is executed inside a frame, and no longer is copied to PlayerGui.
LocalScript:

local ts = game:GetService("TweenService")

local tween = ts:Create(script.Parent, TweenInfo.new(3, Enum.EasingStyle.Quad, Enum.EasingDirection.In, -1, true), {Position = UDim2.new(0, 0, .17, 0), Size = UDim2.new(1, 0, .83, 0)})
tween:Play()

https://i.gyazo.com/7cd492fa45aef678b3f45389745c386d.mp4
Note: I don’t intend on using things like TweenPosition. The black gradient is the object that’s being tweened.

2 Likes

What is script.parent and where is it?

in tweeninfo you put the number -1 so change it to 0

What is the script’s parent? And where is it located?

dang passive agressive idk what you mean

He means that the value -1 is used for infinite repeats. It says as much in the API docs. TweenService:Create

Inside the player’s PlayerGui.

oh ok i didnt see that

aaaaaaaaaaaaaaaaaaaaaaaaa

can i see more of the script?

aaaaaaaaaaaaaa


This is probably the error you have

This right here is the whole thing.

Please pay attention, I said there are no errors coming out of the console.

image
robloxapp-20220315-2336393.wmv (1.2 MB)

Is it supposed to work like this?

i dont know why it doesnt work. i pasted the whole thing and tested it and it works fine

Please don’t put the video as a file format, and the ScreenGui is not located beneath anything.

Send us a video or some screenshots of it

mine looks literally exactly like urs and it works

1 Like

Are you manually copying this to playerGui?

https://gyazo.com/7cd492fa45aef678b3f45389745c386d
You would see the black gradient moving up and down, well it’s not anyway.

Using a server script, so yes.