[REPOST] Client Event not doing what its told

I made a client script that tweens and changes the blur, brightness and color correction.

I’ve tweened those properties for my death effect and it works, but when I try to convert the script in a client event, it just does the prints but doesn’t tween or change anything on the local camera.

Havent found solutions anywhere, im guessing its a small mistake

Client
`local event = game:GetService("ReplicatedStorage").TweenPuddle
--
Players = game:GetService("Players")
TweenService = game:GetService("TweenService")
player = Players.LocalPlayer
Camera = workspace.CurrentCamera
--
local blurEffect = Instance.new("BlurEffect",Camera)
local colorCorrection = Instance.new("ColorCorrectionEffect",Camera)
--
colorCorrection.Enabled = false
blurEffect.Size = 0; blurEffect.Enabled = false
--
EFFECT_TIME = Players.RespawnTime
BLUR_SIZE = 50
CORRECTION_COLOR = Color3.fromRGB(138, 0, 0)
--
local BlurEffectInfo = TweenInfo.new(
	EFFECT_TIME,
	Enum.EasingStyle.Linear,
	Enum.EasingDirection.Out,
	0,
	false,
	0)
--
BlurTween = TweenService:Create(blurEffect, BlurEffectInfo, {Size = BLUR_SIZE})
--
--
local CorrectionEffectInfo = TweenInfo.new(
	5,
	Enum.EasingStyle.Linear,
	Enum.EasingDirection.Out,
	0,
	false,
	0)
--
ColorTween = TweenService:Create(colorCorrection, CorrectionEffectInfo, {TintColor = CORRECTION_COLOR})
--
local BrightnessEffectInfo = TweenInfo.new(
	EFFECT_TIME,
	Enum.EasingStyle.Linear,
	Enum.EasingDirection.Out,
	0,
	false,
	0)
--
BrightnessTween = TweenService:Create(colorCorrection, BrightnessEffectInfo, {Brightness = -1})
--
event.OnClientEvent:Connect(function()
	print("Fired Client Event")
	local function setupTweens(character)
		print("ClientEvent inside the function")
		local humanoid = character:WaitForChild("Humanoid")
		blurEffect.Size = 0
		colorCorrection.TintColor = Color3.fromRGB(255, 255, 255)
		colorCorrection.Brightness = 0
		if BrightnessTween and BlurTween and ColorTween == Enum.PlaybackState.Playing then
			BrightnessTween:Cancel()
			ColorTween:Cancel()
			BlurTween:Cancel()
		end

		colorCorrection.Enabled = false
		blurEffect.Size = 0
		blurEffect.Enabled = false
	end
	
	blurEffect.Enabled = true
	colorCorrection.Enabled = true
	ColorTween:Play()
	BrightnessTween:Play()
	BlurTween:Play()
	if player.Character then
		setupTweens(player.Character)
	end

	player.CharacterAdded:Connect(function()
		setupTweens(player.Character)
	end)
	print("ClientEvent Reached The End")
end)`
Server
`local puddle = script.Parent.Puddle
local teams = game.Teams
local debounce = false
--Sounds
local Players = game.Players
local tweenEvent = game:GetService("ReplicatedStorage").TweenPuddle
local Blur 
local heart = script.Parent.Heartbeat
local ring = script.Parent.Ringing

local On = script.On.Value

puddle.Touched:Connect(function(hit)
	if not debounce then
		debounce = true
		local human = hit.Parent:WaitForChild("Humanoid")
		local player = game.Players:GetPlayerFromCharacter(hit.Parent)
		if player.Team ~= teams.Zombie then
			On = true
			print("Processing: ".. player.Name)
			local humanim = human:LoadAnimation(script.Parent.Animation)
			player.Team = teams.Zombie
			humanim:Play()
			heart:Play()
			ring:Play()
			tweenEvent:FireClient(player)
		end
		debounce = false
	end
end)`
Output
`18:04:28.811  Fired Client Event  -  Client - PuddleClient:50
  18:04:28.812  ClientEvent inside the function  -  Client - PuddleClient:52
  18:04:28.812  ClientEvent Reached The End  -  Client - PuddleClient:80
  18:04:29.175  Infinite yield possible on 'Workspace.ItsMeFelixAccept:WaitForChild("ForceField")'  -  Studio
  18:04:29.175  Stack Begin  -  Studio
  18:04:29.175  Script 'ServerScriptService.Scripts.RemoveFF', Line 3  -  Studio - RemoveFF:3
  18:04:29.175  Stack End  -  Studio`

in the client script you start the tweens then call the “setupTweens” function which checks if those tweens that you just played are playing, if so cancel them. in real time it looks like the tweens never played

Remove the function from inside the event and put it before it:

	 local function setupTweens(character)
		print("ClientEvent inside the function")
		local humanoid = character:WaitForChild("Humanoid")
		blurEffect.Size = 0
		colorCorrection.TintColor = Color3.fromRGB(255, 255, 255)
		colorCorrection.Brightness = 0
		if BrightnessTween and BlurTween and 	ColorTween == Enum.PlaybackState.Playing then
			BrightnessTween:Cancel()
			ColorTween:Cancel()
			BlurTween:Cancel()
		end

		colorCorrection.Enabled = false
		blurEffect.Size = 0
		blurEffect.Enabled = false
	end

And place this

	 if player.Character then
		setupTweens(player.Character)
	 end

before playing the tweens in the event

This is all in the Client script^