I am making a Textbutton so it spawns atimaticaly and picks a random spot in the screen GUI. What do I do to make it go to a random position from
x = 0.021 - 0.953 y = 0.146 - 0.917 please help
This is my current code
local xPos = math.random(0.021, 0.953)
local yPos = math.random(0.146,0.917)
local Point = Instance.new("TextButton")
Point.Parent = game.StarterGui.ScreenGui
Point.Visible = true
Point.Size = script.Parent.TextButton1.Size
Point.Position = UDim2.new(xPos, yPos)
It is a local script but the math.random position is not working
