UDim2.new(0,0,0,0) has no effect on the buttons from ScreenshotHud, unless something else is inputted first

Description

When using game.GuiService.ScreenshotHud.CameraButtonPosition = UDim2.new(0,0,0,0) nothing happens.

You have to change it to something that isn’t 0,0,0,0 and then move it to 0,0,0,0, which is strange.

Re-production Steps

There’s also a re-production place in the Private Message.

  1. Open Studio
  2. Press F5 to run game
  3. Put the code from below into the console
game.GuiService.ScreenshotHud.Visible = true
  1. Then run
game.GuiService.ScreenshotHud.CameraButtonPosition = UDim2.new(0,0,0,0)

 

Expected Result

That the button moves to UDim2.new(0,0,0,0) without having to do UDim2.new(0,1,0,0) first, just to change it to UDim2.new(0,0,0,0) afterwards.

Actual Result

The button is still at the same place, even though we told it to go to UDim2.new(0,0,0,0).

image

You have to set it first to something that isn’t UDim2.new(0,0,0,0) for this to work, e.g. setting it to UDim2.new(0,1,0,0) and then to UDim2.new(0,0,0,0)


A private message is associated with this bug report

1 Like