Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to resize a frame with a button?

Asked by
hokyboy 270 Moderation Voter
5 years ago
script.Parent.MouseButton1Click:Connect(function()
    script.Parent.Parent.Size = 1,0 0, 200

end)

here is my script its wrong i think i forgot something can some one help me

1
I think you need to do this with UDim2.new RedstonecraftHD 25 — 5y
0
Doesnt seem to work hokyboy 270 — 5y
0
You certainly need a UDim2.new(), you need to assign it to the Size property. So it'd be script.Parent.Parent.Size = UDim2.new(XScale, XOffset, YScale, YOffset) M39a9am3R 3210 — 5y
0
Udim2. ChasingNachos 133 — 5y

Answer this question