Help, script for i,v and Get all children, why my script doesn't work?

Hello, so there is no error in my script, “hi” is printed in the output. But the part does not become visible. Someone know why ? Thank you

plr = game.Players.LocalPlayer
function visible(hit)
	if hit.Parent.Name == plr.Name then
		for i,v in pairs(game.workspace.Course:GetChildren()) do
			if v:IsA("BasePart") then
				v.Part.Transparency = 0
                             print("hi")
			end
		end
	end
end
game.Workspace.Disparait.Touched:Connect(visible)

Are you sure that there’s an Object inside v named Part? if not, Then just change it to v.Transparency = 0.

Oh yeah I got the wrong script on top, I had tried the .Part by accident but that didn’t work either. The parts don’t become visible even with v.Transparency = 0
Capture

Please if someone can help me, i’m close to finishing my game, this is the only problem left :sob:

Oh my bad my script was working all along. Thank you

Mark something as solution so people don’t keep coming back here.

1 Like

Yes and please do the same for the other post that has the exact same question about your script.

1 Like