How to make I-frames

I am trying to make a dodge roll system in my game that gives temporary invincibility, but I have no Idea where to start.

1 Like

Well as a start you could give the player a forcefield and make it invisible so that they are unavailable to take damage at all.

2 Likes

if u have a dodge roll system or make one, add this to it:

local ff = Instance.new("ForceField")
ff.Parent = player.Character
ff.Visible = false
ff.Name = "RollFF"

task.wait(1) -- u have to edit this number to what u need

ff:Destroy()
1 Like

im pretty sure forcefields stop allowing the user to take damage if they take damage by humanoid:TakeDamage(50)