if GUI1.Position == GUI2.Position then
print("Position = Same")
end
But the above code doesn't run, because their position have that 0.000001 difference, how can I make it detect if their position is pretty much the same?
Current Script (Need Fix):
runService.RenderStepped:Connect(function()
if (math.abs(apple.Position.X.Scale) - math.abs(snake.Position.X.Scale) <= 0.0000001) and (math.abs(apple.Position.Y.Scale) - math.abs(snake.Position.Y.Scale) <= 0.0000001) then
--code
end
end)

1 comment
oh wait it's a udim2 value sorry I forgot that was about gui, but it's basically the same concept, tell me if you need help with udim2