-
What is the issue?
When I click the icon that I have created using TopBarPlus, the UI will tween to the position. I realised that everytime I click the button, it takes around 3-4 seconds (or require multiple click) to tween back to the original position that I have set. How do I resolve this issue?
A response would be highly appreciated. Thank you.
This is my code:
local framegui = game.Players.LocalPlayer.PlayerGui:WaitForChild("FrameGui")
local frame = framegui:WaitForChild("MainFrame")
local framemain = TopBarMod.new()
framemain:bindEvent("selected", function()
frame:TweenPosition(UDim2.new(0.5, 0, 0.5, 0))
end)
framemain:bindEvent("deselected", function()
frame:TweenPosition(UDim2.new(0.5, 0, -0.5, 0))
end)