I need the player to get a sword and a frontflip tool when a match starts in the game.
Use this function (make sure you edit the Tools table!).
function GiveTools() local Tools = {} -- put the tools you want to give them here (index them like game.Lighting.Tool1) for i,v in next, game.Players:GetPlayers() -- loop through the players for i2,v2 in next, Tools do --loop through the tools v2:Clone().Parent = v.Backpack -- clone the tool into their backpack end end end
local tools = {"FirstTool", "Second tool"} -- Put the following tools in lighting -- Put your Match starting script here below wait(1) -- change to any number game.Workspace.tools:Clone(game.Workspace.Players.StarterPack)
Untested so might not work. Hope it helped though