#Getting the player's position returns a random one instead
1 messages · Page 1 of 1 (latest)
are you moving your character when you test the game?
no
im getting teleported around by trying to teleport the character to its current pos
i fixed that
oh ok
i had it set as other things before the screenshot to see if they would fix it
is it like getting the position during the process of deleting and cloning the parts?
cause it seems to actually teleport me somewhere inbetween where the player currently is and where the model's part's positions are
maybe that is the problem
more visiable here
try to set the model position to the player position before the morph
Put the code to find the player position at the top of the function, that may fix this. Not sure what's causing the teleportation
Also you can create the remote event without using code.
your issue here is that sometimes it adds up the position
i tried this already
why does it do that
well thats for you to figure out tbh, check if the currentpos of the player is overlapping with the other position
or maybe just put the position of the player to the object
boom
im still having issue with this
oh
wait
i know what its doing
it doesnt know which one is the character
its actingl ike this
i might just be like
stupid
how do i make currentpos not change
or like
how do i make it what it is when i create it
instead of it being what it is when its called
i tried making a last pos but that doesnt work
even in a defer, the new player model seems to happen before the charpos can be done?
do you have more than one script doing the morph?
i have an idea
instead of you destroying the player's children
you just destroy the entire character and make the player character the one you want it to morph
like player.Character = morphcharacter
it worked for me in a game i was making
late response but this does help