My code:
local player = game.Players.LocalPlayer -- Refer to the Player
local tool = game.ReplicatedStorage.Sword -- Refer to the Tool
script.Parent.MouseButton1Down:connect(function() -- When it's clicked
if player:FindFirstChild("Backpack") then -- Not sure why I added this
tool:Clone().Parent = player.Backpack -- Clone the tool to their inventory
end -- End the if function
end) -- End the MouseButton1Down function
How would I go about editing this code, to make it so that in the ReplicatedStorage, it will give more than just one tool. Like two sowrds instead of one? Or, if using guns, An AK47 and Pistol, on click of the Text Gui?

3 comments
Can you format your code into a code block
I did.
doesnt look like it to me. Though it could just be broken on firefox