BluntData.CraftingRecipe = { Weed = 1, RollingPaper = 1, Lighter = 0, -- optional }
local hitsLeft = blunt:GetAttribute("HitsLeft") if hitsLeft <= 0 then blunt:Destroy() -- blunt finished return end Roblox - Advanced Weed Blunt System
function HighnessManager:Init(player) local highness = Instance.new("NumberValue") highness.Name = "Highness" highness.Value = 0 highness.Parent = player BluntData
blunt:SetAttribute("HitsLeft", hitsLeft - 1) HighnessManager:AddHighness(player, BluntData.BluntConfig.HighPerHit) BluntData.CraftingRecipe = { Weed = 1
function HighnessManager:AddHighness(player, amount) local highness = player:FindFirstChild("Highness") if not highness then return end highness.Value = math.min(BluntData.BluntConfig.HighnessMax, highness.Value + amount) self:UpdateClient(player, highness.Value)
-- Passive decay while player.Parent do task.wait(1) if highness.Value > 0 then highness.Value = math.max(0, highness.Value - BluntData.BluntConfig.DecayRate) self:UpdateClient(player, highness.Value) end end end