Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What Is The Console Equivalent To The GetMouse() ?

Asked by 5 years ago
if placing == true and enabled == true then
            posX,posY,posZ = mouse.hit.X, mouse.hit.Y, mouse.hit.Z
            tower1.Position = Vector3.new(posX,posY+1,posZ)
            Radius.Position = Vector3.new(posX,posY+.25,posZ)
            script.Parent.TextButton.Visible = true
            script.Parent.TextButton.Active = true
            script.Parent.TextButton.Yes.Visible = true
            script.Parent.TextButton.Yes.Active = true
            script.Parent.TextButton.No.Visible = true
            script.Parent.TextButton.No.Active = true
            mouse.Button1Down:Connect(function()
                if mouse.Target == game.Workspace.Baseplate then
                placing = false
                enabled = false
                end

This is the code I use to place towers in my TD, however, it does not work at all on Xbox One. Though it kind of works on Mobile. I need to know how to get the position of the little cursor dot in the middle of the screen on Xbox to be what the Tower1.Position follows.

Thanks For Your Help!

Answer this question