Universal Script πŸ“Œ
463 Views
2.5k Executions

Default camera lock

Universal Script πŸ“Œ
Hell_world
Hell_world100K executions
7 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

Default camera lock πŸ”’

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

local player = Players.LocalPlayer
local camera = workspace.CurrentCamera
local enabled = false

local ICON_ON = "rbxassetid://111486205059637"
local ICON_OFF = "rbxassetid://137244388976758"

local gui = Instance.new("ScreenGui")
gui.Name = "MobileShiftLock"
gui.ResetOnSpawn = false
gui.Parent = player:WaitForChild("PlayerGui")

local btn = Instance.new("ImageButton")
btn.Size = UDim2.new(0, 50, 0, 50)
btn.Position = UDim2.new(0.85, 0, 0.5, 0)
btn.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
btn.BackgroundTransparency = 0.4
btn.Image = ICON_OFF
btn.Active = true
btn.Draggable = true
btn.Parent = gui

local corner = Instance.new("UICorner")
corner.CornerRadius = UDim.new(0, 12)
corner.Parent = btn

local function toggle()
	enabled = not enabled
	
	if enabled then
		btn.Image = ICON_ON
		btn.ImageColor3 = Color3.fromRGB(0, 255, 150)
	else
		btn.Image = ICON_OFF
		btn.ImageColor3 = Color3.fromRGB(255, 255, 255)
		UserInputService.MouseBehavior = Enum.MouseBehavior.Default


Comments

2
Log in to join the conversation. Login
Mugen_Docs's profile picture
Mugen_Docs7 months ago

Why is it like tryna jump him or smth

2
Emil2006's profile picture
Emil20067 months ago

W scriptπŸ”₯

2

Tags

More universal scripts

See all
Universal Script πŸ“Œ
58
1
Approved 1 hour ago
Script hub
11.3k
56.8k
Bumped 2 hours ago
Key System
Script hub
1.6M
2.1M
Bumped 3 hours ago
Key System

Script hub

#14 this week

Verified script badgeSnowy Hub 500+ Games & 25600+ Features

Universal Script πŸ“Œ
130
12
Approved 3 hours ago
Universal Script πŸ“Œ
120
8
Approved 3 hours ago