generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: If name = "name" script

Previous Thread :: Next Thread 
UndeleteTool is not online. UndeleteTool
Joined: 15 Mar 2012
Total Posts: 1851
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
BlueTaslem is not online. BlueTaslem
Joined: 11 May 2008
Total Posts: 11060
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 is not online. 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
yosuppeeps is not online. yosuppeeps
Joined: 06 Jul 2009
Total Posts: 20107
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
yosuppeeps is not online. yosuppeeps
Joined: 06 Jul 2009
Total Posts: 20107
06 Nov 2012 10:41 AM
Oops someone already did it...
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
06 Nov 2012 10:50 AM
copycat :O
Report Abuse
UndeleteTool is not online. UndeleteTool
Joined: 15 Mar 2012
Total Posts: 1851
06 Nov 2012 10:57 AM
Thank you guys, I knew I could count on you.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image