Top posting users this month | |
Latest topics | » Where to go from here.September 14th 2020, 1:20 pm by MrNicNac» Send me an EmailSeptember 14th 2020, 1:16 pm by MrNicNac» [v1.6.0.0] Lua Script Obfuscator [No Bytecode]July 6th 2015, 7:38 pm by m27frogy» New Site PossiblyJuly 6th 2015, 4:16 pm by m27frogy» Ambassador!April 15th 2015, 11:40 pm by naknak» Boop - TagApril 13th 2015, 9:46 pm by naknak» Vip Class ScriptApril 13th 2015, 4:54 pm by naknak» Who's active?!April 13th 2015, 4:52 pm by naknak» Genesis PointJuly 17th 2014, 7:04 pm by branefreez» Reward SystemJuly 17th 2014, 5:41 am by m27frogy» Script RequestJuly 10th 2014, 11:43 am by naknak» local scripts?July 10th 2014, 11:39 am by naknak» Project: Reconstruction [Died]July 10th 2014, 11:36 am by naknak» Hi. I am new hereApril 26th 2014, 4:01 pm by altshiftkey» What's your favorite sport?January 1st 2014, 2:13 pm by m27frogy» FlashLight ScriptJanuary 1st 2014, 2:11 pm by m27frogy» Gun Making! [READ DESC]January 1st 2014, 2:10 pm by m27frogy» Hi, I am new here!November 26th 2013, 3:33 pm by Keanu73» Improve CodingOctober 26th 2013, 1:12 pm by pook03» Simple ButtonSeptember 1st 2013, 6:19 pm by branefreez |
| | 3: ')' expected near '(' | |
| | Author | Message |
---|
Sethalonian Intermediate Scripter
Posts : 63 Join date : 2011-06-10 Age : 26
| Subject: 3: ')' expected near '(' June 22nd 2011, 9:30 am | |
| for i,v in pairs(script.Parent.Parent:GetChildren()) do if v:IsA("Part") then v.Touched:connect(function touch(hit) if game.Players:GetPlayerFromCharacter(hit.Parent) then script.Parent.Parent.Wall.Transparency = 1 script.Parent.Parent.Wall.CanCollide = false end end) end end | |
| | | Sethalonian Intermediate Scripter
Posts : 63 Join date : 2011-06-10 Age : 26
| Subject: whoops June 22nd 2011, 9:31 am | |
| This is what it actually said, i looked at the wrong one....
Workspace.Lever.Handle.Script:3: '(' expected near 'touch'
| |
| | | naknak Administrator
Posts : 878 Join date : 2010-07-30
| Subject: Re: 3: ')' expected near '(' June 22nd 2011, 2:55 pm | |
| It should be a nameless function
for i,v in pairs(script.Parent.Parent:GetChildren()) do if v:IsA("Part") then v.Touched:connect(function (hit) if game.Players:GetPlayerFromCharacter(hit.Parent) then script.Parent.Parent.Wall.Transparency = 1 script.Parent.Parent.Wall.CanCollide = false end end) end end
I'm not sure if the part after it though will perform how you expect. | |
| | | Sethalonian Intermediate Scripter
Posts : 63 Join date : 2011-06-10 Age : 26
| Subject: Re: 3: ')' expected near '(' June 23rd 2011, 9:06 pm | |
| | |
| | | naknak Administrator
Posts : 878 Join date : 2010-07-30
| Subject: Re: 3: ')' expected near '(' June 23rd 2011, 11:51 pm | |
| | |
| | | Sethalonian Intermediate Scripter
Posts : 63 Join date : 2011-06-10 Age : 26
| Subject: Re: 3: ')' expected near '(' June 25th 2011, 9:43 am | |
| yes it worked. thank you! | |
| | | naknak Administrator
Posts : 878 Join date : 2010-07-30
| Subject: Re: 3: ')' expected near '(' June 25th 2011, 2:14 pm | |
| | |
| | | Supernapalm Expert Scripter
Posts : 393 Join date : 2011-01-17
| Subject: Re: 3: ')' expected near '(' June 26th 2011, 6:30 pm | |
| hey. that was kind of interesting code you had there, Sethalonian. the error there messed up the script, but overall, you had a good, clean script smaller than i would expect from an average scripter.
you did better than i would have coded in this particular script using your experience with Roblox funtions, as i have noticed, even though this code could have been optimized once more
P.S. i assume u made this script from scratch i hope? | |
| | | Sethalonian Intermediate Scripter
Posts : 63 Join date : 2011-06-10 Age : 26
| Subject: Re: 3: ')' expected near '(' June 28th 2011, 2:07 pm | |
| yes, i would have been an idiot to have copied it and made it like ruinned it like that. I made that from scratch. | |
| | | m27frogy The Garbageman
Posts : 336 Join date : 2011-06-23
| Subject: Re: 3: ')' expected near '(' June 30th 2011, 4:36 pm | |
| | |
| | | m27frogy The Garbageman
Posts : 336 Join date : 2011-06-23
| Subject: Re: 3: ')' expected near '(' September 7th 2011, 6:35 pm | |
| BTW, what were you using it for? | |
| | | Sethalonian Intermediate Scripter
Posts : 63 Join date : 2011-06-10 Age : 26
| Subject: Re: 3: ')' expected near '(' September 7th 2011, 9:54 pm | |
| I was making a switch with many pieces. If one piece would touch it would blow up the wall. [Sorta] I haven't really used it though. i just use the index hit thing for other stuff. | |
| | | blueymaddog Administrator
Posts : 1081 Join date : 2010-12-09 Age : 25
| Subject: Re: 3: ')' expected near '(' February 4th 2012, 7:13 am | |
| lol my code is relatively efficient and short so many people complain when I give them a short looking script that they payed for :3 | |
| | | Sponsored content
| Subject: Re: 3: ')' expected near '(' | |
| |
| | | | 3: ')' expected near '(' | |
|
| Permissions in this forum: | You cannot reply to topics in this forum
| |
| |
| Who is online? | In total there are 2 users online :: 0 Registered, 0 Hidden and 2 Guests
None
Most users ever online was 54 on August 2nd 2017, 2:13 am
|
| Please tell us what time zone you are in here
Got a really good idea? Post it in projects and it might show up here! |
|