Comment on page
Telepearled
Fires when a Player uses a telepearl.
-- When a player uses a telepearl, give them the Decay status effect
Events.Telepearled(function(event)
local entity = event.player:getEntity()
if (entity == nil) then
return
end
StatusEffectService.giveEffect(entity, StatusEffectType.DECAY)
end)
The player that threw the telepearl
The position where the player threw the telepearl
The position where the telepearl landed (where the player will teleport to)
Last modified 4mo ago