Hey guys. I am working on a game where a different battlefield is loaded every round and players are given tools depending on the battlefield that has been chosen. I have tried to add a folder within each "battlefield" called "tools" and I have added tools that I want the players to be given upon being teleported in.
Here is a concept of what I want to do...
-- This script runs right after players are teleported
local plrs = game.Players:GetChildren()
for i = 1,#plrs do
local num = math.random(1,8)
plrs[i].Character.Head.CFrame = CFrame.new(workspace.Teleports["Part"..num].Position)
plrs[i].Character.Parent = workspace.Ingame
plrs[i].Character.Humanoid.Health = plrs[i].Character.Humanoid.MaxHealth
local tools = curmap.tools:GetChildren()
-- From here...
tools:clone().Parent = plrs.Backpack
-- To here is just an idea of what I want to do.
I am quite new to lua scripting, and i'm not sure how I would go about doing this.
Any pointers or help is much appreciated!

1 comment
clone them into StarterPack not Backpack