#Question about teleport interpolation if possible

1 messages · Page 1 of 1 (latest)

earnest tangle
#

So i'm making this skript, and i want to make one of those teleport pads like hypixel. But i can't figure out the correct way to set the teleport interpolation / delay

function startTeleport(p: player, n: number):
    if {_n} = 1:
        set {padcn::%{_p}'s uuid%} to 2 seconds from now
        spawn item display at location of {_p}
        set {_display} to last spawned item display
        set display item of {_display} to stone
        set display interpolation start of {_display} to 1
        set display interpolation delay of {_display} to 200

        make {_p} ride {_display}
        teleport {_display} to location at ({_p}'s z-coordinate, {_p}'s y-coordinate + 50, {_p}'s x-coordinate) in {_p}'s world
        wait 2 seconds
        delete {padcn::%{_p}'s uuid%}
#

Launch pads*

inland bear
#

just use a loop and check if they have moved

earnest tangle
#

Wait my previous message was a little unclear, The teleport part doesn't happen. And when i try the same thing with Teleport Duration it just instantly teleports

inland bear
#

literally just loop 10 times: send "teleporting in %11 - loop-iteration%" wait 1 second teleport

olive turret
#

teleport duration is different from interpolation

#

teleport duration is for teleporting

#

interpolation is for translation, rotation, etc

earnest tangle
inland bear
#

Make them ride something, then send them to the new world when they’ve travelled far enough, ie enter a world guard region or whatever

earnest tangle
#

Yeah i know, but how to make the entity that the player is riding go to a certain location with the same animation like hypixel

olive turret
#

teleporting or velocity

inland bear
#

you could probably shoot a snowball, waitatick , then make the player ride the snowball

small elbow
#

mine is just 8 lines of push player up for more immersive

earnest tangle
earnest tangle
#

Thanks for trying tho 🙂

small elbow
small elbow
# earnest tangle I'll try this

for a like player riding u need to summon e pearl at correct direction & x y etc very information wise then basicly throw it then make it so the player is riding it

inland bear
#

iirc if you just make them ride it, its a bit buggy, but its smoother if you make them ride after a tick