Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is this how you make a touched function?

Asked by
FiredDusk 1466 Moderation Voter
8 years ago

Im not on my computer atm. I would like for someone to test this out. I want when anything touches the part, the transparecy is at .5

function touched(part) 

part.Transparency=.5

end

script.Parent.Touched:connect(touched)
1
change funtion for function and it'll work XToonLinkX123 580 — 8y
0
Ok thanks. If you dont mind, is there any other way of doing this? FiredDusk 1466 — 8y

1 answer

Log in to vote
0
Answered by
Codebot 85
8 years ago

I find it really easy doing touched functions like this

--Put this script inside the part
script.Parent.Touched:connect(function(part)
part.Transparency = .5
end
Ad

Answer this question