Hey, so I made a script that spawns trees in a random position but to make the trees seem more "Realistic" I want to change the rotation of which they spawn since they all look the same. I've been looking for about 2 hours on how to do this, and I've tried everything but it just seems to stop the trees from spawning without an error. If somebody could give me an answer it would be greatly appreciated.
✓ ANSWER ACCEPTED
How do I rotate a cloned model?
1 answer
✓ Accepted answer
You could use SetPrimaryPartCFrame after you set the PrimaryPart of the tree. Then you could multiply the CFrame by a random angle.
Tree:SetPrimaryPartCFrame(Tree:GetPrimaryPartCFrame() * CFrame.Angles(0, math.rad(math.random(359)), 0))
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
^^^