Jump to content

Script has a cooldown for no reason (HELP ME)


ProblemChild

Recommended Posts

command /rebirth:
    trigger:
        set metadata tag "rebirthGUI" of player to dropper inventory named "Rebirth"
        set slot 4 of metadata tag "rebirthGUI" of player to totem of undying named "&eRebirth" with lore "&7&oBurn to rise again.", "", "&7Price: &e$%format(10000000*({rebirth::%player's uuid%} ? 1))%", "&cGrants +1x multiplier."
        open metadata tag "rebirthGUI" of player to player

on inventory click:
    if event-inventory = metadata tag "rebirthGUI" of player:
        cancel event
        if index of event-slot = 4:
            if player's balance >= 15000000 * ({rebirth::%player's uuid%} ? 1):
                remove 15000000 * ({rebirth::%player's uuid%} ? 1) from player's balance
                add 1 to {multiplier::%player's uuid%} and {rebirth::%player's uuid%}
                play sound "ui.toast.challenge_complete" for player
                set {generate::%player's uuid%} to 1
                delete {generators::%player's uuid%::*}
                set player's balance to 0
                clear player's inventory
                clear player's enderchest
            else:
                play sound "entity.villager.no"

for some reason, this script has a cooldown so people cant rebirth. the cooldown is ish 10 min but idk how to fix it

i like skript...

 

sometimes.

Link to comment
Share on other sites

try setting the cooldown to like 0.1 seconds or soemthing

if it dosent work try like 1 second or something

im not a pro just trying to tell u something that is possilble

 

                                                                   [DEFAULT] - 02/13/2021 - 10/28/2021

                                                                   [VIP]10/28/2021 - Present

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...