So i got the cloneing function to work but it dosent spawn at the character's torso. Anyone knows how to do that?
Script:
function SpawnBoxes(tab)
for _,v in pairs(tab) do
local BoxOfChoise = v.Box.Value
if v.Character:findFirstChild(BoxOfChoise) == nil then
game.ServerStorage.Boxes:FindFirstChild(BoxOfChoise):Clone().Parent = v.Character
end
end
end
i want it to spawn a box to every player that is in the game not just one selected player

4 comments
Are the boxes models?
yes
You are trying to move boxes to the position of your character's torso, correct?
yes