local moneyglob = game:GetService("ServerStorage").MoneyGlob
local Debris = game:GetService("Debris")

while(1) do
	wait()
	local newMoneyGlob = moneyglob.clone()
	local randX = math.random(-1000,1000)
	local randZ = math.random(-1000,1000)
	newMoneyGlob.Position = Vector3.new(randX,100,randZ)
	newMoneyGlob.Parent = workspace
	Debris:AddItem(newMoneyGlob,20)
end

1 comment

0

I just realised that in the clone bit i need to have : not .