Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why can't my tool clone into the starter pack?

local RS = game.ReplicatedStorage
local Workspace = game.Workspace
local ss = game.ServerStorage

while true do
    wait(1)
    local value = Workspace.Trueorno.Value -- Inserted value here
    print("still going")
    if game.Players.NumPlayers >= 2 then
        if value == false then
            wait(19)
            game.Workspace.Trueorno.Value = true
            wait(1)
                local Dagger = RS.DaggerWood:Clone()
				Dagger.Parent = game.StarterPack
            for i,Player in pairs(game.Players:GetPlayers()) do
                local Dagger = RS.DaggerWood:Clone()
                Dagger.Parent = Player.Backpack
            end
            RS.Map1.Parent = Workspace
            Workspace.Lobby.Parent = RS
        end
    end
    print("no")
end

This is the script that starts the game, and for some reason it all broke after I tried cloning the Dagger into StarterPack. I'm doing this so people cant fight in the lobby, and when the game ends, it takes it out of the starterpack. I'm not sure why this wont work, but if anyone here knows, please tell me. Thanks.

3 comments

0

u can't just clone a tool into starterpack. the tools in starterpack go to the player when the player joins. so the only way to have those tools in all ur characters is to loop through them and add tools in their backpack

0

Basically, clone them into the player's backpack, not StarterPack.

0

I found a way around this, so im just using spawners.

1 answer

Try this:

tool:Clone(). Parent = game:GetService('StarterPack')

If you mean to clone directly in game then put this

local plr = game.Players.LocalPlayer local backpack = plr.Backpack local tool = -- tool location

tool:Clone().Parent = backpack

1 comment

0

I'm not a pro scripter but it's what I use in my games to clone objects and player backpack

This discussion is preserved as it was. New answers, comments, and votes are closed.