Roblox Surf/Bhop

Ask gaming related questions (AHK v1.1 and older)
Nova
Posts: 1
Joined: 08 Apr 2017, 06:59

Roblox Surf/Bhop

08 Apr 2017, 07:05

Surf : https://www.roblox.com/games/272689493/surf
Bhop : https://www.roblox.com/games/252877716/bhop

Im not very good with AHK and I am looking for someone to write a script for me. The script I am looking for is similar to the ones in the valve games. In the console in those games you would type :

bind "q" "+left"
bind "e" "+right"

by pressing q it would turn your mouse in a circle left and with pressing e it would turn your mouse in a circle right and by changing in game sensitivity the spin would be faster/slower


'Nova
PARATR00PER
Posts: 8
Joined: 20 Aug 2017, 11:41

Re: Roblox Surf/Bhop

15 Oct 2017, 05:23

In ROBLOX automated mouse movements just make you look down and spin rapidly, from my experience. I'm not sure if this is possible or not but I do have a script that will make you restart when you press shift.

Code: Select all

#SingleInstance, Force
WinActivate ROBLOX

Shift::
SendInput //r
sleep,10
SendInput {enter}
Return

End::
SetCapsLockState off
SetNumLockState off
SetScrollLockState off
ExitApp
sunset
Posts: 1
Joined: 15 Dec 2021, 21:21

Re: Roblox Surf/Bhop

15 Dec 2021, 21:22

Here you go!

Code: Select all

#NoEnv
#MaxHotkeysPerInterval 99000000
#HotkeyInterval 99000000
#KeyHistory 0
ListLines Off
Process, Priority, , A
SetBatchLines, -1
SetKeyDelay, -1, -1
SetMouseDelay, -1
SetDefaultMouseSpeed, 0
SetWinDelay, -1
SetControlDelay, -1
SendMode Input
CoordMode, Mouse, Screen
mouseXY(x, y)
{
    DllCall("mouse_event",uint,1,int,x,int,y,uint,0,int,0)
}
strafe(left)
{
  moveCount := 1
  sleepInterval := 0
  relativeMove := 35
  if (left)
  {
    key := "t"
    move := -relativeMove
  } else
  {
    key := "y"
    move := relativeMove
  }
  DllCall("Sleep", "UInt", 5)
  Loop, %moveCount%
  {
    mouseXY(move, 0)
    DllCall("Sleep", "UInt", sleepInterval)
  }
}
$Q::
while getkeystate("Q","P")
{
strafe(true)
}
return
$E::
while getkeystate("E","P")
{
strafe(false)
}
return
Home::Suspend
return
[Mod edit: [code][/code] tags added.]
plootus
Posts: 1
Joined: 07 Jan 2024, 09:58

Re: Roblox Surf/Bhop

07 Jan 2024, 10:01

I changed a script to make it so that
Left click = Left turn
Right click= Right turn
F1= pause
Scroll Wheel up/down adjusts turning speed
Hope this helps someone 8-)

Code: Select all

#NoEnv
#MaxHotkeysPerInterval 99000000
#HotkeyInterval 99000000
#KeyHistory 0
ListLines Off
Process, Priority, , A
SetBatchLines, -1
SetKeyDelay, -1, -1
SetMouseDelay, -1
SetDefaultMouseSpeed, 0
SetWinDelay, -1
SetControlDelay, -1
SendMode Input
CoordMode, Mouse, Screen

relativeMove := 35  ; Default relative move value

strafe(left, distance)
{
  moveCount := 1
  sleepInterval := 0
  if (left)
  {
    move := -distance
  }
  else
  {
    move := distance
  }
  DllCall("Sleep", "UInt", 5)
  Loop, %moveCount%
  {
    DllCall("mouse_event", "UInt", 1, "Int", move, "Int", 0, "UInt", 0, "Ptr", 0)
    DllCall("Sleep", "UInt", sleepInterval)
  }
}

$F1::Suspend  ; Press F1 to suspend the script

$LButton::
while GetKeyState("LButton", "P")  ; When left mouse button is pressed
{
  strafe(true, relativeMove)
}
return

$RButton::
while GetKeyState("RButton", "P")  ; When right mouse button is pressed
{
  strafe(false, relativeMove)
}
return

; Increase relativeMove value by 5 when pressing Ctrl + UpArrow
^Up::
  relativeMove := relativeMove + 5
  return

; Decrease relativeMove value by 5 when pressing Ctrl + DownArrow
^Down::
  relativeMove := Max(0, relativeMove - 5)
  return

; Use the scroll wheel to increase or decrease relativeMove value
WheelUp::
  relativeMove := relativeMove + 5
  return

WheelDown::
  relativeMove := Max(0, relativeMove - 5)
  return
[Mod edit: Fixed [code][/code] tags. They should go around the code.]

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 75 guests