How could I take a script like this and make it only affect the person who touched it?
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
while script.Parent.Transparency <= 1 do
script.Parent.Transparency += .1
wait(.1)
end
script.Parent.CanCollide = false
end
end)
The person who touched the part will see it fade away, but a bystander shouldn’t see any change to the cube unless they touch it themselves.