So, script ceases working after print(“1”) point. What the problem could be in?
local mouse = player:GetMouse()
mouse.Button1Down:Connect(function()
if equipped == true then
print("1")
if heavybleeding == true then
print("2")
used = true
print("3")
beforeapplying.Value = torso.Value
print("4")
torso.Value = 100
print("5")
if used == true then
print("6")
used = false
print("7")
torso.Value = beforeapplying.Value
print("8")
uses.Value =- 1
print("9")
end
end
end
end)
local mouse = player:GetMouse()
mouse.Button1Down:Connect(function()
if equipped == true then
print("1")
if heavybleeding == true then
print("2")
used = true
print("3")
beforeapplying.Value = torso.Value
print("4")
torso.Value = 100
print("5")
end
if used == true then
print("6")
used = false
print("7")
torso.Value = beforeapplying.Value
print("8")
uses.Value =- 1
print("9")
end
end
end)