how can i clone a part on Mesh’s position and ignoring the circle arena outside red line area
you can either make multiple parts wich will dictate where the clones can spawn. And then the clones position will be based of the parts size and position using cframe. Or you could teleport it to a random location and check if its inside the area or touching the mesh
how do i manage to do random pose on using cframe, part size? dy have any example scr
local part = Instance.new("Part",workspace)
local SpawnArea = workspace.Spawnarea
local size = SpawnArea.Size
part.CFrame = SpawnArea.CFrame
local x,z = math.random(-size.X/2, size.X/2), math.random(-size.Z/2,size.Z/2)
part.CFrame = part.CFrame * CFrame.new(x,0,z)
i would personally have a bunch of these and then just pick a random, and then run this code
mine not working, how do i clone instead a part its a model
bcz it gave me an error CFrame is not a valid member of Model “Workspace…Model”
make one of the parts inside if the model the primarypart, and change the cframe of the primaryart. You can set the primary part inside the porperties in the model
thx but its still not working
i meant that you could have multiple parts in the correct places where you only have to get a random one with math.randim