Universal Script 📌
618 Views
39 Executions

rainbow disco *

Universal Script 📌
xbnth609
xbnth609First script
9 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

a silly script to have fun, when you click on the left mouse button, neon balls appear. This is my first script

View Raw
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()

-- Функция для создания и запуска огненного шара
local function throwFireball()
    local fireball = Instance.new("Part")
    fireball.Size = Vector3.new(1, 1, 1)
    fireball.Shape = Enum.PartType.Ball
    fireball.Material = Enum.Material.Neon
    fireball.Position = player.Character.Head.Position + (player.Character.Head.CFrame.LookVector * 3)
    fireball.Anchored = false
    fireball.CanCollide = true
    fireball.Parent = workspace

    -- Функция для создания радужного эффекта
    local function updateColor()
        while fireball do
            for i = 0, 1, 0.1 do
                local color = Color3.fromHSV(i, 1, 1) -- Генерация радужного цвета
                fireball.BrickColor = BrickColor.new(color)
                wait(0.1) -- Задержка между изменениями цвета
            end
        end
    end

    -- Запускаем обновление цвета в отдельном потоке
    coroutine.wrap(updateColor)()

    -- Добавляем физику к огненному шару
    local bodyVelocity = Instance.new("BodyVelocity")
    bodyVelocity.Velocity = (mouse.Hit.p - fireball.Position).unit * 50 -- скорость полета
    bodyVelocity.MaxForce = Vector3.new(4000, 4000, 4000)
    bodyVelocity.Parent = fireball

    -- Удаляем огненный шар через 5 секунд
    game:GetService("Debris"):AddItem(fireball, 5)
end

-- Привязываем функцию к событию нажатия клавиши
mouse.Button1Down:Connect(throwFireball)


Comments

9
Log in to join the conversation. Login
sdvgshn1k's profile picture
sdvgshn1k9 months ago

я знаю что ты русский и что этот скрипт написал ИИ))

3
xbnth609's profile picture
xbnth609Uploader9 months ago

@sdvgshn1k не скрываю

1
sdvgshn1k's profile picture
sdvgshn1k9 months ago

@xbnth609 а я и претензий не имею, я также через иишку пишу скрипты из за незнания языков программирования, но очень хорошо разбираюсь в логике работы всего подобного, поэтому мне намного легче, главное, чтобы ии не подвел)

2
perc40's profile picture
perc409 months ago

what use does this have

1
xbnth609's profile picture
xbnth609Uploader9 months ago

@perc40 •ᴗ• senselessly

1
Modkakk's profile picture
Modkakk9 months ago

Stealer

-2
2kr3kn's profile picture
2kr3kn9 months ago

@Modkakk idiot, this open source

3
xbnth609's profile picture
xbnth609Uploader9 months ago

@Modkakk 🗿

2

[deleted]

Replying to a deleted comment
Joyful_PizzaPartyl's profile picture
Joyful_PizzaPartyl9 months ago

@saidausaija SHUT THE BUCKLE UP

2