# How to make prop look at Player?

**URL:** <https://forums.unrealengine.com/t/how-to-make-prop-look-at-player/818709>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [March 24, 2023, 9:59pm UTC](https://forums.unrealengine.com/t/how-to-make-prop-look-at-player/818709 "2023-03-24T21:59:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Tom.Noonan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tom.Noonan](https://forums.unrealengine.com/u/Tom.Noonan)\
**Post date:** [March 27, 2023, 3:12pm UTC](https://forums.unrealengine.com/t/how-to-make-prop-look-at-player/818709/2 "2023-03-27T15:12:51Z")

</div>

You should be able to use the GetTransform() functions which exist on the `creative_prop` and the player’s `fort_character` and some 3d math to drive a TeleportTo on the prop.

This is a simple script that will continuously rotate a prop to point at the player.

```auto
hello_world_device := class(creative_device):

    @editable MyProp:creative_prop = creative_prop{}

    OnBegin<override>()<suspends>:void=

        loop:
            if (PlayerCharacter := GetPlayspace().GetPlayers()[0].GetFortCharacter[]):

                PropLocation := MyProp.GetTransform().Translation
                PlayerLocation := PlayerCharacter.GetTransform().Translation

                if (LookDirection := (PlayerLocation - PropLocation).MakeUnitVector[]):

                    Yaw := RadiansToDegrees(ArcTan(LookDirection.Y, LookDirection.X))
                    Pitch := RadiansToDegrees(ArcTan(LookDirection.Z, Sqrt((LookDirection.X * LookDirection.X) + (LookDirection.Y * LookDirection.Y))))
                    Roll := 0.0

                    NewRotation := MakeRotationFromYawPitchRollDegrees(Yaw, Pitch, Roll)

                    if:
                        MyProp.TeleportTo[PropLocation, NewRotation]
                        
            Sleep(0.1)
```

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-make-prop-look-at-player/818709)._
