A Roblox Community
Would you like to react to this message? Create an account in a few clicks or log in to continue.

A Roblox Community

A community of Robloxians who want to learn to script and build on Roblox Studio.
 
HomeLatest imagesRegisterLog in
If you're a experienced coder make some tutorials! It would really help the site grow.
Make sure you read the rules(Which can be found by clicking here)
If you're a beginner at coding, try some tutorials.
We have many Moderators/Admins watching this site. Contact them with Questions.
Let us know what your favorite sport is. By clicking here to vote (Click here)
This site is becoming inactive. Lets make it active.
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Top posters
blueymaddog
3: ')' expected near '(' Vote_lcap3: ')' expected near '(' Voting_bar3: ')' expected near '(' Vote_rcap 
naknak
3: ')' expected near '(' Vote_lcap3: ')' expected near '(' Voting_bar3: ')' expected near '(' Vote_rcap 
Supernapalm
3: ')' expected near '(' Vote_lcap3: ')' expected near '(' Voting_bar3: ')' expected near '(' Vote_rcap 
m27frogy
3: ')' expected near '(' Vote_lcap3: ')' expected near '(' Voting_bar3: ')' expected near '(' Vote_rcap 
slayer9365
3: ')' expected near '(' Vote_lcap3: ')' expected near '(' Voting_bar3: ')' expected near '(' Vote_rcap 
myrco919
3: ')' expected near '(' Vote_lcap3: ')' expected near '(' Voting_bar3: ')' expected near '(' Vote_rcap 
branefreez
3: ')' expected near '(' Vote_lcap3: ')' expected near '(' Voting_bar3: ')' expected near '(' Vote_rcap 
ninga95
3: ')' expected near '(' Vote_lcap3: ')' expected near '(' Voting_bar3: ')' expected near '(' Vote_rcap 
CloneTrooper787
3: ')' expected near '(' Vote_lcap3: ')' expected near '(' Voting_bar3: ')' expected near '(' Vote_rcap 
raboy117
3: ')' expected near '(' Vote_lcap3: ')' expected near '(' Voting_bar3: ')' expected near '(' Vote_rcap 
Top posting users this month
No user
Latest topics
» Where to go from here.
3: ')' expected near '(' EmptySeptember 14th 2020, 1:20 pm by MrNicNac

» Send me an Email
3: ')' expected near '(' EmptySeptember 14th 2020, 1:16 pm by MrNicNac

» [v1.6.0.0] Lua Script Obfuscator [No Bytecode]
3: ')' expected near '(' EmptyJuly 6th 2015, 7:38 pm by m27frogy

» New Site Possibly
3: ')' expected near '(' EmptyJuly 6th 2015, 4:16 pm by m27frogy

» Ambassador!
3: ')' expected near '(' EmptyApril 15th 2015, 11:40 pm by naknak

» Boop - Tag
3: ')' expected near '(' EmptyApril 13th 2015, 9:46 pm by naknak

» Vip Class Script
3: ')' expected near '(' EmptyApril 13th 2015, 4:54 pm by naknak

» Who's active?!
3: ')' expected near '(' EmptyApril 13th 2015, 4:52 pm by naknak

» Genesis Point
3: ')' expected near '(' EmptyJuly 17th 2014, 7:04 pm by branefreez

» Reward System
3: ')' expected near '(' EmptyJuly 17th 2014, 5:41 am by m27frogy

» Script Request
3: ')' expected near '(' EmptyJuly 10th 2014, 11:43 am by naknak

» local scripts?
3: ')' expected near '(' EmptyJuly 10th 2014, 11:39 am by naknak

» Project: Reconstruction [Died]
3: ')' expected near '(' EmptyJuly 10th 2014, 11:36 am by naknak

» Hi. I am new here
3: ')' expected near '(' EmptyApril 26th 2014, 4:01 pm by altshiftkey

» What's your favorite sport?
3: ')' expected near '(' EmptyJanuary 1st 2014, 2:13 pm by m27frogy

» FlashLight Script
3: ')' expected near '(' EmptyJanuary 1st 2014, 2:11 pm by m27frogy

» Gun Making! [READ DESC]
3: ')' expected near '(' EmptyJanuary 1st 2014, 2:10 pm by m27frogy

» Hi, I am new here!
3: ')' expected near '(' EmptyNovember 26th 2013, 3:33 pm by Keanu73

» Improve Coding
3: ')' expected near '(' EmptyOctober 26th 2013, 1:12 pm by pook03

» Simple Button
3: ')' expected near '(' EmptySeptember 1st 2013, 6:19 pm by branefreez


 

 3: ')' expected near '('

Go down 
5 posters
AuthorMessage
Sethalonian
Intermediate Scripter
Intermediate Scripter
Sethalonian


Posts : 63
Join date : 2011-06-10
Age : 26

3: ')' expected near '(' Empty
PostSubject: 3: ')' expected near '('   3: ')' expected near '(' EmptyJune 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
Back to top Go down
Sethalonian
Intermediate Scripter
Intermediate Scripter
Sethalonian


Posts : 63
Join date : 2011-06-10
Age : 26

3: ')' expected near '(' Empty
PostSubject: whoops   3: ')' expected near '(' EmptyJune 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'
Back to top Go down
naknak
Administrator
Administrator
naknak


Posts : 878
Join date : 2010-07-30

3: ')' expected near '(' Empty
PostSubject: Re: 3: ')' expected near '('   3: ')' expected near '(' EmptyJune 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.
Back to top Go down
Sethalonian
Intermediate Scripter
Intermediate Scripter
Sethalonian


Posts : 63
Join date : 2011-06-10
Age : 26

3: ')' expected near '(' Empty
PostSubject: Re: 3: ')' expected near '('   3: ')' expected near '(' EmptyJune 23rd 2011, 9:06 pm

oh... thx!
Back to top Go down
naknak
Administrator
Administrator
naknak


Posts : 878
Join date : 2010-07-30

3: ')' expected near '(' Empty
PostSubject: Re: 3: ')' expected near '('   3: ')' expected near '(' EmptyJune 23rd 2011, 11:51 pm

Did it work?
Back to top Go down
Sethalonian
Intermediate Scripter
Intermediate Scripter
Sethalonian


Posts : 63
Join date : 2011-06-10
Age : 26

3: ')' expected near '(' Empty
PostSubject: Re: 3: ')' expected near '('   3: ')' expected near '(' EmptyJune 25th 2011, 9:43 am

yes it worked. thank you!
Back to top Go down
naknak
Administrator
Administrator
naknak


Posts : 878
Join date : 2010-07-30

3: ')' expected near '(' Empty
PostSubject: Re: 3: ')' expected near '('   3: ')' expected near '(' EmptyJune 25th 2011, 2:14 pm

No problem.
Back to top Go down
Supernapalm
Expert Scripter
Expert Scripter
avatar


Posts : 393
Join date : 2011-01-17

3: ')' expected near '(' Empty
PostSubject: Re: 3: ')' expected near '('   3: ')' expected near '(' EmptyJune 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?
Back to top Go down
http://hackthissite.org
Sethalonian
Intermediate Scripter
Intermediate Scripter
Sethalonian


Posts : 63
Join date : 2011-06-10
Age : 26

3: ')' expected near '(' Empty
PostSubject: Re: 3: ')' expected near '('   3: ')' expected near '(' EmptyJune 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.
Back to top Go down
m27frogy
The Garbageman
m27frogy


Posts : 336
Join date : 2011-06-23

3: ')' expected near '(' Empty
PostSubject: Re: 3: ')' expected near '('   3: ')' expected near '(' EmptyJune 30th 2011, 4:36 pm

XD
Back to top Go down
m27frogy
The Garbageman
m27frogy


Posts : 336
Join date : 2011-06-23

3: ')' expected near '(' Empty
PostSubject: Re: 3: ')' expected near '('   3: ')' expected near '(' EmptySeptember 7th 2011, 6:35 pm

BTW, what were you using it for?
Back to top Go down
Sethalonian
Intermediate Scripter
Intermediate Scripter
Sethalonian


Posts : 63
Join date : 2011-06-10
Age : 26

3: ')' expected near '(' Empty
PostSubject: Re: 3: ')' expected near '('   3: ')' expected near '(' EmptySeptember 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.
Back to top Go down
blueymaddog
Administrator
Administrator
blueymaddog


Posts : 1081
Join date : 2010-12-09
Age : 25

3: ')' expected near '(' Empty
PostSubject: Re: 3: ')' expected near '('   3: ')' expected near '(' EmptyFebruary 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
Back to top Go down
Sponsored content





3: ')' expected near '(' Empty
PostSubject: Re: 3: ')' expected near '('   3: ')' expected near '(' Empty

Back to top Go down
 
3: ')' expected near '('
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
A Roblox Community :: Questions and Help :: Scripting-
Jump to: