I’ve made this extremely simple random UI position script
script.Parent.MouseButton1Click:Connect(function()
local newX = math.random(0.1, 0.9)
local newY = math.random(0.1, 0.9)
script.Parent.Position = UDim2.new(newX, 0, newY, 0)
print(newX, newY)
end)
But for some reason everytime I click On it It decides to go to the position “(0,0)” an exact position not mentioned inside the math.random, any fix? is this a roblox bug?