--SKP_13.Brightness = 0



SKP_12.Saturation = 0

SKP_12.Contrast = 0

SKP_14.Size = 0

SKP_12.Saturation = 0

SKP_12.Contrast = 0

SKP_15.Variaveis.Dor.Value = 0

if SKP_19 == true then
	 Tween = SKP_10:Create(SKP_13,TweenInfo.new(game.Players.RespawnTime/1.25,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,0,false,0),{Brightness = 0, Contrast = 0,TintColor = Color3.new(0,0,0)}):Play()
	end	
end)


local SKP_25 = script.Parent.Parent.Humanoid
local SKP_26 = game.ReplicatedStorage.ACS_Engine.Eventos.MedSys.Collapse

function onChanged()
SKP_26:FireServer()
if (SKP_17.Value <= 3500) or (SKP_18.Value >= 200)  or (SKP_16.Value == true) then
	SKP_6:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack,false)
	SKP_25:UnequipTools()
elseif (SKP_17.Value > 3500) and (SKP_18.Value < 200) and (SKP_16.Value == false) and SKP_15.Stances.Rendido.Value == false then -- YAY A MEDIC ARRIVED! =D
	SKP_6:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack,true)	
end
end

onChanged()

SKP_17.Changed:Connect(onChanged)
SKP_18.Changed:Connect(onChanged)
SKP_16.Changed:Connect(onChanged)

SKP_15.Stances.Rendido.Changed:Connect(function(Valor)
if Valor == true then
SKP_25:UnequipTools()
SKP_6:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack,false)
else
SKP_6:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack,true)
end
end)

SKP_1.Suppression.OnClientEvent:Connect(function(Mode,Intensity,Tempo)
	if SKP_00.EnableStatusUI and SKP_2.PlayerGui:FindFirstChild("StatusUI")~= nil then
		if Mode == 1 then
			--local SKP_22 = script.FX.Vinheta:clone()
			--SKP_22.Parent = SKP_2.PlayerGui.StatusUI.Supressao
			--SKP_22.ImageTransparency = 1

			SKP_10:Create(SKP_12,TweenInfo.new(.25 ,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,0,false,0),{Contrast = 1}):Play()

			delay(.25,function()
			SKP_10:Create(SKP_12,TweenInfo.new(3 ,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,0,false,0),{Contrast = 0}):Play()
			--SKP_11:AddItem(SKP_22, Tempo)
			end)
		else
			local SKP_22 = script.FX.Dirty:clone()
			SKP_22.Parent = SKP_2.PlayerGui.StatusUI.Supressao
			SKP_22.ImageTransparency = 0
			SKP_22.BackgroundTransparency = (Intensity - 1) * -1

			SKP_10:Create(SKP_22,TweenInfo.new(0.25 ,Enum.EasingStyle.Linear,Enum.EasingDirection.In,0,false,0),{ImageTransparency = 0}):Play()
			SKP_10:Create(SKP_22,TweenInfo.new(Tempo/2 ,Enum.EasingStyle.Elastic,Enum.EasingDirection.In,0,false,0),{BackgroundTransparency = 1}):Play()


			delay(Tempo/2,function()
			SKP_10:Create(SKP_22,TweenInfo.new(Tempo ,Enum.EasingStyle.Sine,Enum.EasingDirection.In,0,false,0),{ImageTransparency = 1}):Play()
			SKP_11:AddItem(SKP_22, Tempo)
			end)
		end
	end
end)
local RS = game:GetService("RunService")
RS.RenderStepped:connect(function(Update)
	if Morto then

		SKP_2.Character:FindFirstChild("Right Arm").LocalTransparencyModifier = 0

		SKP_2.Character:FindFirstChild("Left Arm").LocalTransparencyModifier = 0
		
		SKP_2.Character:FindFirstChild("Right Leg").LocalTransparencyModifier = 0

		SKP_2.Character:FindFirstChild("Left Leg").LocalTransparencyModifier = 0

		SKP_2.Character:FindFirstChild("Torso").LocalTransparencyModifier = 0	
		
		game.Workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
		game.Workspace.CurrentCamera.CFrame = SKP_15.Parent:WaitForChild('Head').CFrame
	end
end)

while true do
		SKP_10:Create(SKP_14,TweenInfo.new(3,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,0,false,0),{Size = 0}):Play()
		wait(3)
		SKP_10:Create(SKP_14,TweenInfo.new(2,Enum.EasingStyle.Elastic,Enum.EasingDirection.InOut,0,false,0),{Size = (SKP_15.Variaveis.Dor.Value/SKP_15.Variaveis.Dor.MaxValue) * 25}):Play()
		wait(3)
	end