Universal Script 📌
12.2k Views
111 Executions

Camera Stop

Universal Script 📌
Cadhoun
Cadhoun10K executions
2 years 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

Fix the camera on one point by pressing a button, simple!!

View Raw
local player = game.Players.LocalPlayer
local camera = workspace.CurrentCamera
local runService = game:GetService("RunService")

local cameraFrozen = false
local lastCameraCFrame = camera.CFrame
local dragged = false  -- Variable para saber si fue arrastrado

-- Crear la interfaz y asegurarse de que persista después de la muerte
local screenGui = Instance.new("ScreenGui")
screenGui.ResetOnSpawn = false  -- Esto asegura que no se reinicie la interfaz
screenGui.Parent = player:WaitForChild("PlayerGui")

-- Crear el botón "Stop Camera"
local stopButton = Instance.new("TextButton")
stopButton.Size = UDim2.new(0, 60, 0, 25)  -- Tamaño reducido del botón
stopButton.Position = UDim2.new(0.5, -30, 0.5, -12.5) -- Centrado en la pantalla
stopButton.Text = "Stop Camera"
stopButton.BackgroundColor3 = Color3.new(1, 0, 0)
stopButton.TextColor3 = Color3.new(1, 1, 1)
stopButton.BackgroundTransparency = 0.48 -- 48% transparente
stopButton.Parent = screenGui

-- Crear el pequeño botón de borrar en la esquina superior derecha del botón "Stop Camera"
local deleteButton = Instance.new("TextButton")
deleteButton.Size = UDim2.new(0, 15, 0, 15)  -- Tamaño pequeño del botón de borrar
deleteButton.Position = UDim2.new(1, -15, 0, 0)  -- Colocarlo en la esquina superior derecha
deleteButton.Text = "X"
deleteButton.BackgroundColor3 = Color3.new(0.8, 0, 0)
deleteButton.TextColor3 = Color3.new(1, 1, 1)
deleteButton.BackgroundTransparency = 0.48 -- 48% transparente
deleteButton.Parent = stopButton

-- Función para fijar la cámara y cambiar el texto del botón
local function freezeCamera()
    if not dragged then  -- Solo ejecuta si no fue arrastrado
        cameraFrozen = not cameraFrozen
        if cameraFrozen then
            lastCameraCFrame = camera.CFrame
            stopButton.Text = "Don't Stop"  -- Cambiar el texto cuando la cámara se congela


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Universal Script 📌
40.1k
817.4k
Bumped 31 minutes ago
Universal Script 📌
28
0
Approved 40 minutes ago
Universal Script 📌
133.5k
24.2k
Bumped 56 minutes ago
Key System
Universal Script 📌
91
8
Approved 2 hours ago
Universal Script 📌
78
2
Approved 2 hours ago
Universal Script 📌
6.5k
115
Bumped 2 hours ago