
Keyless

-- ts is 28 lines long 😭
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local ReplicatedFirst = game:GetService("ReplicatedFirst")
local player = Players.LocalPlayer
local mobileCrouch = ReplicatedFirst:WaitForChild("MobileCrouch")
local lastJumpState = false
RunService.RenderStepped:Connect(function()
local character = player.Character
local humanoid = character and character:FindFirstChildWhichIsA("Humanoid")
if not humanoid then
lastJumpState = false
mobileCrouch.Value = false
return
end
local jumpHeld = humanoid.Jump
if jumpHeld ~= lastJumpState then
lastJumpState = jumpHeld
mobileCrouch.Value = jumpHeld
end
end)No comments yet for this script.