Universal Script 📌
1.0k Views
817 Executions

Gyroscope or gyro aim made by Grok

Universal Script 📌
NPCNOk
NPCNOkPublished 25
10 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

Me: yo bro make me a script Grok: I got you bro Me: why it not working on pc Grok: only work on mobile bro are you dumb Add touch screen or just call it A screen touch ok i am dumb it call touch screen but can turn around

Updates

  1. Script edited: Update script

  2. Script edited: Update script

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

local player = Players.LocalPlayer
local camera = workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Scriptable

-- Detect if gyroscope is available
local useGyro = UserInputService.TouchEnabled and UserInputService.GyroscopeEnabled

-- Gyro settings (only used when gyroscope is available)
local invertLook = false    -- Most devices need true in landscape
local invertPitch = false
local invertYaw = true
local maxPitch = math.rad(89)

-- Touch settings
local TOUCH_SENSITIVITY = 0.004  -- Adjust for faster/slower turning (0.003–0.006 recommended)
local invertTouchPitch = true    -- <<< NEW: Set to true to fix inverted up/down (swipe up = look up, swipe down = look down)
                                 -- If it still feels wrong after testing, change to false

-- Rotation variables
local offsetPitch = 0  -- Touch offset when gyro is active
local offsetYaw = 0
local currentPitch = 0  -- Direct accumulation when no gyro
local currentYaw = 0

-- Touch tracking
local lookActive = false
local lastLookPosition = nil

-- Character references
local character
local humanoid
local rootPart
local head

-- First-person body hiding
local function setupFirstPerson(char)


Comments

5
Log in to join the conversation. Login
pakupt's profile picture
pakupt10 months ago

Work - like script

2
NPCNOk's profile picture
NPCNOkUploader10 months ago

@pakupt thank

1
NPCNOk's profile picture
NPCNOkUploader10 months ago(edited)

Delta executor ruin my save script everything. because my script was delete and gone, some script are working but delta think the script was delete they never executed the script in my save script

1
NPCNOk's profile picture
NPCNOkUploader10 months ago

don't care the inverted because i tell Ai fix the * inverted the ai dumb* doing it wrong so i change the invertedYaw set to true because it will can turn left and right

1

[deleted]

Replying to a deleted comment
NPCNOk's profile picture
NPCNOkUploader10 months ago

@DEVKIX thanks

2

Tags

More universal scripts

See all
Script hub
14.3k
74.8k
Bumped 1 hour ago
Universal Script 📌
51
7
Approved 3 hours ago
Key System
Universal Script 📌
52
2
Approved 3 hours ago
Script hub
51
5
Approved 3 hours ago
Key System
Universal Script 📌
53
3
Approved 3 hours ago