User talk:Garretcat/Basic Scripting

From Legacy Roblox Wiki
Revision as of 13:46, 21 January 2012 by >Garretcat
Jump to navigationJump to search

You should test your code before giving it out. Errors will occur when:

  • The game starts.
  • The player has no character at the end of the sixty seconds.
  • Head is not the name of the Player's Head.

Just sayin'. You should add some checking in there.

P.S.: You aren't supposed to sign an article.

(Merlin11188 | Send Message | E-mail |Wiki Writer) — 00:33, January 21, 2012 - UTC
To add on what merlin11188 said, you should also indent your code. Also, I don't think you should recommend them the Remove method, considering it is deprecated. You should recommend the Destroy method instead.
I'd recommend you adding onto another tutorial instead of writing yet another one of these, of which there are sevearl on the wiki. - Quenty (talk • January 21)
I know these errors, I thought about it, but the intention is not to copy the script, but to learn the basic materials required. It is also assumed that if they do copy the script, It will be while they are in the game, in which they are already loaded. I also did test it, Even though it is very simplistic. I'm a experienced coder, I fix people's scripts every day, I can see errors. Also, I recommended :Remove() over :Destroy(), in the terms that :Destroy() if they get in the habbit of using, can in some cases glitch when being used with a user; As I have found, I tested that when they released it, and have not tested it since, so that may not be entirely acurate. I appreciate the criticism
-Garretcat | Send Message | E-mail |Wiki Writer — 13:46, 21 January 2012 (UTC)