CurrentCamera and PlayerGui is changing for all players?
I've recently noticed while making games that need things to change for a single player; it affects every player ingame. I'm not sure why this is happening since CurrentCamera and PlayerGui used to change for a single player. I'm not sure if I'm just scripting it differently, or if Roblox happened to send out an update that changed this.
A script I have here is meant to change only for a single player, and it changes text in the player's GUI. Instead of changing for a single player, it changes for every player.
01 | p = game.Players.LocalPlayer |
02 | camera = workspace.CurrentCamera |
04 | playergui = game:GetService( 'Players' ).LocalPlayer:WaitForChild( 'PlayerGui' ) |
11 | workspace.Stop.Touched:Connect( function () |
12 | if debounce = = false then |
15 | gui.TextLabel.Text = string.sub(text, 1 , i) |
16 | gui.TextLabel.TextLabel.Text = string.sub(text, 1 , i) |
21 | gui.TextLabel.Text = "" |
22 | gui.TextLabel.TextLabel.Text = "" |
The script itself works fine, but whenever a player touches the Stop (a part in the workspace) the text "test" will appear on everyone's screen.
Another situation like this with CurrentCamera occurs. I have used CurrentCamera to change blur, color correction, and more.
This script snippet, which will supposedly change the player's screen to have a more green feel and darker tint works (with bugs), but displays these effects to every player's screen like stated with the PlayerGui problem.
1 | camera = workspace.CurrentCamera |
3 | camera.correct.TintColor = Color 3. fromRGB( 125 , 143 , 123 ) |
4 | for i = 0 , -. 15 , -. 05 do |
5 | camera.correct.Brightness = i |
With that being said, I hope that somebody can help me with this problem as it is a regular occurrence and annoyance. I appreciate any help that I can receive, have a good night/day. :)