So , when ever this function got called it will spawn a random Item
local function SpawnItems()
local Items = game.ReplicatedFirst.CrateItems:GetChildren()
local RandomItem = Items[math.random(1, #Items)]
print(RandomItem.Name.." Chosen.")
RandomItem:Clone().Parent = game.Workspace
print(RandomItem.Name.." Spawned.")
RandomItem.Main.CFrame = CFrame.new(TargetLocation)
print(RandomItem.Name.." Moved.")
end
using
RandomItem.Main.CFrame = CFrame.new(TargetLocation)
doesn't make the 'tool' be at a certain locaton.
How do I change a 'tool' location?

1 comment
you need to set spawn points around the map. Use math.random(1, #spawnpoints) and set the tool's CFrame to the chosen spawn point