I want to Center the ScreenGui I'm making, I want the Cross Gui Frame to be centered in the mouse. Like the mouse pointing the intersection of the cross.
Meanwhile i want it to center and increase in size simultaneously . While the size increases i want the frame position to be centered. This is what i have.
function Position()
local SizeX = Crosshair.Size.UDim2.X
Cross.Position = UDim2.new(0,Mouse.X ,0,Mouse.Y ) -- it has to be something with this
end
game:GetService("RunService").RenderStepped:connect(Crosshairs)
for i = 1 ,50, 2 do
wait()
Cross.Size = UDim2.new(0,i,0,i)
end

5 comments
Ok we have no idea of your hierarchy, your gui appearance, or what went wrong.
wait what exactly is the problem here, and we may be needing a bit more of the code depending on it.
Here is a Drawing of what i'm trying to accomplish. http://i1174.photobucket.com/albums/r615/RobloxIMG/Demostration_zpswgps9imz.jpg
Mouse.X - Crosshair.Size.X/2
THat doesn't work