Issue with making window bigger on click solved

this is probably because your frame’s size is based on offset than opposed to scale

Off the UI that you said. (charss)

set the size to the value he put in his original code above

(or maybe it might still not work i have no idea)

in properties or just how the average player can see it

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(1, 0, 1, 0)

booglesframe.Position = UDim2.new(0, 0, 0, 0)

booglesframe.AnchorPoint = Vector2.new(0, 0)

end)

is the code i have right know

It’s works fine for me

script.Parent.MouseButton1Click:Connect(function()
	script.Parent.Position = UDim2.new(0,0,0,0)
	script.Parent.Size = UDim2.new(1,0,1,0)
end)
-- It's anchorpoint is (0, 0)
local players = game:GetService(“Players”)
local player = players.LocalPlayer
local playergui = player.PlayerGui

script.Parent.MouseButton1Click:Connect(function ()
local booglesframe = playergui.Options.BooglesFrame
booglesframe.Size = UDim2.new(.958, 0, .887, 0)
booglesframe.Position = UDim2.new(0.5, 0, 0.5, 0)
booglesframe.AnchorPoint = Vector2.new(0.5, 0.5)
end)

i replaced it with the values you suggested

1 Like

This resolved the issue the size was normal thank you

2 Likes

Thanks to all that tried to help me!

2 Likes