#💬 ___salvorʹs Feedback

1 messages · Page 1 of 1 (latest)

rancid nebulaBOT
high inlet
#
local x = 1

while x >= 0 do
    wait(0.3)
    
    local Debris = game:GetService("Debris")
    local KBbodyVelocity = Instance.new("BodyVelocity")
    local KillBrick = Instance.new("Part")
    local NewPart = Instance.new("Part")
    local IPartVelocity = Instance.new("BodyVelocity")
    
    -- New Part Characteristics 
    
    NewPart.Parent = game.Workspace 
    NewPart.Name = ("NewPart")
    NewPart.Position = Vector3.new(80, 10, 10)
    NewPart.Anchored = false
    NewPart.CanCollide = true
    NewPart.Shape = "Ball"
    NewPart.Size = Vector3.new(4, 4, 4)
    NewPart.Color = Color3.fromRGB(math.random(0, 255), math.random(0, 255), math.random(0, 255))
    
    Debris:AddItem(NewPart, 5) -- Parts Disappear after 5 seconds
    
    -- Part Velocity 
    
    IPartVelocity.MaxForce = Vector3.new(2000, 100, 2000)  -- High force to make sure it's applied
    IPartVelocity.Velocity = Vector3.new(math.random(-50, 50), math.random(20, 75), math.random(-50, 50))  -- Random direction
    IPartVelocity.Parent = NewPart
    
    if NewPart.Color == Color3.fromRGB(255, 0, 0) then
        local function ExplodeFunction()
            local explosion = Instance.new("Explosion")
            explosion.Position = NewPart.Position
            explosion.BlastRadius = 200
            explosion.Parent = NewPart
            print("The Ultra-Rare Fake KillBrick has KILLED YOU!!!")
        end
    end
    if x % 3 == 0 then
        
        -- KillBrick Characteristics 
        
        KillBrick.Shape = "Ball"
        KillBrick.Name = ("KillBrick")
        KillBrick.Parent = game.Workspace
        KillBrick.Anchored = false
        KillBrick.CanCollide = true
        KillBrick.Position = Vector3.new(80, 10, 10)
        KillBrick.Size = Vector3.new(4, 4, 4)
        KillBrick.BrickColor = BrickColor.new("Really red")
        KillBrick.Material = ("Neon")
        
        Debris:AddItem(KillBrick, 5) -- Parts Disappear after 5 seconds
        
#
        -- KillBrick Velocity

        KBbodyVelocity.MaxForce = Vector3.new(2000, 500, 2000)  -- High force to make sure it's applied
        KBbodyVelocity.Velocity = Vector3.new(math.random(-50, 50), math.random(20, 75), math.random(-50, 50))  -- Random direction
        KBbodyVelocity.Parent = KillBrick
        
        print("Killbrick has been made!")
    end
    
    -- Killbrick Kill Script + Credits
    
    
    
    KillBrick.Touched:Connect(function(contactPart)
        local humanoid = contactPart.Parent:FindFirstChild("Humanoid")
        local player = game.Players:GetPlayerFromCharacter(contactPart.Parent)
        
        if humanoid then
            wait(0.5)
            humanoid.Health = 0
            print("Humanoid died!! what a noob...")
            Debris:AddItem(KillBrick, 0.1)
            
            local leaderstats = player:FindFirstChild("leaderstats")
            if leaderstats then
                local Currency = leaderstats:FindFirstChild("Stupids")

                if Currency then
                    Currency.Value = Currency.Value - 10
                end
            end
        end
            
    end)
    x = x + 1```
#
-- Brick gives player credits
    
    NewPart.Touched:Connect(function(contactPart)
        
        local humanoid = contactPart.Parent:FindFirstChild("Humanoid")
        local player = game.Players:GetPlayerFromCharacter(contactPart.Parent)
        
        if humanoid then
            wait(0.5)
            NewPart.Transparency = 0
            Debris:AddItem(NewPart, 0.1)
            
            local leaderstats = player:FindFirstChild("leaderstats")
            if leaderstats then
                local Currency = leaderstats:FindFirstChild("Stupids")
                
                if Currency then
                    Currency.Value = Currency.Value + 5 
                end
            end
        end
        
    
        
    end)```