|
| 16 Nov 2014 12:00 AM |
What's the update?
- All new thumbnail to the place - A all new SPECIAL TUTORIAL
Here's the place:
http://www.roblox.com/Scripting-Tutorials-NEW-TUTORIAL-1-11-place?id=167257678
There are also other tutorials you can learn from that place. Such as Tweening, Interpolates, random colors, touched events, keydown events, and MUCH, MUCH, MORE!
[By the way to the haters out there, I am not doing this for fame, riches, nor fortune; I am doing this out of my generosity.] |
|
|
| Report Abuse |
|
|
MechaDuck
|
  |
| Joined: 01 Apr 2013 |
| Total Posts: 2415 |
|
| |
|
lordrambo
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
|
| 16 Nov 2014 12:13 AM |
Okay well there's a few things like this "function Barney (playerwhoclicked) -- Name your function like it's your a pet. I named mine Barney. In parantheses put in 'playerwhoclicked'."
Name your function what it does, so you (or anyone else reading) doesn't have to look through your code to know what it does. This is important when you are working with other people or going back through code you have written a while ago. Same with your variables, name them what they are (not single letters, like in your map changing script).
Your button that changes the brick to a random color is missing a debounce.
In your spinPart script you should use math.rad(degreesToRotate) rather than 0.02 in radians.
You GUI stuff (real GUI stuff not SurfaceGuis) should be in local scripts. Don't make the server process a single client's data if you don't have to. You also can then use game.Players.LocalPlayer to get the player.
I believe your Shop open/close button will break if the person clicks too fast.
Altogether it was a lot better than I was expecting it to be. Most of these are garbage. It could definitely use a few tweaks but overall you did a pretty good job. |
|
|
| Report Abuse |
|
|
|
| 16 Nov 2014 12:20 AM |
Your about right; half of these tutorials are garbage. Mainly because I'm trying to teach the player the beginning of scripting. I don't want to skip ahead. As for the debounce, I was planning on saving it for the next tutorial.
Thanks for your tips and criticisms :3
- DeisgnerDavid |
|
|
| Report Abuse |
|
|