Why this isn't working

I have a local script parented to a part, and if someone touches the part a part transparency will change but i want it only to the player that touched it no other players, so i chose a local script, and its not working and also the part is parented to the workspace, any help?

local script:

	local possibleplr = hit.Parent:FindFirstChild("Humanoid")
	local god = script.Parent.Parent:FindFirstChild("god1")
	if possibleplr then
		god.Transparency = 0

Local scripts will not work when parented to the workspace: https://developer.roblox.com/en-us/api-reference/class/LocalScript.

Adding onto @cjjdawg’s reply, localscript will only run when parented to StarterGui, StarterPack, ReplicatedFirst, or StarterPlayerScripts. The most common places people put them are in StarterGui and StarterPlayerScripts.

I’m not entirely sure what your script is trying to accomplish, but if god is a part and you’re modifying it from a localscript, the changes you make from the localscript won’t replicate to the server.