I am trying to make a ui tween animaition play using a keybind but what i came accross is that if you press the button multiple times, it messes up the tween.
here is the code
uis.InputBegan:Connect(function(key)
if key.KeyCode == Enum.KeyCode.RightBracket then
if open == false then
open = true
adminConsole.Visible = true
adminConsole:TweenPosition(
UDim2.new(0.5, -50, 0.074, -50),
Enum.EasingDirection.Out,
Enum.EasingStyle.Quart,
1,
false
)
end wait(0.1)
end script.Parent.ConsoleUI.ConsoleClientScript.Disabled = false
end)

3 comments
You could try using the .Completed() event property of Tween https://developer.roblox.com/en-us/api-reference/event/TweenBase/Completed
You can't, it's only used on TweenService.
I tried doing so, its not working, could u give me an example