|
| 29 Sep 2014 08:54 PM |
if TouchedTest.Touched:connect(function(TouchedTest) then TouchedTest.Transparency = .5 TouchedTest.Cancollide = false else TouchedTest.Transparency = 0 TouchedTest.Cancollide = true end end)
Please tell me the error. It would be much appreciated. |
|
|
| Report Abuse |
|
|
cole7778
|
  |
| Joined: 19 Nov 2009 |
| Total Posts: 7827 |
|
| |
|
|
| 29 Sep 2014 08:59 PM |
| Thanks, but it also said that there was an unexpected error near then |
|
|
| Report Abuse |
|
|
cole7778
|
  |
| Joined: 19 Nov 2009 |
| Total Posts: 7827 |
|
|
| 29 Sep 2014 09:01 PM |
try this
TouchedTest.Touched:connect(function(TouchedTest) if TouchedTest then |
|
|
| Report Abuse |
|
|
| |
|
cole7778
|
  |
| Joined: 19 Nov 2009 |
| Total Posts: 7827 |
|
| |
|
|
| 29 Sep 2014 09:06 PM |
| HOw would I call this function?? |
|
|
| Report Abuse |
|
|
| |
|
cole7778
|
  |
| Joined: 19 Nov 2009 |
| Total Posts: 7827 |
|
| |
|
|
| 29 Sep 2014 09:12 PM |
| i mean that when I go to touch the brick, it won't run the script. |
|
|
| Report Abuse |
|
|
cole7778
|
  |
| Joined: 19 Nov 2009 |
| Total Posts: 7827 |
|
|
| 29 Sep 2014 09:12 PM |
oh
but you figured that out? |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2014 09:15 PM |
| nope thought i did but i was wrong |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2014 09:19 PM |
| Thanks for the help though, I'll figure it out soon. But nice game. Hope to make some as good as those someday. |
|
|
| Report Abuse |
|
|
cole7778
|
  |
| Joined: 19 Nov 2009 |
| Total Posts: 7827 |
|
| |
|
| |
|
|
| 29 Sep 2014 09:50 PM |
script.Parent.Touched:connect(function(h)
now, this function only gets called when it gets touched.
you don't have to do those types of checks except in instances when it could disappear rlly fast
if h.Parent:FindFirstChild("Humanoid") then
ok you can do these kind of checks |
|
|
| Report Abuse |
|
|
| |
|