How would I make a script that puts the random spawn at the position I want

local AcidRain = Instance.new(“Part”,game.Workspace)
local RandomAcid = math.random(1,413)
local RandomAcid2 = math.random(1,413)
while true do
wait()
–Acid Rain
AcidRain.Size = Vector3.new(0.45, 1, 0.65)
AcidRain.Material = “Neon”
AcidRain.Anchored = false
AcidRain.Position = Vector3.new(RandomAcid,212.55,RandomAcid2)

I want it to spawn random at the position I want but it spawns at the origin

Is code in your script look like this?

All your code should be in a loop as you create new details and new coordinates all the time.
while true do
wait(1) – You can put the number you want
local AcidRain = Instance.new (“Part”, game.Workspace)
local RandomAcid = math.random (1,413)
local RandomAcid2 = math.random (1,413)
AcidRain.Size = Vector3.new(0,45, 1, 0,65)
AcidRain.Material = “Neon”
AcidRain.Anchored = false
AcidRain.Position = Vector3.new(RandomAcid, 212.55, RandomAcid2)
end

Ok but thats not the problem I want to know how to put the random rain at the position I want not just how many studs high I want it

Change the range of random numbers. If you want the rain to spawn all over the map, put the range of x and y: from -254 to 254 (with a default baseplate). If you need some other area, just go into the studio and look for the coordinates of this area, insert the lower coordinate and the larger one into the range.