Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I change the size of a frame from a script?

I'm trying to make a script where when u click a button the frame changes to a certain size

script.Parent.MouseButton1Click:Connect(function()
	script.Parent.Parent.Frame.Size = (0,300,0,15)
end)

why won't this work?

1 answer

✓ Accepted answer

You have to use Udim2.new(0,300,0,15)

This discussion is preserved as it was. New answers, comments, and votes are closed.