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: Where did i make error in the code?

Previous Thread :: Next Thread 
GuessWhoGhostIsIt is not online. GuessWhoGhostIsIt
Joined: 17 Sep 2011
Total Posts: 554
20 Oct 2011 12:29 PM
Hello. I am coding a tool. One of code functions needs mouse and key pressed at same time. The function name and parametrs are KP(m, k). But i cant put connection lines. My try:

function TE(m)
m.Button1Down:connect(function() LC(m) end)
(((248 line here))) m.KeyDown:connect(KP(m, key)
end)
end

TE - tool equipped
GetRightClick(m) - custom function

Error - Players.GuessWhoGhostIsIt.Backpack.Tool.LocalScript:250: ')' expected (to close '(' at line 248) near 'end'

Where did i make error and how can i fix it?
Report Abuse
cool12309 is not online. cool12309
Joined: 21 Sep 2008
Total Posts: 1442
20 Oct 2011 12:34 PM
Most of the time, you have to trace the functions back. Line 248 might be fine, but function KP might have an error.
Report Abuse
GuessWhoGhostIsIt is not online. GuessWhoGhostIsIt
Joined: 17 Sep 2011
Total Posts: 554
20 Oct 2011 12:37 PM
Found error(s). In case if anyone was interested:

1)For this one, end is not needed at line 249
2)But also, i needed to define function of getting key(and end at line 249 was for the needed function, i just cutted it out and did not notice it)
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