local ff = script.Parent local db = true ff.Touched:connect(function(hit)) -- There needed to be an extra ')'. end if hit.Parent:findFirstChild("Humanoid") and db then db = false for loop = 1, 100 do ff.CFrame = ff.CFrame + Vector3.new(0,0,1) wait(.1) db = true end
The Output Window says
Workspace.FF.Script:5: ')' expected (to close '(' at line 3) near 'if'
local ff = script.Parent local db = true ff.Touched:connect(function(hit) if hit.Parent:findFirstChild("Humanoid") and db then db = false for loop = 1, 100 do ff.CFrame = ff.CFrame + Vector3.new(0,0,1) wait(.1) db = true end end)
There you go, you didn't have a parenthesis and you had an end right at the beginning.