Detect Controllers white dot

  1. What do you want to achieve? Keep it simple and clear!
    I want to be able to place my crosshair gui over the roblox white dot
  2. What is the issue? Include screenshots / videos if possible!

i tried anchoring the gui at exactly half the screen but that is indeed wrong since the white dot isn’t centered but maybe connected to the camera ig?

I was able to make it using this line of code if anyone needs it

local camera = game.workspace.CurrentCamera
local GUIInsetY = game:GetService('GuiService'):GetGuiInset().Y;
local mouse = game.Players.LocalPlayer:GetMouse();
local vpSize = camera.ViewportSize;
			CrosshairFrame.Position = UDim2.new(mouse.X / viewportSize.X, 0, (mouse.Y + GUIInsetY) / viewportSize.Y, 0);

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.