Code:
I make it so there are 20 models but they spawn all in one pos
Code:
I make it so there are 20 models but they spawn all in one pos
NewBomb.Base.CFrame = CFrame.new(BombPos)
it doenst appear cause i have a problem cause the parts are supposed to spawn in a cylinder which complicates stuff cause i only know how to spawn stuff in a Part
You cannot assign position to CFrame.
Replace your code accordingly.
NewBomb.Base.Position = BombPos
Also, I recommend setting the parent of the bomb after setting the position if you are to do this method.
The problem here is I am trying to spawn parts in a cirlce not in a part
The current code should exactly the same except for the CFrame.new() then.
That is untrue, you can in fact set a position value to a CFrame
ik but it doesnt work cause for some reason it spawns every part in the same pos
Try using the same code, but with Model:SetPrimaryPartCFrame(CFrame)
instead. This might solve your problem.
how could I spawn parts in a cylinder? like inside a cylinder?
There’s a few functions to workspace
you can use for that.
can you please show me cause i am stuck on this
ur just showing me documentation about the workspace but i need help positioning objects in a certain area
You should look into the object browser as I cannot find the functions to workspace
in the documentation. Oh well, typical Roblox.
I know workspace does have some functions to be able to find parts in a cylinder or something like that.
Are you saying you wish to spawn models in a ring around a point?
If so you can make use of sin/cosine math functions
If you’d like more info then I’ll give it but i may not be able to give full detail till tomorrow
but it cannot detect parts on the edge only inside
Can you elaborate some more? You just said you want to spawn parts in the cylinder, which means inside.