Im trying to get it so that when a player touches a part a part becomes transparrent only on there screen, I have the code but it only works with a normal script. Does anyone know how to make it work with local script or just make it so that the player who touched sees the part go invisible? My code:
local EEE = game.Workspace.EEE
script.Parent.Touched:Connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
game.Workspace.EEE.Transparency = 1
wait(1)
game.Workspace.EEE.Transparency = 0
end)

2 comments
Put that script into a local script
https://developer.roblox.com/en-us/api-reference/property/BasePart/LocalTransparencyModifier