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
Emskipo
(Emskipo)
March 15, 2022, 10:29pm
2
What is script.parent and where is it?
Bikereh
(green_lady)
March 15, 2022, 10:30pm
3
in tweeninfo you put the number -1 so change it to 0
Valkyrop
(aHuman)
March 15, 2022, 10:32pm
5
What is the script’s parent? And where is it located?
Bikereh
(green_lady)
March 15, 2022, 10:32pm
6
dang passive agressive idk what you mean
Emskipo
(Emskipo)
March 15, 2022, 10:33pm
7
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.
Bikereh
(green_lady)
March 15, 2022, 10:35pm
9
oh ok i didnt see that
aaaaaaaaaaaaaaaaaaaaaaaaa
Bikereh
(green_lady)
March 15, 2022, 10:36pm
10
can i see more of the script?
aaaaaaaaaaaaaa
Valkyrop
(aHuman)
March 15, 2022, 10:37pm
11
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.
robloxapp-20220315-2336393.wmv (1.2 MB)
Is it supposed to work like this?
Bikereh
(green_lady)
March 15, 2022, 10:39pm
16
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.
Valkyrop
(aHuman)
March 15, 2022, 10:39pm
18
Send us a video or some screenshots of it
Bikereh
(green_lady)
March 15, 2022, 10:40pm
19
mine looks literally exactly like urs and it works
1 Like
Emskipo
(Emskipo)
March 15, 2022, 10:41pm
20
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.