Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why isn't this working properly?? (ANSWERED)

I've notice recent created games on roblox are now having a 3D style button where when you click it, it goes down like an actual button. I've tried to recreate button by using TweenPosition but when you click it, it goes down really slowly.

This is the script I used


script.Parent:TweenPosition(UDim2.new(I PUT THE LOCATION TO GO DOWN))
wait(0.5)
script.Parent:TweenPosition(UDim2.new(I PUT THE LOCATION TO GO BACK UP))

If anyone knows why it goes down slowly please tell me.

P.S I created a quick demo script cause I deleted the original script, So thats why I didn't put the position. And also I used 2 TextButtons to make the button, One for the actual button and the second to make the shade so it looks 3D.

1 answer

✓ Accepted answer

TweenPosition and TweenSize both have parameters where you can change the speed. If you don't change it it will use the default, 1 second. Change the number bellow to the speed you want. script.Parent:TweenPosition(UDim2.new(I PUT THE LOCATION),"Out", "Quad", 0.1) You might wanna read up on the wiki as it has a lot of helpful info :)

4 comments

0

Thanks, I'll check if it works.

0

Can you vote on my post if I vote u??

0

Upvotes are appreciated :)

0

So sorry I didn't realize I can't upvote you, downvote me if u like... D:

This discussion is preserved as it was. New answers, comments, and votes are closed.