WHY DUS THIS HAPEN TO MEEEEEEEE forget the rest of the song Anyways
Im getting the error "Attempt to index nil with 'transparency' " and it makes no sense to me Its not like I can use wait for child for a parent makes no sense
script:
script.Parent.Touched:Connect(function(hit)
local character = hit.Parent
if character:FindFirstChild('Humanoid') then
local player = game.Players:GetPlayerFromCharacter(character)
script.Parent.Transparency = 1
script.Parent.CanCollide = false
script.Disabled = true
player:WaitForChild('leaderstats'):WaitForChild('DollarsToCollect').Value = player.leaderstats.DollarsToCollect.Value + 1
wait(20)
script.Parent.Transparency = 0
script.Parent.CanCollide = true
script.Disabled = false
end
end)
Wait! Something else that should be noted it works the first time, but not the second, it becomes invisible, but not visible again

5 comments
Have you anchored the part? If you haven't then the part will obviously fall down to the abyss.
I'VE MADE MY MISTAKES~~
GOT NOWHERE TO RUN~~
THE NIGHT GOES ON~~
y e s