I'm trying to make a Low HP Blur local script, but it won't work. I don't know why! It shows no errors, but there is one and it isn't being pointed out by ROBLOX Studio at all. Not even the output logs/developer console points the error out.
P.S: The local script is in a folder, and so is the blur effect
Script:
local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:wait()
local effect = script.Parent.Blur
cam = workspace.CurrentCamera
effect.Parent = cam
if char.Humanoid.Health <= 30 then
effect.Enabled = true
elseif char.Humanoid.Health > 30 then
effect.Enabled = false
end

7 comments
Pretty sure the local script has to be in the 'Starter Gui.'
I put it at StarterGui, and it still doesn't work.
Is the Local Script put seperate from the Folder? So It's just by itself in there.
Infact, yes. I made it separate from the folder.
heh plz = game.Players.LocalPlayer, that is depricated in my game.. it never works O.o sooo just say game:GetService("Players").LocalPlayer and maybe you should first clone effect O.o before putting it in the local camera
plr*
Made it clone the effect, and made it moments later be put in the local camera. also did game:GetService("Players").LocalPlayer, i don't think it worked.