#I need a code somewhere here that will delete the sword from players backpack when round ends

15 messages · Page 1 of 1 (latest)

proper harness
#

This is my WHOLE code, i deleted the teleporting parts of it

local intermission = 10
local roundLength = 15
amethyst = game.ReplicatedStorage.Swords.AmethystPeriastron
crimson = game.ReplicatedStorage.Swords.CrimsonPeriastron
grimgold = game.ReplicatedStorage.Swords.GrimgoldPeriastron
ivory = game.ReplicatedStorage.Swords.IvoryPeriastron
rainbow = game.ReplicatedStorage.Swords.RainbowPeriastron
swords = {amethyst, crimson, grimgold, ivory}
local inRound = game.ReplicatedStorage.InRound
local status = game.ReplicatedStorage.Status


inRound.Changed:Connect(function()
    if inRound.Value == true then
        for _, plr in pairs(game.Players:GetPlayers()) do
            local char = plr.Character
            
               if char and char:FindFirstChild("HumanoidRootPart") then
                
                
                local sword = swords[math.random(1, #swords)]:Clone()
                sword.Parent = plr.Backpack

                plr.CharacterAdded:Connect(function(char)
                    local sword = swords[math.random(1, #swords)]:Clone()
                    sword.Parent = plr.Backpack
                end)


                

            end
        end
    else
        for _, plr in pairs(game.Players:GetPlayers()) do
            local char = plr.Character
            if char and char:FindFirstChild("HumanoidRootPart") then

            
            end
        end
    end
end)

local function round()
    while true do
        inRound.Value = false
        for i = intermission, 0, -1 do
            status.Value = "Round will start in " .. i .. " seconds"
            wait(1)
        end

        inRound.Value = true

        for i = roundLength, 0, -1 do
            status.Value = "Round will end in " .. i .. " seconds"
            wait(1)
        end
    end
end

spawn(round)
viscid lotusBOT
#

studio** You are now Level 3! **studio

proper harness
#

no no bro i said i deleted some parts so it can fit

weak valley
#

anyways, just loop through the players, check for the sword in the character and in the backpack and then delete all the swords you find

#

easy as pie

proper harness
#

idk that shi😥

weak valley
#

then how did you make this script?

proper harness
#

this server bro

#

and

#

a yt vid

#

please bro

#

@weak valley

dawn bough
#

@proper harness

#

You there