How do i trigger this Pets shop with a button

i want the shop that in the video can be trigger by a button

1 Like

Have you tried it yourself? People take time to help you, not do things for you.

1 Like

Make a text button in the petshop gui and put a local script in it and put:
local shop = script.Parent.Frame
local mainshop = workspace.MainShop
local camera = workspace.CurrentCamera
script.Parent.MouseButton1Click:connect(function()
shop.Frame:TweenPosition(UDim2.new(0,0,0,0),“Out”,“Quint”,1,true)
camera.CameraType = Enum.CameraType.Scriptable
camera.CameraSubject = mainshop.Cameras.Cam1
end)

2 Likes

its said MainShop is not a valid member of workspace

1 Like

Do you make a model, UI, etc…? If not, you have to make it, and name it MainShop.

You have to learn about events, functions, and how to use the ReplicatedStorage, if all you know is defining variables, you won’t understand how to do this. Even if someone gives you the entire script, you still won’t really understand how it works, and how to make anything happen in the shop.

1 Like

its really hard to learn i, i tried to learn from alvin blox after a week i dont know anything

I learned from the developer hub, read the functions and events articles, hopefully that helps

1 Like

model of what? what UI? ---------------------------