I am making a blur effect come on the background on my GUI. I works when I do it with in a different screen gui but on this one. I get no error in the output either. I don't know what to do.
local collectionservice = game:GetService("CollectionService")
local openUIEvent = game:GetService("ReplicatedStorage").RemoteEvents:WaitForChild("OpenMissionUI")
local bricks = script.Parent:WaitForChild("Bricks")
local debounce = false
local camera = workspace.CurrentCamera
for i,v in pairs(collectionservice:GetTagged("MissionDetectors"))do
v.Touched:Connect(function(hit)
if debounce == false then
debounce = true
if hit.Parent:FindFirstChild("Humanoid")then
local player = game:GetService("Players"):GetPlayerFromCharacter(hit.Parent)
openUIEvent:FireClient(player)
hit.Parent.Humanoid.WalkSpeed = 0
hit.Parent.Humanoid.JumpPower = 0
local blur = Instance.new("BlurEffect",camera)
blur.Name = "MissionBlur"
blur.Size = 13
wait(3)
debounce = false
end
end
end)
end
