Code must be in triggers

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

ementen

Member
Jun 25, 2021
2
0
1
Every time i try to load my script it says code must be in triggers or something like that
Code:
on inventory click:
if inventory name of player's current inventory is "&8Games":
if clicked slot is 48:
make player run command "lobbyyy" as op (------ This one doesnt work
 
You shouldn't use as op as it is actually giving the player OP then taking it away, you're way safer giving them the permission then taking it away
 
Status
Not open for further replies.