UI Bounce Effect

Hi everyone,

Recently, I’ve been trying to add a replay feature to my new game. And for the most part I have it working, the only problem is the linear velocity is just not smooth at all.

(Here’s a video of it)
( fair warning, the video doesn’t really do it justice, so heres the game link: get fired at 6am - Roblox)

(Here’s the code)

local trigger = game.Workspace.endingtesting
local debounce = false
if not debounce then
debounce = true
print(“no debounce”)
script.Parent.Parent.Visible = true
script.Parent.Parent:TweenPosition(UDim2.new(-0, 0,-0.113, 0), “InOut”, “Bounce”, 0.5, true)
script.Parent.Parent.yougotending.Visible = true
script.Parent.Parent.Clickretry.Visible = true
script.Parent.Visible = true

Looks fine to me, I think not much change is needed.

I don’t exactly understand your issue here, but there’s loads of alternatives for bounce effects. Spring-based motions, custom Tween modules, all sorts of those things.
If you mean it’s too quick, you just have to change the time to tween, that’s all.
Also, PLEASE use task.wait() instead of wait(). It guarantees that your code will run after the duration you specified.
ALSO also, use ``` to make code blocks. It makes it easier to read your code.

1 Like

Could you please link a post to an alternative bounce effect?

Again, there’s loads, and I don’t know which is the best for your situation. This is a spring-based motion library I just found on Google, for example.

1 Like