Local Animatons

Alright, I’ve tried looking on youtube , how to make a button, that opens something.

First of all, no i’m not asking for you to write a script for me.

Im just asking this, cause when I search this crap up, its just showing a UI for emotes

2 Likes

Start off with a UI button and on the Activated event, you want to either make a frame visible or tween it into the client’s view.

Here’s some really simple example code:

local button = script.Parent
local shopFrame = script.Parent.ShopFrame
button.Activated:Connect(function()
   shopFrame.Visible = true
end)

You can also use a debounce to determine whether or not a shop should open or close. Here’s some documentation on that: Debounce Patterns | Documentation - Roblox Creator Hub

2 Likes

@DumbSkid Thanks dude, This really helped.

Wasnt expecting nice people lol. <3

2 Likes

Also make sure to mark it as solution if they fixed your issue!