SHIFT LOCK lite just a baseplate
Key Required

SHIFT LOCK lite just a baseplate

[UP] Just a baseplate.izzystradlinhizzystradlinh 2.5K views 6.1K executesUpdated Jul 2, 2026
Unrated
00
Lua Script•81 lines (2811 chars)
-- 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)

Features & Information

Este script hace que puedas tener el SHIFT LOCK en el juego de Roblox llamado [UP] JUST A BASEPLATE y posiblemente o probablemente lo agregaré a universal script osea que funcione en cualquier juego de Roblox.

Community Comments (0)

No comments yet for this script.

More Scripts for [UP] Just a baseplate.