Title pretty much explains it all. I have a script that summons an enemy on top of a red brick, but i cant get the enemy to face the same direction that the red part is facing. How would i do this?
1 Like
In the model, you would have to set a basepart to be the PrimaryPart of the model, this allows you to CFrame the model from that basepart.
Then in a script you would set the CFrame of the model, using SetPrimaryPartCFrame.
Here is an example of how you would script that:
game.Workspace.TheModel:SetPrimaryPartCFrame(game.Workspace.TheBlock.CFrame)
----You would have to reference 'TheModel' to the model you want want to CFrame
----Then you would have to reference 'TheBlock' to the block that you want the model to copy its direction.
3 Likes
Wow, that was a lot simpler than i thought it would be, Thanks!
1 Like