This is my Script:
local Check = game.Workspace.C1 function onTouched(hit) local h = hit.Parent:FindFirstChild("Humanoid") if h~=nil then Check.Transparency = 0 end end script.Parent.Touched:Connect(onTouched)
I tried this in a local script but it doesn't work, so I used it on a normal script and it works, but the thing is I need to be able to make it so that only the player that touched the block can only see it.
if anyone needs more info, please let me know.
Hi there,
Try just using If h then, how I wrote it down here,
local Check = game.Workspace.C1 function onTouched(hit) local h = hit.Parent:FindFirstChild("Humanoid") if h then Check.Transparency = 0 end end script.Parent.Touched:Connect(onTouched)
Sorry if this doesn't help...
Here's A Link Explaining What Remote Events/Functions Are! https://developer.roblox.com/en-us/articles/Remote-Functions-and-Events