To expand upon my question: I have a localscript that does exactly what I want it to do and after a certain value is true it destroys itself. I thought that I figured out how to remove a localscript completely and not have it come back after a player's death. However, whenever they respawn the localscript is recreated back into the startergui automatically How would I prevent this from happening?
local player = game.Players.LocalPlayer
local character = player.Character
local camera = workspace.CurrentCamera
repeat wait()
camera.CameraType = Enum.CameraType.Scriptable
until camera.CameraType == Enum.CameraType.Scriptable
camera.CFrame = workspace.CameraPos_MainMenu.CFrame
local blur = Instance.new("BlurEffect",camera)
blur.Size = 10
if camera.CameraType == Enum.CameraType.Scriptable then wait()
script:Destroy()
end

2 comments
just put your localscript disabled and enable it when player joined, use PlayerAdded event.
i can't use the PlayerAdded event because it is all supposed to be in a local script.