On Portal Enter, teleporting forever

  • 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 comminuty!

    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.

TheWolfiiii

Member
Mar 10, 2020
15
0
1
23
Hello! I'm making a script where if I enter a portal in a specific world, I teleport to the variable "spawn". The problem is that when I enter the portal, I teleport forever. I don't stop teleporting. I also tried changing it to send messages, and it send messages as long as I was in the portal. Could anyone help me? Here's the code:
Code:
On Portal Enter:
    if player is in "Default"
        teleport player to {spawn}
 
Hello! I'm making a script where if I enter a portal in a specific world, I teleport to the variable "spawn". The problem is that when I enter the portal, I teleport forever. I don't stop teleporting. I also tried changing it to send messages, and it send messages as long as I was in the portal. Could anyone help me? Here's the code:
Code:
On Portal Enter:
    if player is in "Default"
        teleport player to {spawn}
what is {spawn} set to?
[doublepost=1583934646,1583934541][/doublepost]
what is {spawn} set to?
also try:


Code:
On Portal Enter:
    if player is in world "Default":
        teleport player to {spawn}
 
what is {spawn} set to?
[doublepost=1583934646,1583934541][/doublepost]
also try:


Code:
On Portal Enter:
    if player is in world "Default":
        teleport player to {spawn}
Spawn is set to a specific coordinates. I tried your code and it still teleported me forever
 
Spawn is set to a specific coordinates. I tried your code and it still teleported me forever

Whats the world name the portal is in?
What is the world name of the location in var {spawn}?
The location inside {spawn} isn't the location of the portal?
[doublepost=1583937964,1583937567][/doublepost]
Spawn is set to a specific coordinates. I tried your code and it still teleported me forever
Also just realised can u see what happens in survival mode ipv creativemode
 
Whats the world name the portal is in?
What is the world name of the location in var {spawn}?
The location inside {spawn} isn't the location of the portal?
[doublepost=1583937964,1583937567][/doublepost]
Also just realised can u see what happens in survival mode ipv creativemode
The world of the portal is "default"
The location of var is also "default"
and no.
 
Status
Not open for further replies.