In the output, it says that it is calling a nill value and an attempt to connect failed not a function And is causing extreme unreasonable lag
local timeyouahavebeenrunning = 0 RunService.RenderStepped:Connect(function() local stamina = 6 print(timeyouahavebeenrunning) if Userinputservice:IsKeyDown(Enum.KeyCode.LeftShift) and humanoid.MoveDirection.Magnitude > 0 and Debounce == true then local Debounce = true if timeyouahavebeenrunning == 6 then local Debounce = false end RunService.RenderStepped:Connect(RunningEffect()) humanoid.WalkSpeed = 23 camera.FieldOfView = 80 while Debounce == true do wait(1) timeyouahavebeenrunning = timeyouahavebeenrunning + 1 end else local Debouce = false if timeyouahavebeenrunning == 0 then local Debounce = true end RunService.RenderStepped:Connect(updateBobbleEffect()) humanoid.WalkSpeed = 16 camera.FieldOfView = 70 while Debounce == false do wait(1) timeyouahavebeenrunning = timeyouahavebeenrunning - 1 end end end)
When connecting functions you exclude the parenthesis that come with the function name. Instead of ":Connect(RunningEffect())" you would say ":Connect(RunningEffect)". If you delete the set of parenthesis from right after the names of your functions you should be fine :).