Is there anyway I can change the random to any position I want but the same
Size I want it to spawn around
I don’t want it like this
(RandomRain,232,Random) I want it at the position I want
Is there anyway I can change the random to any position I want but the same
Size I want it to spawn around
I don’t want it like this
(RandomRain,232,Random) I want it at the position I want
I don’t get it. Position doesn’t effect the size of the part.
I’m confused by this question, and like @Healvings said, position does not effect the size of a part.
Do you mean you want it to spawn at a random position out of a selection of specific positions?
i think you mean you want a random position in a certain area if so thats pretty simple just do
local Xmin,Xmax = -50,50
local Ymin,Ymax = -50,50
local randomPosition = Vector3.new(math.random(Xmin,Xmax),232,math.random(Ymin,Ymax))
yes please help thanks
30 characters
This tutorial is an example on what you need.
Basically, it makes a table of Vector3 Positions, then chooses a random position out of the table, and then sets the position of the part to that chosen position. If you’re using models, you can instead use CFrame and Model:SetPrimaryPartCFrame
.
Ok thanks I’m very new at scripting so I don’t know a lot thanks
Btw what is Xmin and Xmax and Ymin and Ymax