Universal Script πŸ“Œ
473 Views
3.1k Executions

Default camera lock

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

Why is it like tryna jump him or smth

2
Emil2006's profile picture
Emil20068 months ago

W scriptπŸ”₯

2

Tags

More universal scripts

See all
Universal Script πŸ“Œ
1.3M
591.6k
Bumped 1 hour ago
Script hub
2.5k
19.4k
Bumped 2 hours ago
Universal Script πŸ“Œ
263
357
Approved 4 hours ago
Universal Script πŸ“Œ
64
552
Approved 4 hours ago
Universal Script πŸ“Œ
84
72
Approved 5 hours ago
Script hub
100
329
Approved 5 hours ago
Key System