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

Can someone explain why this only affects the player that joined?

game.Players.PlayerAdded:Connect(function(plr)
	game.Lighting.Blur.Enabled = true
end)

This makes blur enabled when a player joins. What I don't get is why it only makes the player that joined have blur, since it isn't a local script. Can someone explain why it acts like a local script?

2 comments

0

Try taking out the plr

0

No I wanted it to act like a local script I just didn't understand why it did.

1 answer

Things, why it may be acting like a local script, are:

  • using a game.Lighting.Blur without localizing them
  • having a function(plr)

If this script helps you feel free to accept it!

How about this script:

local blur = game.Lighting.Blur

game.Players.ChildAdded:connect(function()
	blur.Enabled = true
end)

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