Roblox - Advanced — Weed Blunt System
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
function HighnessManager:PassOut(player) local char = player.Character if not char or char:FindFirstChild("PassedOut") then return end
local function applyScreenEffect(intensity) -- intensity 0 to 1 local blur = Instance.new("BlurEffect") blur.Size = 4 + (intensity * 12) game:GetService("Lighting"):FindFirstChild("Blur") and game:GetService("Lighting").Blur:Destroy() blur.Parent = game:GetService("Lighting") blur.Name = "Blur" Roblox - Advanced Weed Blunt System
-- 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
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 local function useBlunt() if not canHit or not
local Players = game:GetService("Players") local Debris = game:GetService("Debris") local HighnessManager = {}
function HighnessManager:UpdateClient(player, value) local event = game:GetService("ReplicatedStorage"):FindFirstChild("UpdateHighness") if event then event:FireClient(player, value) end end 0 then highness.Value = math.max(0
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