Skript used to work but doesn't now

  • 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.

DerpoDrago

Member
Jan 15, 2020
10
0
0
22
So I asked down here for help with a skript, anitd someone helped (surprise surprise). It worked until today when it didn't. There are no errors, i'm on v 2.4, like I was when it worked.
Code:
on right click with ender pearl:
    set {a} to player's held item
    if {a}'s name is "&a&lZ &r&aTime Pearl":
        while {babyoh} is not true:
            set {babyoh} to true
            set {currentpos} to player's location
            loop 120 times:
                if player's location is not {currentpos}:
                    wait 5 seconds
                    teleport player to {currentpos}
            wait 10 seconds
            set {babyoh} to false
[doublepost=1580260157,1580258879][/doublepost]All it does is teleport the player back a block or so
 
Did you get any new scripts/addons? You might've installed a skript that interferes with the variables.
 
oh yes i did. I added SK-NBeeT and SkRecipe. Which one do you think might have caused this?
 
Hmm, I don't think those addons would interfere with that skript. Maybe that skript isn't working because you used global variables and you have two overlapping variables, you also aren't using user-specific variables..
[doublepost=1580335041,1580334927][/doublepost]Try this modified skript:

Code:
on right click with ender pearl:
    set {_tool.%player%} to player's held item
    if {_tool.%player%}'s name is "&a&lZ &r&aTime Pearl":
        while {_babyoh.%player%} is not true:
            set {_babyoh.%player%} to true
            set {_currentpos.%player%} to player's location
            loop 120 times:
                if player's location is not {_currentpos.%player%}:
                    wait 5 seconds
                    teleport player to {_currentpos.%player%}
            wait 10 seconds
            set {_babyoh.%player%} to false
 
I tried using this skript, but it didn't work. I also forgot to say I also had the Misk addon and skUniversal, if that did something
 
Status
Not open for further replies.