Advanced Weed Blunt System: Roblox -
-- Helper: Get or create blunt data from tool local function getBluntData(tool) local hitsLeft = tool:GetAttribute("HitsLeft") if not hitsLeft then tool:SetAttribute("HitsLeft", BluntData.BluntConfig.MaxHits) tool:SetAttribute("IsLit", false) end return tool end
local colorCorrection = Instance.new("ColorCorrectionEffect") colorCorrection.TintColor = Color3.fromRGB(255, 100, 50) colorCorrection.TintIntensity = intensity * 0.4 colorCorrection.Parent = game:GetService("Lighting") colorCorrection.Name = "WeedTint" end
-- if hitsLeft - 1 == 0, play "roach" effect end) Roblox - Advanced Weed Blunt System
local function onToolUnequipped() activeBlunt = nil end
return BluntData Handles highness level and pass-out logic. -- Helper: Get or create blunt data from
BluntData.CraftingRecipe = { Weed = 1, RollingPaper = 1, Lighter = 0, -- optional }
blunt:SetAttribute("HitsLeft", hitsLeft - 1) HighnessManager:AddHighness(player, BluntData.BluntConfig.HighPerHit) RollingPaper = 1
local passOutTag = Instance.new("BoolValue") passOutTag.Name = "PassedOut" passOutTag.Parent = char
local function useBlunt() if not canHit or not activeBlunt then return end canHit = false hitEvent:FireServer(activeBlunt) task.wait(BluntData.BluntConfig.HitCooldown) canHit = true end