i made a camera system for a game using .Touched to change perspective but if another player touches the brick it still changes the camera perspective. does anyone know how to check if the player touching the brick is the local player?
--local script
workspace["int 2"].Touched:Connect(function()
workspace.CurrentCamera.CFrame = workspace["cam int 2"].CFrame
end)

4 comments
No that would just check that it was a player, not the localplayer.
no I check if it's a character and then the character that touches it it get's the player
The OP is trying to see if the player who touches it is the LocalPlayer in the script, not just a player in general.
...