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?
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?
You have to use Udim2.new(0,300,0,15)
This discussion is preserved as it was. New answers, comments, and votes are closed.