Hello. I was playing around with Roblox Studio and wanted to make a button that would spawn Sonic randomly. I noticed that the sonics were still inside the workspace which could make my place lag. I tried to make a script that destroys Sonic after a certain Z position. This is my script: 
local button = script.Parent
local xRad = math.random(-115,-30)
local zRad = math.random(-30,20)

button.Activated:Connect(function()
	local sonic = game.Lighting.sonic:Clone()
	sonic.Parent = game.Workspace
	sonic.Anchored = false
	sonic.CanCollide = false
	sonic.Position = Vector3.new(xRad,30,zRad)	
	if sonic.Position.Y == -50 then
		sonic:Destroy()
	end
end)
Also, the sonics are spawning in the same place. That place is random but I would like to have all the Sonics spawn differently. I am not getting any error outputs either.