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

Why won't the part turn transparent once touched?

function OnTouch ()
script.Parent.Parent.Spotty.Transparency=0
end

I know I'm going to get some thumbs down... just please help me ;(

2 answers

✓ Accepted answer

You don't have a Connection line.

function OnTouch ()
	script.Parent.Parent.Spotty.Transparency=0
end
PartName.Touched:connect(OnTouch)

or

PartName.Touched:connect(function()
	script.Parent.Parent.Spotty.Transparency=0
end)

2 comments

0

Thanks!

0

and btw, it was supposed to be;

PartName= workspace.Model3.Spotty
PartName.Touched:connect(function()
    script.Parent.Parent.Spotty.Transparency=1
end)

@TheContinentofEurope Thanks! (again)

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