In order to recreate the jump-attack from the Sonic franchise (preferably the Classic era), I had thought of creating a Hitbox part whilst the player is an aerial state. Here’s some semi-pseudocode to get an idea of my original thought process. whilst programming.
Humanoid.FreeFalling:Connect(function(ACTIVE)
if ACTIVE then
local PART = Instance.new("Part")
PART.Touched:Connect(function(HIT)
if HIT.Parent:FindFirstChild("Humanoid") then
local EM_HUMANOID = HIT.Parent.Humanoid
EM_HUMANOID:TakeDamage(100)
end
end)
else
PART:Destroy()
end
end)
I’m not sure if I can really explain what the issue is since even I am confused by the footage. It seems that whilst freefalling, the player gets anchored for a bit and then teleports back to the baseplate.
Here is a file of the current workspace… Jump_Attack.rbxl (101.0 KB)