-
What do you want to achieve? A tween moving in the player screen’s for about a second, then moving outside of it again when you click a button.
-
What is the issue? The tween is not playing, and I’m not receiving any error either.
-
What solutions have you tried so far? Tried looking at the DevForum & YouTube, no solutions.
Here’s the script:
script.Parent.MouseButton1Click:Connect(function()
game.StarterGui.ScreenGui.CollectedNotification:TweenPosition(
UDim2.new(0.25, 0,0.02, 0),
Enum.EasingDirection.Out,
Enum.EasingStyle.Linear,
1,
false,
nil
)
task.wait(1)
game.StarterGui.ScreenGui.CollectedNotification:TweenPosition(
UDim2.new(0.25, 0,-0.2, 0),
Enum.EasingDirection.Out,
Enum.EasingStyle.Linear,
1,
false,
nil
)
end)
Here’s what is actually happening: