local function f()IsShiftLocked=not IsShiftLocked if IsShiftLocked then ShiftLockIcon.Image=SHIFT_LOCK_ON Mouse.Icon=SHIFT_LOCK_CURSOR else ShiftLockIcon.Image=SHIFT_LOCK_OFF Mouse.Icon=""end ShiftLockController.OnShiftLockToggled:Fire()end local function K()if ScreenGui then ScreenGui:Destroy()ScreenGui=nil end ScreenGui=Instance.new("\083\099\114\101\101\110\071\117\105")ScreenGui.Name="\067\111\110\116\114\111\108\071\117\105"local K=Instance.new("\070\114\097\109\101")K.Name="\066\111\116\116\111\109\076\101\102\116\067\111\110\116\114\111\108"K.Size=UDim2.new(0,130,0,46)K.Position=UDim2.new(0,0,1,-46)K.BackgroundTransparency=1 K.Parent=ScreenGui ShiftLockIcon=Instance.new("\073\109\097\103\101\066\117\116\116\111\110")ShiftLockIcon.Name="\077\111\117\115\101\076\111\099\107\076\097\098\101\108"ShiftLockIcon.Size=UDim2.new(0,62,0,62)ShiftLockIcon.Position=UDim2.new(0,2,0,-65)ShiftLockIcon.BackgroundTransparency=1 ShiftLockIcon.Image=IsShiftLocked and SHIFT_LOCK_ON or SHIFT_LOCK_OFF ShiftLockIcon.Visible=IsShiftLockMode ShiftLockIcon.Parent=K ShiftLockIcon.MouseButton1Click:connect(f)ScreenGui.Parent=PlayerGui end
--[[ Local Functions ]]
--
local function onShiftLockToggled()
	IsShiftLocked = not IsShiftLocked
	if IsShiftLocked then
		ShiftLockIcon.Image = SHIFT_LOCK_ON
		Mouse.Icon = SHIFT_LOCK_CURSOR
	else
		ShiftLockIcon.Image = SHIFT_LOCK_OFF
		Mouse.Icon = ""
	end
	ShiftLockController.OnShiftLockToggled:Fire()
end

local function initialize()
	if ScreenGui then
		ScreenGui:Destroy()
		ScreenGui = nil
	end
	ScreenGui = Instance.new("ScreenGui")
	ScreenGui.Name = "ControlGui"

	local frame = Instance.new("Frame")
	frame.Name = "BottomLeftControl"
	frame.Size = UDim2.new(0, 130, 0, 46)
	frame.Position = UDim2.new(0, 0, 1, -46)
	frame.BackgroundTransparency = 1
	frame.Parent = ScreenGui

	ShiftLockIcon = Instance.new("ImageButton")
	ShiftLockIcon.Name = "MouseLockLabel"
	ShiftLockIcon.Size = UDim2.new(0, 62, 0, 62)
	ShiftLockIcon.Position = UDim2.new(0, 2, 0, -65)
	ShiftLockIcon.BackgroundTransparency = 1
	ShiftLockIcon.Image = IsShiftLocked and SHIFT_LOCK_ON or SHIFT_LOCK_OFF
	ShiftLockIcon.Visible = IsShiftLockMode
	ShiftLockIcon.Parent = frame

	ShiftLockIcon.MouseButton1Click:connect(onShiftLockToggled)

	ScreenGui.Parent = PlayerGui
end
