local SpawnedGuns = game.Workspace.Gunspawned local gunSpawns = game.Workspace.GunSpawns:GetChildren() local gunsToSpawn = game.ServerStorage.Guns:GetChildren() local CloneGuns = gunsToSpawn:Clone() CloneGuns.Parent = SpawnedGuns CloneGun.Position = math.Random("gunSpawns").Position --But I don't know whats wrong with this peace of code how do I fix it?
Your ("gunSpawns") should be
math.Random[gunSpawns]Position -- Do not include the quotations.