Run it
Copy the script and paste it into your executor.
player = .Players.LocalPlayer
pgui = player:()
userInputService = :()
tweenService = :()
Config = {
MaxLives = ,
MinHealth = ,
Cooldown = ,
UI_Position = .(, -, , )
}
currentLives = Config.MaxLives
isRecovering =
(frame)
dragToggle, dragStart, startPos
frame.InputBegan:((input)
(input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch)
dragToggle =
dragStart = input.Position
startPos = frame.Position
input.Changed:(()
input.UserInputState == .UserInputState.End dragToggle =
)
)
userInputService.InputChanged:((input)
dragToggle (input.UserInputType == .UserInputType.MouseMovement input.UserInputType == .UserInputType.Touch)
delta = input.Position - dragStart
frame.Position = .(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
)
()
pgui:() pgui.LivesMonitor:()
screenGui = .(, pgui)
screenGui.Name =
screenGui.ResetOnSpawn =
screenGui.DisplayOrder =
frame = .(, screenGui)
frame.Size = .(, , , )
frame.Position = Config.UI_Position
frame.BackgroundColor3 = .(, , )
frame.BackgroundTransparency =
frame.Active =
.(, frame)
countText = .(, frame)
countText.Size = .(, , , )
countText.BackgroundTransparency =
countText.Text = (currentLives)
countText.TextColor3 = .(, , )
countText.Font = .Font.GothamBold
countText.TextSize =
countText.Interactable =
(frame)
countText
lifeLabel = ()
(character)
humanoid = character:()
humanoid:(.HumanoidStateType.Dead, )
humanoid.BreakJointsOnDeath =
currentLives = Config.MaxLives
lifeLabel.Text = (currentLives)
.(()
character.Parent
humanoid.Health <= currentLives > isRecovering
isRecovering =
currentLives = currentLives -
lifeLabel.Text = (currentLives)
humanoid.Health = Config.MinHealth
humanoid:(.HumanoidStateType.GettingUp)
root = character:()
root
root.Velocity = .(, , )
.(Config.Cooldown)
isRecovering =
.()
)
player.CharacterAdded:(applySurvival)
player.Character (player.Character)
Две жизни кароче если вас кто застрелит то вы не умрёт а вас просто потратиться вторая жизнь как это роботает ты наступаешь на лазер каторый тебя убьют и у тебя здоровье орёт как 0 и а потом скрипт это видит и добавляет тебя 50 здоровье анти чит срабатывает и здоровье 0 но потом когда анти чит срабатывает то у тебя уже здоровье выстоновилась я ещё добавил табличку что показывала сколько у тебя жизни не знаю кому нравится это скрипт то хз роботает в игр где здоровье восстанавливаться

Universal