Xbox camera movement

Hey, I’m making a game for Xbox.
And I want to add mouse pointer(that white point) like “Welcome to Bloxburg”.
Help me, thanks!

He most likely made this by disabling the mouse, and making a custom one. Im not sure of this but it should be pretty simple.

The basic steps are as simple as:

disable icon
make new icon visible
when the thumbstick is moved, move the mouse by that delta.

Heres some code that should send you in the right direction:

local module = {}

local enabled = false

local gui = script.ScreenGui

local delta = Vector2.new()

function module:Enable()

    enabled = true

end

game:GetService("UserInputService").MouseIconEnabled = false

game:GetService("UserInputService").InputChanged:Connect(function(input)

    gui.Enabled = enabled

    if input.KeyCode == Enum.KeyCode.Thumbstick2 then

        delta = input.Delta * 10000

    end

end)

game:GetService("RunService").RenderStepped:Connect(function(dt)

    if enabled then

        gui.Frame.Position = gui.Frame.Position + UDim2.fromOffset(delta.X * dt, delta.Y * dt)

    end

end)

return module
3 Likes