I did not try this script yet Did this script going to work whenever players spawn or respawn?
local RS = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local Folder = rp:WaitForChild("Folder")
local function onCharacterAdded(character)
local Tools = Folder:GetChildren()
local ToolsTable = Tools
local chosenTools = {}
repeat
local selectedIndex = math.random(1, #ToolsTable)
table.insert(chosenTools, ToolsTable[selectedIndex])
table.remove(ToolsTable, selectedIndex)
until #chosenTools >= 3
-- Numbers of tools going to give
local plr = Players:FindFirstChild(character.Name)
for i = 0, 3, 1 do
local ToolsCloned = Folder:FindFirstChild(chosenTools[i]):Clone()
ToolsCloned.Parent = plr.Backpack
end
end
Players.LocalPlayer.CharacterAdded:Connect(onCharacterAdded)

5 comments
Is it a Local script or a Server Script?
it is server script. I edit a little bit. please check it back
Well, if you test your script, it will error, possibly saying, Attempt to index nil by CharacterAdded
so how to fix this?
Please ensure you've given us sufficient information to answer your question. This will not be answered as the community does not know what you're are trying to achieve and will hence in a disparity. Always test and make sure you've inserted and implemented a script, with your code.