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: how many ends do i put on this?

Previous Thread :: Next Thread 
epicpatrick123 is not online. epicpatrick123
Joined: 08 Sep 2010
Total Posts: 15039
21 Jul 2013 03:38 PM
gamepass = 111248841 --200h

script.Parent.Touched:connect(function(p)
if game.Players:GetPlayerFromCharacter(p.Parent) then
local player = game.Players:GetPlayerFromCharacter(p.Parent)
script.Parent.Touched:connect(function(p)
for _, Child in pairs(player.Character:GetChildren()) do
if Child.ClassName == "ForceField" then
Child:Destroy()
wait(2)


no matter what i do it's underlined red
Report Abuse
epicpatrick123 is not online. epicpatrick123
Joined: 08 Sep 2010
Total Posts: 15039
21 Jul 2013 03:41 PM
nevermind i figured it out
Report Abuse
TheWaterfalls is not online. TheWaterfalls
Joined: 08 Jun 2012
Total Posts: 234
21 Jul 2013 04:05 PM
Think before posting... You only needed three minutes!
Report Abuse
Usering is not online. Usering
Joined: 18 Aug 2012
Total Posts: 10281
21 Jul 2013 05:04 PM
You need an end for every conditional statement, loop, or function (for anonymous functions you need to put a closing parenthesis on the pertaining end)

So:

3 ends

end
end
end)
Report Abuse
TheWaterfalls is not online. TheWaterfalls
Joined: 08 Jun 2012
Total Posts: 234
25 Jul 2013 03:38 PM
You need 32 eofs:

end
end
end
end)
end
end
end
end) -- do x 4
Report Abuse
TheWaterfalls is not online. TheWaterfalls
Joined: 08 Jun 2012
Total Posts: 234
25 Jul 2013 03:38 PM
lol
Report Abuse
Usering is not online. Usering
Joined: 18 Aug 2012
Total Posts: 10281
25 Jul 2013 09:02 PM
@the, that is wrong
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
25 Jul 2013 09:03 PM
@user

Two ifs, a for and a function


End
End
End
End)
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
25 Jul 2013 09:04 PM
iPad, why must you do this to me!?

Moo, floodchexk!
Report Abuse
Usering is not online. Usering
Joined: 18 Aug 2012
Total Posts: 10281
25 Jul 2013 09:29 PM
oh i didnt see that lol

~ Add 6276 posts to my post count ~
Report Abuse
TheWaterfalls is not online. TheWaterfalls
Joined: 08 Jun 2012
Total Posts: 234
28 Jul 2013 02:38 PM
lolwhy
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
28 Jul 2013 03:59 PM
iPad, why must you autocorrect my 'Noo!' into 'Moo!'?

Why art thou so cruel?
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