Howdy.
I'm just using this little script:
wait() script.Parent.Touched:connect(function(hit) --Activates when hit if hit.Name == "Objection" then --detects the name and runs the code script.Parent.Transparency = 1 end end)
And. When i'm going to run my game. The brick doesn't always turn Trans 1 when touched by the object.
And sometimes it works...
Example: When i go in play mode (studio) and un-anchored my brick that should touch it, it won't register it. But, when it's already unanchored and then go play, it's being registered?
wait() script.Parent.Touched:connect(function(hit) --Activates when hit if hit.Name == "Objection" then --detects the name and runs the code script.Parent.Transparency = 1 end end)
in this script you are saying when someone tough the part then if the parts name is objection then it will make the part invisible, i think you need to do this instead
wait() script.Parent.Touched:Connect(function(hit) --Activates when hit if hit.Parent.Name == "Objection" then --detects the name and runs the code script.Parent.Transparency = 1 end end)
this will check if the part that touched the scripts parent got the name objection and if it does chane the transparency of the scripts parent