I can’t tell how you named the robux shop just edit that and fixed this line under it
local Roblox_ShopFrame = Robux_Shop.Frame
I can’t tell how you named the robux shop just edit that and fixed this line under it
local Roblox_ShopFrame = Robux_Shop.Frame
Just edit where it says robux shop did you not edit it? what I sent wasn’t a fix for that. I was just getting rid of the underline maybe there’s a double space between Robux and Shop.
Doesn’t seem to be a double space in there.
Oh I see what was wrong the way parented your Gui objects was confusing
local Robux_Shop = Main_PC.Bottom["Robux Shop"]
Didn’t notice the BottomFrame
Its just another typo. Uppercase P when it should be lower Gamepass
You mispelled gamepasses its really simple just look at what its saying
You mispelled it within the Explorer (The GuiButton.Name)
Okay so I got another error which I fixed you misspelt Positions where it put your canvasposition thing too, and now it works! Thank you so much for your time it was very appreciated! Also, do I do the same thing for the gems btw? (the answer is yes)
Hey! If you mind I changed some things around, can you help me reparent it?
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)
Well first. You cannot do this in a regular script because you cannot retrieve LocalPlayer In regular script.
Well if you looked up top its not in a Script? Its in a LocalScript. But can you help me reparent it?
What you mean by reparenting? Can you say what you’re parenting it into?
Okay so if you scroll up some messages, you can see you helped me make a Button that can make it go into a position into a ScrollingFrame when you click it. I moved some things around, how can I make that script work inside my new changing around.
I made It specifically for what you had before Parent and children. The way you parented most of your UI objects was really strange before I had a feeling you would change it sooner or later.
All you have to do is index the variables properly. Or just do what was previously suggested the super easy option
Script.Parent
local Passes = --// Index it somehow (._.'
Script.Parent.MouseButton1Down:Connect(function()
Passes.CanvasPosition = Vector2.new(0, 767.449)
end)
I would tell you that you would need to remake variables based on what you parented it to but you probably have no clue.
Yea, I tried to change it to the right things but I just kept messing up, and that’s why I came to ask you.
You just need to make new variables Before the ScreenGui was named “Main PC” But now it’s "RobloxShopMenu"
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local PlayerGui = Player.PlayerGui
local ScreenGui = PlayerGui.RobuxShopMenu
Thats how you would start off then you make the variables you need
But why did you put ScreenGui?
So you would understand. What the variable was