Blur gets stuck after death. WHY?!?!?!?!

A death screen, occasionally but not always the blur stays stuck and won’t go away unless you reset 1-7 times. NO ERRORS. ABSOLUTELY NO ERRORS SHOW UP. wanna hear MORE??? THIS PHENOMENON ONLY SHOWS UP IN LIVE SERVERS AND NOT IN STUDIO. WHY?! IM SO TIRED OF LUA

local sounde = game.Players.LocalPlayer.PlayerScripts.LocalBackgroundMusic:WaitForChild("BGM")
local Player = game:GetService("Players").LocalPlayer
local Players = game:GetService("Players").PlayerAdded
moveinfo = TweenInfo.new(6,Enum.EasingStyle.Linear)
local Frame =  script.Parent.Frame
local eye =  script.Parent.Frame.ImageLabel
local blur = game.Lighting.Blur
Frame.BackgroundTransparency = 1
eye.Size = UDim2.new(0.524, 0,0.021, 0);
Frame.Visible = false
eye.Visible = false
eye.ImageTransparency = 1
blur.Size = 4
game.Players.LocalPlayer.PlayerScripts.LocalBackgroundMusic.BGM.Volume = sounde.OriginalVolume.Value


local TweenService = game:GetService("TweenService")



local humanoid = game.Players.LocalPlayer.Character:WaitForChild("Humanoid")


humanoid.Died:Connect(function()
	Frame.Visible = true
	Frame.Sound:Play()
	TweenService:Create(blur,TweenInfo.new(5),{Size = 18}):Play()
	TweenService:Create(sounde,TweenInfo.new(5),{Volume = 0}):Play()
	TweenService:Create(Frame,TweenInfo.new(8),{BackgroundTransparency = 0.2}):Play()
	TweenService:Create(eye,TweenInfo.new(2,Enum.EasingStyle.Bounce),{ImageTransparency = 0}):Play()
	wait(1)
	eye.Visible = true
	TweenService:Create(eye,TweenInfo.new(0.5,Enum.EasingStyle.Bounce),{Size = UDim2.new(0.524,0,0.901,0)}):Play()
	wait(4)
	TweenService:Create(eye,TweenInfo.new(0.5,Enum.EasingStyle.Bounce),{Size = UDim2.new(0.524, 0,0.021, 0)}):Play()
	wait(5)
	TweenService:Create(blur,TweenInfo.new(5),{Size = 4}):Play()
	blur.Size = 4
end)

Player.CharacterAdded:Connect(function()
	TweenService:Create(blur,TweenInfo.new(5),{Size = 4}):Play()
	blur.Size = 4
	wait(5)
	TweenService:Create(blur,TweenInfo.new(5),{Size = 4}):Play()
	blur.Size = 4
end)

update: doesn’t work even even u switch the script.parent stuff to go through playergui instead.

is this script inside StarterCharacterScripts?

its inside the gui because its a script involving gui. would it work better if it was in startercharacter?

does the ScreenGui have ResetOnSpawn enabled in its properties?

yes, thats why it occassionally works. but half of the time it gets the blur stuck, even the ResetOnSpawn is on.

try turning it off. I’m guessing the CharacterAdded event isn’t being fired. I could be wrong I haven’t tested or thoroughly looked through the code though

i turned it off, but it now brings more issues which is that after you’ve died once the death screen never appears again.

solution found; (i cannot believe the built in roblox resetOnSpawn has let me down… society is collapsing,…)

not full code but this is what i did:

local function onDeath()
	((death screen appear here))
end

Player.Character.Humanoid.Died:Connect(onDeath)
Player.CharacterAdded:Connect(function(character)
	local humanoid = character:WaitForChild("Humanoid")
	humanoid.Died:Connect(onDeath)

end)



Player.CharacterAdded:Connect(function()
	
	
	((death screen fade away here))

end)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.