Ok so this animation I have here, how would I change the position of where the animation is played baced on the players postion? Like I want it to play the animation on the player when the player is near it but make it so its in the same spot as the player?
Why don’t you rotate the tree to face the player when they get within a certain distance from the tree and play the animation when they reach the perfect distance?
you check the distance between the tree and the player by subtracting the tree’s position and the player position then get the length of the difference, if you want to check if a player is near the tree a hundred studs away you check if that length is lower than the hundred studs range length < 100
That’s not what he’s asking. He wants to know how he can dynamically modify the position to which the tree leans towards based on the player’s position.
so whole forest constantly rotates toward player?..
maybe whole approach with the animation is not what needed, probably it’s better to rotate motors using script to make the tree lean in any direction.
why are you so sure his game is a forest? its probably a prop hunt game.
anyways, look in the explorer in the screenshot gng, the tree is a model so you could just use SetPrimaryPartCFrame or whatever its called to rotate the tree model to the nearest player
it doesn’t matter forest or not, i assume, that the movement must be unexpected, so making tree rotate toward player before playing it makes it less sudden and looks awkward.