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

how would u get this script to put the tools in the starter pack?

local equipped = script.Parent.Parent.Parent.Handler.Equipped
local selected = script.Parent.Parent.Parent.Handler.Selected
local location = script.Parent.Parent.Parent.Handler.Location
local player = game.Players.LocalPlayer
local character = player.Character

script.Parent.MouseButton1Click:Connect(function()
	if equipped.Value == nil or equipped.Value ~= selected.Value then
		character.Humanoid:UnequipTools()
		if location.Value == player.Backpack then
			character.Humanoid:EquipTool(selected.Value)
			equipped.Value = selected.Value
			script.Parent.Text = "Unequip"
		end
	else
		character.Humanoid:UnequipTools()
		equipped.Value = nil
		script.Parent.Text = "Equip"
	end
end)

1 answer

If im honest, i'd recommend using a folder inside the player named "StarterGear" its where tools in "StarterPack" go. I don't believe scripts can move tools into starterpack.

To get this working do something like

for _, plr in pairs(game.Player:GetPlayers()) do
	tool:Clone().Parent = plr:FindFirstChild("StarterGear") -- Tool would be the tool you want players to continuously spawn with.
end

Hope this helps.

1 comment

0

you might also want to check if StarterGear exists first, just in case roblox has a glitch

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