hi im trying to make a quick game. its a knock off of the classic game dodge the teapots of doom
my random generator works but not where i want it too
here is the code
local Hardness = 3
local rep = game.ReplicatedStorage
local Kill = game.ServerScriptService.Code
while true do
wait(Hardness)
local X = math.random(1, 342.72)
local Y = math.random(1, 342.72)
local Kill1 = Kill:Clone()
local cloneone = rep.Cup:Clone()
local clonetwo = rep.Cup:Clone()
cloneone.BrickColor = BrickColor.Random()
cloneone.Parent = game.Workspace
Kill1.Parent = cloneone
cloneone.Position = Vector3.new(X, 42.475, Y)
wait(4)
cloneone:Destroy()
end

2 comments
In random, do you mean position or spawn rate?
position