Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Not sure on what I am doing wrong? Transparency is not a valid member of part?

I'm trying to make a tycoon to practice my scripting knowledge so far. But I keep getting this error. 10:47:53.271 - Transpareny is not a valid member of Part

local bluePillar = game.Workspace.Tycoon1.Purchases.BluePillar

script.Parent.Touched:Connect(function(h)
	if h.Parent:FindFirstChild('Humanoid') then
		bluePillar.Transpareny = 0
		bluePillar.CanCollide = false
	end
end)

1 answer

✓ Accepted answer

you made a spelling error, it's transparency

local bluePillar = game.Workspace.Tycoon1.Purchases.BluePillar

script.Parent.Touched:Connect(function(h)
    if h.Parent:FindFirstChild('Humanoid') then
        bluePillar.Transparency = 0
        bluePillar.CanCollide = false
    end
end)

2 comments

0

omg im so dumb sorry xD

0

np

This discussion is preserved as it was. New answers, comments, and votes are closed.