-- Script de Shift Lock con Bot贸n de Candado para [UP] Just a baseplate local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local player = Players.LocalPlayer local camera = workspace.CurrentCamera -- Crear Interfaz Gr谩fica (GUI) local screenGui = Instance.new("ScreenGui") screenGui.Name = "ShiftLockGui" screenGui.ResetOnSpawn = false screenGui.Parent = player:WaitForChild("PlayerGui") local textButton = Instance.new("TextButton") textButton.Name = "LockButton" textButton.Size = UDim2.new(0, 60, 0, 60) textButton.Position = UDim2.new(0.85, 0, 0.75, 0) -- Ajusta la posici贸n en pantalla textButton.BackgroundColor3 = Color3.fromRGB(40, 40, 40) textButton.TextColor3 = Color3.fromRGB(255, 255, 255) textButton.TextSize = 35 textButton.Text = "馃敁" -- Empieza abierto (movimiento normal) textButton.Font = Enum.Font.SourceSansBold textButton.Parent = screenGui -- Esquinas redondeadas para el bot贸n local uiCorner = Instance.new("UICorner") uiCorner.CornerRadius = UDim.new(0, 12) uiCorner.Parent = textButton -- Variables de Estado local isLocked = false local cameraConnection = nil -- Funci贸n para activar el comportamiento de Shift Lock local function enableShiftLock() textButton.Text = "馃敀" textButton.BackgroundColor3 = Color3.fromRGB(200, 50, 50) UserInputService.MouseBehavior = Enum.MouseBehavior.LockCenter -- Hacer que el personaje rote con la c谩mara hacia donde mira cameraConnection = RunService.RenderStepped:Connect(function() local character = player.Character if character and character:FindFirstChild("HumanoidRootPart") then local rootPart = character.HumanoidRootPart local lookVector = camera.CFrame.LookVector rootPart.CFrame = CFrame.new(rootPart.Position, rootPart.Position + Vector3.new(lookVector.X, 0, lookVector.Z)) end -- Mantiene el mouse centrado continuamente mientras est茅 cerrado UserInputService.MouseBehavior = Enum.MouseBehavior.LockCenter end) end -- Funci贸n para desactivar el Shift Lock local function disableShiftLock() textButton.Text = "馃敁" textButton.BackgroundColor3 = Color3.fromRGB(40, 40, 40) if cameraConnection then cameraConnection:Disconnect() cameraConnection = nil end UserInputService.MouseBehavior = Enum.MouseBehavior.Default end -- Evento al presionar el candado textButton.MouseButton1Click:Connect(function() isLocked = not isLocked if isLocked then enableShiftLock() else disableShiftLock() end end) -- Limpieza si el personaje reaparece player.CharacterAdded:Connect(function() if isLocked then disableShiftLock() isLocked = false end end)