Universal Script 📌
2.4k Views
2.1k Executions
Key System

YM TOOL

Universal Script 📌
cookichocs
cookichocsFirst script
2 months ago · Updated

Reviewed by QueueSpeedDemonPaid revieweron How review works

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

UPDATE ON DISCORD the key : ymclxn

Updates

  1. Script edited: Update script

  2. Script edited: Update script

  3. Script edited: Update script

  4. Script edited: Update script

View Raw
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local VirtualUser = game:GetService("VirtualUser")
local Camera = workspace.CurrentCamera
local Mouse = Players.LocalPlayer:GetMouse()
local player = Players.LocalPlayer


local cursorIsForced = false
local savedMouseBehavior = nil
local savedMouseIconEnabled = nil
local CURSOR_RENDER_STEP = "YM_ForceFreeCursor"

local function setCursorForced(visible)
	if visible then
		if not cursorIsForced then
			savedMouseBehavior = UserInputService.MouseBehavior
			savedMouseIconEnabled = UserInputService.MouseIconEnabled
			cursorIsForced = true

			pcall(function()
				RunService:UnbindFromRenderStep(CURSOR_RENDER_STEP)
				RunService:BindToRenderStep(CURSOR_RENDER_STEP, Enum.RenderPriority.Last.Value, function()
					if cursorIsForced then
						UserInputService.MouseBehavior = Enum.MouseBehavior.Default
						UserInputService.MouseIconEnabled = true
					end
				end)
			end)
		end
		UserInputService.MouseBehavior = Enum.MouseBehavior.Default
		UserInputService.MouseIconEnabled = true
	elseif cursorIsForced then
		cursorIsForced = false
		pcall(function()
			RunService:UnbindFromRenderStep(CURSOR_RENDER_STEP)
		end)
		if savedMouseBehavior then
			UserInputService.MouseBehavior = savedMouseBehavior


Comments

1
Log in to join the conversation. Login
FEMDER2048's profile picture
FEMDER20481 month ago

Я когда хочу оплатить выдачи ошибку

0

More universal scripts

See all
Script hub
14.4k
75.0k
Bumped 3 hours ago
Universal Script 📌
76
95
Approved 4 hours ago
Key System
Universal Script 📌
78
117
Approved 4 hours ago
Script hub
76
205
Approved 4 hours ago
Key System
Universal Script 📌
65
46
Approved 4 hours ago
Universal Script 📌
69
20
Approved 4 hours ago