Am trying to make the vignette zoom in but this error occurs everytime and I have no idea what am wrong rn
portion of the script:
RunService.RenderStepped:Connect(function()
if player:GetAttribute("Stamina") <= 1 then
player:SetAttribute("IsSprinting", false)
player:SetAttribute("CantSprint", true)
TS:Create(hum, TweenInfo.new(RunModule.DecelerationSpeed), {WalkSpeed = RunModule.NormalWalkSpeed}):Play()
if SFXdebounce == false then
Vignette:TweenSize(UDim2.new(1,0,1,0),
Enum.EasingDirection.In,
Enum.EasingStyle.Exponential,
0.5,
true,
false)
local BreathingSFXClone = BreathingSFX:Clone()
SFXdebounce = true
BreathingSFXClone.Parent = hum.Parent
if not BreathingSFXClone.IsPlaying then
BreathingSFXClone:Play()
end
task.wait(RunModule.CantSprintTime)
SFXdebounce = false
player:SetAttribute("CantSprint", false)
BreathingSFXClone:Destroy()
end
end
end)