my skript doesnt hide the player from mobs
is there any way i could hide the player from all mobs but still let other players see the player visiting?
command /visit <player>:
aliases: /v, /goto
trigger:
if player-arg is online:
if player-arg is "%player%":
send "&0[&bDropoff&0] &fYou cant visit yourself!" to player
stop
else:
send "&0[&bDropoff&0] &fSending you to &6%arg-1%'s&f island!" to player
wait 5 ticks
set {visit.%player%} to true
hide player from mobs
teleport player to location(0.50, 66.2, 0.50, world("sb%arg-1%"))
wait 5 ticks
execute console command "gma %player%"
wait 5 ticks
send "&0[&bDropoff&0] &6%player% is visiting ur island!" to arg-1
wait 3 ticks
execute console command "/fly %player% enable"