Weed Blunt System | Roblox - Advanced

lightEvent.OnServerEvent:Connect(function(player, bluntTool) if not bluntTool or not bluntTool.Parent == player.Character then return end local blunt = getBluntData(bluntTool) if blunt:GetAttribute("IsLit") then return end blunt:SetAttribute("IsLit", true) -- optional: add fire particle effect end)

-- 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

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 Roblox - Advanced Weed Blunt System

updateHighness.OnClientEvent:Connect(onHighnessUpdate)

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) lightEvent

return BluntData Handles highness level and pass-out logic.

function HighnessManager:PassOut(player) local char = player.Character if not char or char:FindFirstChild("PassedOut") then return end 0 then highness.Value = math.max(0

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

task.wait(BluntData.BluntConfig.PassOutDuration)

local passOutTag = Instance.new("BoolValue") passOutTag.Name = "PassedOut" passOutTag.Parent = char

local UserInputService = game:GetService("UserInputService") local RunService = game:GetService("RunService") local ReplicatedStorage = game:GetService("ReplicatedStorage") local lightEvent = ReplicatedStorage:FindFirstChild("LightBluntEvent") local hitEvent = ReplicatedStorage:FindFirstChild("TakeHitEvent") local updateHighness = ReplicatedStorage:FindFirstChild("UpdateHighness")