Hi, so I made a script for holding a specific item in your offhand and it gives potion effects. This works in with 1 or 2 people, but when tried on a whole server, there was a ton of lag. Any help?
Please help
Code:
on inventory close:
while player is online:
loop all players:
if player's offhand tool is flint named "&6Test":
remove strength from player
apply strength 1 to player for 5 seconds
wait 5 seconds