Forum > Coding >

MouseMove question

Posts: 3

Threads: 2

Joined: Jan, 2022

Reputation: 0

Posted

how do i use the mousemoverel(x, y) to move mouse to left? when i try it only moves to the right

  • 0

tar

CoolNickname

Posts: 119

Threads: 11

Joined: Jul, 2021

Reputation: 1

Replied

local mousepos = game:GetService("UserInputService"):GetMouseLocation()
mousemoveabs(mousepos.X + 50, mousepos.Y) -- Move to right
mousemoveabs(mousepos.X - 50, mousepos.Y) -- Move to left
  • 1

https://imgur.com/a/oOomuUo

Posts: 3

Threads: 2

Joined: Jan, 2022

Reputation: 0

Replied

@tar tysm

  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )