I want to make a feature for my game where certain people can "draw" on a map for other players to see. This is what I have so far:
function draw(x,y)
local f=Instance.new("Frame",script.Parent.DrawHere) --create a new Frame inside a viewing space
f.Name="Drawring"
f.Size=UDim2.new(0,5,0,5)
f.Position=UDim2.new(0,x-script.Xoffset.Value,0,y-script.Yoffset.Value) --This puts it right where your cursor is. I used intvalues to find how far it is off so I can guess and check very quickly
f.BorderSizePixel=0
f.BackgroundColor3=Color3.new(0,0,0)
end
script.Parent.DrawHere.MouseMoved:connect(draw)
When you use this method, if you move your cursor fast at all there will be spaces between Frames. If you look at freemodels that are "Drawing Gui's" they have the same problem. In fact, Stickmasterluke's game "Draw It!" seems to be the only place that does not have that problem. I attempted to write a function to fill the gaps, but I couldn't get it to fill the gaps. Are there any methods I am overlooking that would work better for what I am trying to do?

3 comments
Use number values instead. NumberValues hold numbers. Int Values only hold whole numbers like 1 or 4.
@supercoolguy53 That isn't the problem. That works perfectly. Also, Gui coordinates are always whole numbers. You cannot have a UDim2 position of (0, 19.41234, 0, 41.123)
Can you give a screenshot please? I'm just slightly confused as to how these gaps look