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)

1 comment
All though it didn't fix all of my problems There still some massive problems but I can try to fix'em