These are in local scripts, in either StarterPlayerScripts or StarterGui
I've published this game many times over itself as a new place. I've disabled and re-enabled filtering enabling so many times and published, and I have some scripts that show that this is the case. I know with filtering enabled on, client side & server side things work differently, and for my case this particular script changes the lighting and sound for a each individual player. However when somebody 'triggers' the lighting and sound, it plays on the server, and everyone can hear it. I tried using remote events, and it hasn't changed. Oh yeah the lighting is also server sided for some reason. If somebody could let me know what's poppin I would appreciate it :D
if hit.Parent:FindFirstChild("Humanoid") then for i = 1,1 do local partsInRegion = workspace:FindPartsInRegion3(region, nil, 500) for i, part in pairs(partsInRegion) do if part.Parent:FindFirstChild("Humanoid") ~= nil then found = true end if found == true then touched = true local Players = game:GetService("Players") if debounce == false then debounce = true remote:FireServer() game.Lighting.Brightness = .7 game.Lighting.Blur.Size = 7 game.Lighting.FogEnd = 500 game.Lighting.FogStart = 0 game.Lighting.FogColor = Color3.fromRGB(255, 255, 255)
Your LocalScript is detecting a touch from any player that touches it, so basically you want to see if what hit it is the local player
I didn't test this however but I'm pretty sure this would work:
local player = game.Players.LocalPlayer if hit.Parent.Name == player.Name then for i = 1,1 do local partsInRegion = workspace:FindPartsInRegion3(region, nil, 500) for i, part in pairs(partsInRegion) do if part.Parent:FindFirstChild("Humanoid") ~= nil then found = true end if found == true then touched = true local Players = game:GetService("Players") if debounce == false then debounce = true remote:FireServer() game.Lighting.Brightness = .7 game.Lighting.Blur.Size = 7 game.Lighting.FogEnd = 500 game.Lighting.FogStart = 0 game.Lighting.FogColor = Color3.fromRGB(255, 255, 255)