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: It says there is a unexpected symbol?

Previous Thread :: Next Thread 
baconmystomach is not online. baconmystomach
Joined: 05 May 2013
Total Posts: 188
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 is not online. cole7778
Joined: 19 Nov 2009
Total Posts: 7827
29 Sep 2014 08:59 PM
it's CanCollide
Report Abuse
baconmystomach is not online. baconmystomach
Joined: 05 May 2013
Total Posts: 188
29 Sep 2014 08:59 PM
Thanks, but it also said that there was an unexpected error near then
Report Abuse
cole7778 is not online. 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
baconmystomach is not online. baconmystomach
Joined: 05 May 2013
Total Posts: 188
29 Sep 2014 09:03 PM
Thanks ^_^
Report Abuse
cole7778 is not online. cole7778
Joined: 19 Nov 2009
Total Posts: 7827
29 Sep 2014 09:04 PM
you're welcome dude
Report Abuse
baconmystomach is not online. baconmystomach
Joined: 05 May 2013
Total Posts: 188
29 Sep 2014 09:06 PM
HOw would I call this function??
Report Abuse
baconmystomach is not online. baconmystomach
Joined: 05 May 2013
Total Posts: 188
29 Sep 2014 09:09 PM
wait nvm, im stupid
Report Abuse
cole7778 is not online. cole7778
Joined: 19 Nov 2009
Total Posts: 7827
29 Sep 2014 09:09 PM
what do you mean?
Report Abuse
baconmystomach is not online. baconmystomach
Joined: 05 May 2013
Total Posts: 188
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 is not online. cole7778
Joined: 19 Nov 2009
Total Posts: 7827
29 Sep 2014 09:12 PM
oh

but you figured that out?
Report Abuse
baconmystomach is not online. baconmystomach
Joined: 05 May 2013
Total Posts: 188
29 Sep 2014 09:15 PM
nope thought i did but i was wrong
Report Abuse
baconmystomach is not online. baconmystomach
Joined: 05 May 2013
Total Posts: 188
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 is not online. cole7778
Joined: 19 Nov 2009
Total Posts: 7827
29 Sep 2014 09:21 PM
good luck
Report Abuse
baconmystomach is not online. baconmystomach
Joined: 05 May 2013
Total Posts: 188
29 Sep 2014 09:22 PM
Thanks
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
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
baconmystomach is not online. baconmystomach
Joined: 05 May 2013
Total Posts: 188
30 Sep 2014 05:07 PM
I'm not understanding..
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