Hello, I made a instance.new TextButton and I want it to go to a random place in the screen gui this is the script that I made
local xPos = math.random(0.021, 0.953)
local yPos = math.random(0.146,0.917)
local Point = Instance.new("TextButton", game.StarterGui.ScreenGui)
Point.Visible = true
Point.Position = Vector3.new(xPos, yPos)
When I run this nothing happens and the error is
PlayerGui.ScreenGui.LocalScript:7: bad argument #3 (UDim2 expected, got Vector3)
Could I get help fixing this script?
