Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago
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.

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 HappyTimIsHim 652 — 4y
0
Basically, clone them into the player's backpack, not StarterPack. AntiWorldliness 868 — 4y
0
I found a way around this, so im just using spawners. Trisodin529 89 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

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

0
I'm not a pro scripter but it's what I use in my games to clone objects and player backpack houtfit 0 — 4y
Ad

Answer this question