Fairly new to scripting, been wondering how to make a model and/or Part teleport above the players torso.
I have tried CFraming the object to the camera, but above it. Im just wondering how to get it to go to a certain player.
Here's what you probably need:
If you're using a model, use this code:
1 | local model = PutModelLocationHere |
2 | local player = game.Players [ "PlayerNameHere" ] |
3 |
4 | model:MoveTo(player.Character.Torso.Position) |
If you're using a part, use this:
1 | local part = PutPartLocationHere |
2 | local player = game.Players [ "PlayerNameHere" ] |
3 |
4 | part.Position = player.Character.Torso.Position |
Should all work in theory, if you have any troubles be sure to comment!