#potion

29 messages · Page 1 of 1 (latest)

barren ether
#

local Players = game:GetService("Players")
local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local effects = {
"SpeedBoost",
"JumpBoost",
"HealthRegen",
"DamageBoost",
"DefenseBoost",
"Invisibility",
"Poison",
"Stun",
"FireResistance",
"WaterBreathing",
"NightVision",
"SlowDown",
Haste,
Levitation,
Weakness
}
-- Function to apply a random effect
local function applyRandomEffect()
local randomIndex = math.random(1, #effects)
local chosenEffect = effects[randomIndex]
print("Applying effect:", chosenEffect)

if chosenEffect == "SpeedBoost" then
    character.Humanoid.WalkSpeed = 32  -- Doubles default speed
elseif chosenEffect == "JumpBoost" then
    character.Humanoid.JumpPower = 100
elseif chosenEffect == "HealthRegen" then
    character.Humanoid.Health = math.min(character.Humanoid.Health + 20, character.Humanoid.MaxHealth)
elseif chosenEffect == "DamageBoost" then
    -- Example: Increase damage dealt if you have a combat system
elseif chosenEffect == "Invisibility" then
    for _, part in pairs(character:GetChildren()) do
        if part:IsA("BasePart") then
            part.Transparency = 1
        end
    end
elseif chosenEffect == "Poison" then
    for i = 1, 5 do
        character.Humanoid:TakeDamage(5)  -- 5 damage per tick
        wait(1)
    end
-- Add more effects as needed
end
-- Reset any temporary boosts after 15 seconds
wait(15)
character.Humanoid.WalkSpeed = 16  -- Reset speed to default
character.Humanoid.JumpPower = 50  -- Reset jump power to default
for _, part in pairs(character:GetChildren()) do
    if part:IsA("BasePart") then
        part.Transparency = 0  -- Remove invisibility
    end
end

end
-- Apply a random effect every 15 seconds
while true do
applyRandomEffect()
wait (15)
end

#

my script not working

#

pls help

velvet niche
jaunty moth
#

alr

#

first thing

#

is

#

use task.wait 💀

nimble trout
#

chatgpt ahh code

jaunty moth
nimble trout
#

it 100% is lol

nimble trout
#

can't imagine scrolling this code when he actually implements all the effects

#

elseif for days

jaunty moth
#

i mea

#

i mean

#

its fine

#

could've been worse

nimble trout
#

it's so terrible lol

#

just make the table more useful

#

poison = function()

jaunty moth
#

if you see comments in newbies code it means three thing, tutorial or ai or he's actually trying to understand the code

nimble trout
#

then do like effectstablerandom

#

he's making a battlegrounds this is definitely ai

jaunty moth
jaunty moth
nimble trout
jaunty moth
#

🤷