Universal Script 📌
649 Views
544 Executions

TWO LIVES | UNIVERSAL EDITION | NO KEY

Universal Script 📌
belkinilas354
belkinilas354First script
9 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

Две жизни кароче если вас кто застрелит то вы не умрёт а вас просто потратиться вторая жизнь как это роботает ты наступаешь на лазер каторый тебя убьют и у тебя здоровье орёт как 0 и а потом скрипт это видит и добавляет тебя 50 здоровье анти чит срабатывает и здоровье 0 но потом когда анти чит срабатывает то у тебя уже здоровье выстоновилась я ещё добавил табличку что показывала сколько у тебя жизни не знаю кому нравится это скрипт то хз роботает в игр где здоровье восстанавливаться

View Raw
local player = game.Players.LocalPlayer
local pgui = player:WaitForChild("PlayerGui")
local userInputService = game:GetService("UserInputService")
local tweenService = game:GetService("TweenService")

local Config = {
    MaxLives = 2,           
    MinHealth = 50, -- Увеличил до 50, чтобы лазер не добил сразу
    Cooldown = 1.5,
    UI_Position = UDim2.new(0.5, -50, 0.8, 0)
}

local currentLives = Config.MaxLives
local isRecovering = false

-- Функция перетаскивания (без изменений)
local function makeDraggable(frame)
    local dragToggle, dragStart, startPos
    frame.InputBegan:Connect(function(input)
        if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then
            dragToggle = true
            dragStart = input.Position
            startPos = frame.Position
            input.Changed:Connect(function()
                if input.UserInputState == Enum.UserInputState.End then dragToggle = false end
            end)
        end
    end)
    userInputService.InputChanged:Connect(function(input)
        if dragToggle and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
            local delta = input.Position - dragStart
            frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
        end
    end)
end

local function createUI()
    if pgui:FindFirstChild("LivesMonitor") then pgui.LivesMonitor:Destroy() end
    local screenGui = Instance.new("ScreenGui", pgui)
    screenGui.Name = "LivesMonitor"


Comments

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

More universal scripts

See all
Universal Script 📌
2
0
Approved 10 minutes ago
Universal Script 📌
7
1
Approved 18 minutes ago
Universal Script 📌
23
1
Approved 38 minutes ago
Universal Script 📌
26
6
Approved 40 minutes ago
Universal Script 📌
15
2
Approved 43 minutes ago
Universal Script 📌
23
0
Approved 48 minutes ago
Paid