Is there any errors? If not, I’ll try it myself.
this is when i click it
In the localscript, are there any red underlined errors?
Not with the script i used which was
local players = game:GetService(“Players”)
local player = players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function ()
local playergui = player.PlayerGui
local booglesframe = playergui.Options.BoogleFrame
booglesframe.Size = UDim2.new(0.958, 0, 0.887, 0)
end)
Any errors in the output or the Script Analysis tab?
Only in the screenshot i sent with clicking it
It’s an issue with
local booglesframe = playergui.Options.BoogleFrame
since I don’t fully know your project & it’s parents, I’d assume you can fix this yourself.
This part may be incorrect. Are you sure you got the right name?
I did try making the name the same but nothing happend
Found it! Replace the code I sent a few minutes ago with this:
local players = game:GetService("Players")
local player = players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function ()
local playergui = player.PlayerGui
local booglesframe = playergui.Options.BooglesFrame
booglesframe.Size = UDim2.new(0.958, 0, 0.887, 0)
end)
It’s supposed to be BooglesFrame, not BoogleFrame. You forgot the ‘s’.
I made a typo in the first one, it read “BoogleFrame” not “BooglesFrame”
I just made a typo, sorry. Lol.
It works but the position it goes under the screen a bit
Then that is an issue with the positions you gave, I believe.
You could try making the ScaleY (3rd attribute of UDim2.new)'s value 1.
Oh, I think I have the website for that.
https://developer.roblox.com/en-us/api-reference/property/GuiObject/Position
I believe you sent that earlier. It may involve changing the ScaleY of UDim2 to 1 or anchorpoints.
Set it’s AnchorPoint to 0.5, 0.5
The last one I sent was the ‘Size’, this one is the ‘Position’.
Apologies, didn’t notice the difference.