Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
LawlR 182
6 years ago
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?

0
Try taking out the plr sturdy2004 110 — 6y
0
No I wanted it to act like a local script I just didn't understand why it did. LawlR 182 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

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)
Ad

Answer this question