
770 Views
4.6k Executions
No Mobile Joystick Slowdown
Universal Script π
theobscured102Published 10
8 months ago
Please login to perform these actions:Does it work?
No reports yetNo 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.
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
0Log in to join the conversation. Login
No comments yet. Be the first!







