c.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") ~= nil and Debounce == false then
Debounce = true
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
Debounce = true
onTouch(hit)
else
end
wait(0.05)
Debounce = false
end
end)
this lags the game for no reasons the onTouch(hit) function never even fires and it still lags even if i empty the inside of .touched event the hell can i do to remove the lag it drops fps to 30

3 comments
can you type full code?
the problem isnt the code its just this, the function never got fired, even if the .Touched function is empty it keeps to lag, only if theres no touched it will not lag
Maybe potato PC?