- 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

task.wait(BluntData.BluntConfig.PassOutDuration)

if char and char.Parent then humanoid.PlatformStand = false passOutTag:Destroy() -- Reset highness to 30% local highness = player:FindFirstChild("Highness") if highness then highness.Value = 30 end self:UpdateClient(player, 30) end end Roblox - Advanced Weed Blunt System

function HighnessManager:UpdateClient(player, value) local event = game:GetService("ReplicatedStorage"):FindFirstChild("UpdateHighness") if event then event:FireClient(player, value) end end

-- if hitsLeft - 1 == 0, play "roach" effect end) -- Helper: Get or create blunt data from

hitEvent.OnServerEvent:Connect(function(player, bluntTool) if not bluntTool or not bluntTool.Parent == player.Character then return end local blunt = getBluntData(bluntTool) if not blunt:GetAttribute("IsLit") then return end

local activeBlunt = nil -- current blunt tool local canHit = true 30) end end function HighnessManager:UpdateClient(player

local humanoid = char:FindFirstChild("Humanoid") if humanoid then humanoid.PlatformStand = true -- ragdoll effect: unanchor limbs or apply velocity end