Purchase Completed
Error occurred
Description
local Workspace = game:GetService("Workspace")
local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
-- Référence au joueur local, au personnage et à l'humanoïde
local player = Players.LocalPlayer
local character = player.Character
local humanoid = character:WaitForChild("Humanoid")
-- Propriétés du tween
local tweenInfo = TweenInfo.new(0.5, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out)
-- Variable pour stocker/cache la santé du personnage
local cachedHealth = humanoid.Health / humanoid.MaxHealth
-- Obtenez (ou créez un nouvel) effet de correction de couleur à l'intérieur de la caméra du joueur
local colorCorrection = Workspace.CurrentCamera:FindFirstChildWhichIsA("ColorCorrectionEffect") or Instance.new("ColorCorrectionEffect", Workspace.CurrentCamera)
colorCorrection.Name = "DamageColorEffect"
-- Référence à la barre intérieure du compteur
local playerGui = player:WaitForChild("PlayerGui")
local meterBarInner = playe
There are currently no running experiences.