How can I reparent this script

Hey! I changed some things around, and how can I reparent this?
That’s how it is now, how can I reparent it to the new ScreenGui?

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.Bottom["Robux Shop"]
local Roblox_ShopFrame = Robux_Shop.Frame
local Left_Buttons = Roblox_ShopFrame["Left Buttons"]

local Passes = Roblox_ShopFrame.Passes

--// Buttons
local Boosts = Left_Buttons.Boosts
--// Canvas Position

Boosts.MouseButton1Down:Connect(function()
	Passes.CanvasPosition = Vector2.new(0, 767.449)
end)

(This is what it was parented to before)

Hey! Your question isn’t really clear, both the images show that the LocalScripts are parented to same ImageButton. You shouldn’t really use ServerScripts inside guis since they should be always handled by the client.

1 Like

Simple

script.Parent = --The screen gui