Sup guys.2 days ago i builded a script that uses hitbox to change the lightning.even the portals.but then i saw that local script is running on everybody.i dont know why this is happening.gui scripts are running by local but expect for gui local scripts,all of them are running in server even they are local script.this issue still didnt solved with all my tries.readd it,change parent of it,none of them still fixed the issue.
is this a roblox bug or our developers fault?
i tried search about this but nothing appeared about this issue.
heres better one=my local hitbox script is changing lightning when player touches,but with other players it happens to everyone when someone touches.idk why.i placed to Starterplayerscripts.
i cant send the code right now ill send after a hours later.
You need to check that the person who touches it is indeed the local player.
For example:
local Player = game.Players.LocalPlayer
Part.Touched:Connect(function(hit)
if not hit.Parent = Player.Character then return end
-- Other code here
end)