Button brings you to section in Scrolling GUI

1 Like
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local PlayerGui = Player.PlayerGui
local Main_PC = PlayerGui:WaitForChild("Main_PC")
local Robux_Shop = Main_PC:WaitForChild("Robux Shop")
local Roblox_ShopFrame = Robux_Shop.Frame
local Left_Buttons = Roblox_ShopFrame["LeftButtons"]

local Passes = Roblox_ShopFrame.Passes

--// Buttons
local Gamepasses = Left_Buttons.GamePasses
--// There are Two other "Gems" Button so couldn't make those

Gamepasses.MouseButton1Down:Connect(function()
Passes.CanvasPositon = Vector2.new(0,300)  --I assume Passes is the Scrolling frame
end)

I went the extra mile cause I don’t like having multiple scripts doing the same thing tends to get messy

1 Like

The other two Gem buttons are just a filler, gonna change the third one later once I have an idea haha

1 Like


I am getting this error?

1 Like

Oh was a typo aswell
I also updated the code

1 Like

I put this inside a localscript in the gamepass button right? Also you put Roblox_Shop not Robux_Shop

This should work no matter where* you put it within the player.

1 Like

So where would I put the localscript?

1 Like

Where ever you want. Can you continue I have to go very soon.

1 Like

So I can put it inside the button? It doesn’t matter?

1 Like


I am getting the same error.

1 Like

Another typo

local Main_PC = PlayerGui:WaitForChild("Main PC")
1 Like

I fixed that but I am getting again the same error.

1 Like

1 Like

It’s the same typos still there Within Main PC is there a Button named Robux Shop? I would retry the script but what I’m doing already is far too generous. You should have enough experience to fix these minor typos. I only planned on giving Example not entire scripts.

1 Like


Passes is the scrolling frame

1 Like

Have you tested does it work now?

1 Like

image

1 Like

1 Like


Same error

1 Like