|
| 06 Nov 2012 10:34 AM |
Hi, can anyone tell me what is wrong with this script? Its saying unexpected symbol near ')' on line five ( the one that says end) ) function onTouched(hit) if hit.Name == "Bomb" then game.Workspace.Base.Transparency = 1 end end)
script.Parent.Touched:connect(onTouched)
Can anyone help me? |
|
|
| Report Abuse |
|
|
|
| 06 Nov 2012 10:38 AM |
| You have a parenthesis after the final 'end', even though there isn't an open parenthesis that it could possibly be matching. |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 06 Nov 2012 10:39 AM |
script.Parent.Touched:connect(function(hit) if hit.Parent.Name == "Bomb" then game.Workspace.Base.Transparency = 1 end end) |
|
|
| Report Abuse |
|
|
|
| 06 Nov 2012 10:41 AM |
script.Parent.Touched:connect(function(hit) if hit.Parent.Name == "Bomb" then game.Workspace.Base.Transparency = 1 end end) |
|
|
| Report Abuse |
|
|
|
| 06 Nov 2012 10:41 AM |
| Oops someone already did it... |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
| |
|
|
| 06 Nov 2012 10:57 AM |
| Thank you guys, I knew I could count on you. |
|
|
| Report Abuse |
|
|