The script.
local Remotes = script.Parent:WaitForChild("Remotes")
local CharHealthStats = script.Parent
local Lighting = game:GetService("Lighting")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
--Bleeding
local Stats = CharHealthStats.Generic.Stats
local BleedingValue = CharHealthStats.Generic.Stats:GetAttribute("Bleeding")
local BloodLevel = CharHealthStats.Generic.Stats:GetAttribute("BloodLevel")
local BleedType = CharHealthStats.Generic.Stats:GetAttribute("BloodType")
local BleedTime = {
1.55,
0.55,
0.33
}
local BloodLoss = {
1,
2,
3
}
Stats:GetAttributeChangedSignal("Bleeding"):Connect(function()
print("Changed!")
warn(BleedingValue)
if BleedingValue == true then
warn("Value is true, returning values", BloodLevel, BleedingValue)
warn("Checking Severity", BleedType)
if BleedType == "Mild" then -- MILD
warn("put something here later!")
elseif BleedType == "Normal" then -- NORMAL
warn("put something here later!")
elseif BleedType == "Severe" then -- SEVERE
warn("put something here later!")
end
end
end)