So, i'm working with a gui right now. I am trying to script a Udim2.new() script so that it changes the size of the GUI when certain event are activated.
But, whenever i test the game, it automatically sets the X-scale of the GUI to 1. Even tho i did not script it to be that way.
Can someone please help me?
Here's the code:
script.Parent.Size = UDim2.new(char.Humanoid.Health / char.Humanoid.MaxHealth,0,590,0,31)

1 comment
the UDim2.new function only has 4 arguments, you gave it 5.