execute as @s at @e[c=1,family=kaminari,type=wesl3y:luffy_damage] run function one_piece/luffy/kaminari
execute as @s at @e[c=1,family=giant_kick,type=wesl3y:luffy_damage] run function one_piece/luffy/giant_kick

#Luffy Gear 5 Transform
camera @s[scores={wg:transform=1}] clear
inputpermission set @s[scores={wg:transform=1}] movement enabled
camera @s[scores={wg:transform=20}] set minecraft:free ease 0.1 linear pos ^1.5^1.5^1.5 rot ~5~125
camera @s[scores={wg:transform=40}] set minecraft:free ease 1.0 linear pos ^3^5^4 rot ~45~150
camera @s[scores={wg:transform=80}] set minecraft:free ease 2.5 linear pos ^2^1.5^1.5 rot ~5~120
camera @s[scores={wg:transform=150}] set minecraft:free ease 2.5 linear pos ^-1^1^1.75 rot ~5~205
camera @s[scores={wg:transform=180}] set minecraft:free ease 2.5 linear pos ^2^1^1.5 rot ~5~120
camera @s[scores={wg:transform=200}] set minecraft:free ease 0.2 linear pos ^-1^0.5^1.75 rot ~5~205
playanimation @s[scores={wg:transform=200..}] animation.luffy_gear5.transform wesl3y
inputpermission set @s[scores={wg:transform=200}] movement disabled
tp @s[scores={wg:transform=1..}] ^^^ ~ 0
scoreboard players remove @s[tag=transform] wg:transform 1