Universal Script πŸ“Œ
770 Views
4.6k Executions

No Mobile Joystick Slowdown

Universal Script πŸ“Œ
theobscured102
theobscured102Published 10
8 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

There's no slowdown in movement when you try to move using your joystick in mobile. You'll be already at full speed. I'll make it open source btw. NOTE: This is recommended for obbies or parkour since I specifically made it for that. It allows more dexterity and easier maneuverability.

View Raw
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")

local player = Players.LocalPlayer
local playerScripts = player:WaitForChild("PlayerScripts")
local controls = require(playerScripts:WaitForChild("PlayerModule")):GetControls()

local BIND_NAME = "CameraAlignedMobileMove"
local DEADZONE = 0.05

local function unbind()
	RunService:UnbindFromRenderStep(BIND_NAME)
end

local function hookCharacter(char)
	unbind()

	if not UserInputService.TouchEnabled then
		return
	end

	local humanoid = char:WaitForChild("Humanoid")

	RunService:BindToRenderStep(BIND_NAME, Enum.RenderPriority.Input.Value + 1, function()
		if not humanoid.Parent then
			unbind()
			return
		end

		local camera = workspace.CurrentCamera
		if not camera then
			return
		end

		local move = controls:GetMoveVector()
		local mag = move.Magnitude
		if mag <= DEADZONE then
			return
		end


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Universal Script πŸ“Œ
10.3k
287
Bumped 2 hours ago
High QualityΒ Offering
Universal Script πŸ“Œ
8.5k
32.8k
Bumped 2 hours ago
Key System
Universal Script πŸ“Œ
1.4k
5.9k
Bumped 2 hours ago
Script hub
22.0k
4.3k
Bumped 3 hours ago
Key System
Paid
High QualityΒ Offering
Universal Script πŸ“Œ
1.1k
2.2k
Bumped 4 hours ago
Universal Script πŸ“Œ
1.6k
6.0k
Bumped 4 hours ago
Script hub
164.8k
567.4k
Bumped 7 hours ago
Key System

Script hub

Hall of Fame #6

Verified script badgeAcro Hub OP SCRIPT