Script taking long time to load

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

IsaacGamerMC

New Member
Aug 31, 2020
6
0
1
24
This script below takes 18700ms to load, how can I fix this?


command /gui:
trigger:
if player is in world "arena":
create a new gui with virtual chest inventory with 3 rows named "&5Weapons"
edit gui last gui:
format gui slot 0 and 1 and 2 and 3 and 4 and 5 and 6 and 7 and 8 and 9 and 17 and 19 and 20 and 21 and 23 and 24 and 25 and 26 with white stained glass pane named "&6"
if {weapon_unlock.%player%} is true:
format gui slot 10 with unbreakable iron sword of sharpness 1 named "&5Titan Slayer Staff" with lore "&fItem Ability: Titan's Swipe &e[RIGHT" and "&eCLICK]" and "&5Swipe the ground, dealing 10 damage" and "&5to enemies within a 10 block range." and "&7Mana Cost: 60" and "&9Cooldown: 10 Seconds":
give player unbreakable iron sword of sharpness 1 named "&5Titan Slayer Staff" with lore "&fItem Ability: Titan's Swipe &e[RIGHT" and "&eCLICK]" and "&5Swipe the ground, dealing 10 damage" and "&5to enemies within a 10 block range." and "&7Mana Cost: 60" and "&9Cooldown: 10 Seconds"
else:
format gui slot 10 with unbreakable barrier of sharpness 1 named "&5Titan Slayer Staff" with lore "&fItem Ability: Titan's Swipe &e[RIGHT" and "&eCLICK]" and "" and "&a&o???":
send "&cYou do not own this item!" to player
format gui slot 22 with barrier named "&6Close GUI" with lore "&fCloses this menu!":
close player's inventory
open the last created gui to player
else:
send "&cYou cannot do this here!" to player
 
Status
Not open for further replies.