Roblox - Advanced Weed Blunt System Apr 2026
return HighnessManager Handles UI, input, and visual effects.
local Players = game:GetService("Players") local Debris = game:GetService("Debris") local HighnessManager = {}
local passOutTag = Instance.new("BoolValue") passOutTag.Name = "PassedOut" passOutTag.Parent = char
-- Tool activation local function onToolEquipped(tool) if tool:GetAttribute("BluntType") == "WeedBlunt" then activeBlunt = tool end end Roblox - Advanced Weed Blunt System
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)
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
-- if hitsLeft - 1 == 0, play "roach" effect end) return HighnessManager Handles UI, input, and visual effects
updateHighness.OnClientEvent:Connect(onHighnessUpdate)
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)
-- 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 return HighnessManager Handles UI
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
local humanoid = char:FindFirstChild("Humanoid") if humanoid then humanoid.PlatformStand = true -- ragdoll effect: unanchor limbs or apply velocity end
local hitsLeft = blunt:GetAttribute("HitsLeft") if hitsLeft <= 0 then blunt:Destroy() -- blunt finished return end
function HighnessManager:Init(player) local highness = Instance.new("NumberValue") highness.Name = "Highness" highness.Value = 0 highness.Parent = player