Player can't move after teleport

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

cheezburga

Member
Nov 15, 2018
41
6
8
Australia
Hey,

I have this code to teleport player's back to their most recent checkpoint.
Code:
function teleportCheckpoint(p: player):
    teleport {_p} to {%{_p}%::checkpoint}

The function is called here
Code:
on damage:
    if damage cause is void:
        cancel event
        teleportCheckpoint(victim)
and also here
Code:
on right click:
    if player's held item is compass:
        if name of player's held item is "&f&lCheckpoint":
            teleportCheckpoint(player)

When the player right clicks using the compass, they teleport and everything is fine.
However, when the player falls into the void, they teleport but are unable to move at all. They cannot move, jump, or even look around.

Any help with this would be appreciated.
Cheers.
 
I think this is because of your cancel event. It might be causing it to think your still in the void. Meaning you cant move. Try it without the cancel event.
 
Status
Not open for further replies.