Basically, when drinking is == true don't let the player unequip the tool it has to be drinking == false to let him unequip but sadly gives me error attempt to call a nil value what do i do wrong ?
local Tool = script.Parent
local Humanoid = game.Players.LocalPlayer.Character.Humanoid
drinking = false
function Activated(onActivated)
if not drinking then
drinking = true
script.Parent.Smoker.Smoke.Enabled = true
wait(5)
script.Parent.Smoker.Smoke.Enabled = false
drinking = false
end
end
function onUnequipped()
if drinking == true then
Humanoid:EquipTool(Tool)
else
if drinking == false then
return end
end
end
drinking = false
script.Parent.Unequipped:connect(onUnequipped)
script.Parent.Activated:connect(onActivated)

4 comments
dang, bro im a dum ass... lol..
Don't swear...
wow, thanks for -rep
you people take this too serious...