Repro code:
--!strict
local insetBottom, _ = game.GuiService:GetGuiInset()
game.UserInputService.TouchMoved:Connect(function(touch: InputObject, gpe)
if not gpe then
print("touchPos:"..tostring(touch.Position)..", inset: "..tostring(insetTop))
self.TouchPosition = touch.Position :: Vector2 - insetBottom --you will notice this warn us saying its a Vector3
end
end)
Expected behavior
According to the documents its supposed inputObject.Position is a Vector2, however it passes a Vector3 as seen in the given image. Occurs in game(like in image) as well as in studio!