local p_Health = 64
local d_MultiplaierTbl = {
d_Headshot = 4,
d_Body = 1,
d_Legs = 0.75,
d_Stomach = 1.25,
}
local s_Headshot = false
local s_BodyShot = true
local s_LegShot = false
local s_StomachShot = false
local function RandomShot()
local rand = math.random(1, 4)
if rand == 1 then
s_Headshot = not s_Headshot
print("s_Headshot: " .. s_Headshot)
elseif rand == 2 then
print(rand)
elseif rand == 3 then
print(rand)
elseif rand == 4 then
print(rand)
else
print("h")
end
end
local base_PistolDamage = 15
if s_BodyShot then
print(p_Health - base_PistolDamage * d_MultiplaierTbl.d_Body)
end
RandomShot()
To embed this project on your website, copy the following code and paste it into your website's HTML: