Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make this script activate only when I join but not when I die?

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.CFrame
local blur = Instance.new("BlurEffect",camera)
blur.Size = 15

1 answer

✓ Accepted answer

This should work if you place this in game.StarterPlayer.StarterPlayerScripts

local player = game.Players.LocalPlayer
local character = nil
repeat wait() until player.Character
character=player.Character
local camera = workspace.CurrentCamera

repeat wait()
    camera.CameraType = Enum.CameraType.Scriptable
until camera.CameraType == Enum.CameraType.Scriptable

camera.CFrame = workspace.CameraPos.CFrame
local blur = Instance.new("BlurEffect",camera)
blur.Size = 15

If this helped, please accept my answer!

1 comment

0

Thanks

This discussion is preserved as it was. New answers, comments, and votes are closed.