Why does my code work without print()?

im actually so confused

v.Parent.Torso.AssemblyLinearVelocity = (Explosion.OuterShell.Position - v.Parent.HumanoidRootPart.Position).Unit *- config.SplashPressure
print(Player.Character)
task.delay(0.01 * config.SplashPressure / 2,function()
player.Character:SetAttribute(“IsRagdoll”, false)
end)
–code of the player

robloxapp-20250222-0334352.wmv (1.2 MB)
–code with print, working as intended
robloxapp-20250222-0334583.wmv (1.2 MB)
–code just not working
please help me ive been working for ages and this just hurts

Nvm just solved it, i can replace print with wait

use task.wait() though not normal wait() since thats depreciated

good point,i will go and change that now

function wait() is not deprecated

yes it is
image