Scubadoo2
|
  |
| Joined: 15 Jul 2008 |
| Total Posts: 98 |
|
|
| 04 Nov 2013 10:02 PM |
This is a place that you can post things that you figured out while scripting that you wish you knew a long time before you put so much effort doing it the hard way. Hopefully other people can learn from what we learned and do it the easy way and not the hard way.
Here is mine:
Spending weeks trying to manipulate the camera to do first-person without being able to zoom out and then figuring out there is a "LockFirstPerson" Property in the LocalPlayer's CameraMode.
*Facepalm* |
|
|
| Report Abuse |
|
|
|
| 04 Nov 2013 10:04 PM |
| I always incorporate four-five functions in my code and fool myself into thinking that I wrote the functions. When testing time comes I realize that I only have half my script done. |
|
|
| Report Abuse |
|
|
|
| 04 Nov 2013 10:23 PM |
| Spending several minutes, sometimes hours trying to fix a script that has a while loop in the front. |
|
|
| Report Abuse |
|
|
Tenal
|
  |
| Joined: 15 May 2011 |
| Total Posts: 18684 |
|
|
| 05 Nov 2013 12:30 AM |
I was in the middle of scripting an engine that allows German characters (umlauts, ß ligature) by having separate GUI objects and all that good stuff. Then, a couple of weeks later, Roblox enables German character support. Wow. Guess that's a good thing, though. But quite a waste of time on my part.
And um. I have a ton of these but I can't think of them. |
|
|
| Report Abuse |
|
|
|
| 05 Nov 2013 05:18 AM |
Nothing much, except for:
*writes 2500 lines of code*
*doesn't work on it for a few days*
*returns and scraps the whole thing because i can't seem to continue working where i left off* |
|
|
| Report Abuse |
|
|
|
| 05 Nov 2013 05:23 AM |
*makes a instance creation function* *realizes there's one (Create) in the RbxUtility Library a few days later* |
|
|
| Report Abuse |
|
|
RaidenJPN
|
  |
| Joined: 22 May 2013 |
| Total Posts: 6920 |
|
|
| 05 Nov 2013 05:48 AM |
When I first begun Rbx.Lua,
I had spent 4 days trying to insert the player's photo into a GUI,
and then I find out about the UserImage API
http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username= |
|
|
| Report Abuse |
|
|
|
| 05 Nov 2013 06:45 AM |
| Can't seem to get the parts in the right position for terrain generation. Later on realizes that I were subracting 10 to the z axis instead of adding 10 to the z axis. |
|
|
| Report Abuse |
|
|
| |
|
Scubadoo2
|
  |
| Joined: 15 Jul 2008 |
| Total Posts: 98 |
|
|
| 05 Nov 2013 08:58 AM |
Here's another one that happened to me recently:
Pulling my hair out trying to make sure the CoreGui doesn't glitch while something is happening and then realising you can turn it off and on at will from the PlayerGui.
*facepalm*facepalm*facepalm* |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 05 Nov 2013 09:44 AM |
| Am I the only one who always types descendant wrong... |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 05 Nov 2013 09:46 AM |
aagh
the grammar in that sentence above.
'Am I the only one who always types descendant wrong...'
should be:
'Am I the only person who always manages to spell descendant incorrectly?' |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
Scubadoo2
|
  |
| Joined: 15 Jul 2008 |
| Total Posts: 98 |
|
|
| 05 Nov 2013 10:46 AM |
@ cntkillme
No you're not, I spell it wrong sometimes. I don't think ANY of us are alone on ANY of our facepalms. That's another reason why I made this, to let go of feeling we aren't enough and see that even the best of scripters have facepalm moments.
Here's another one of mine. Getting frustrated trying to get scripts to "talk" with either and then finding out about the BindableFunctions and BindableEvents.
And on that note shooting steam out of my ears because it seems like they are broken and then seeing that I have to use the RemoteFunction and RemoteEvent.
I don't know what is worse: my fails... or the amount of them. |
|
|
| Report Abuse |
|
|
BAUER102
|
  |
| Joined: 03 Apr 2010 |
| Total Posts: 5936 |
|
|
| 05 Nov 2013 10:53 AM |
Spending two hours trying to debug a localscript and then finding out that putting a 'wait(0)' at the top fixes everything.
Setting the 'Speed' variable to 0 and wondering why nothing moves. |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 05 Nov 2013 10:57 AM |
A facepalm I had:
figuring out why the CoreGui wouldn't hide and when I looked back at my code the script was disabled entirely...
Derp! |
|
|
| Report Abuse |
|
|
Dr01d3k4
|
  |
| Joined: 11 Oct 2007 |
| Total Posts: 17916 |
|
|
| 05 Nov 2013 11:03 AM |
2 things that happened today (for Android though, not Lua):
- context.getAssetManager().open("edict2.txt") appeared to be working, but when I tried to print a line from it to the log, I just got an error, and when I googled that error, I only got something about something in Javascript using geolocation. Turns out the file was just called "edict2".
- Wondering why I kept getting a NullPointerException when trying to read data out of a bundle (key-value pair that is used to pass data between activities (pages in an app)) that I know I put in the bundle, having a complete wth moment, then realizing the key I'm trying to read is used for a completely different section of my app and I didn't notice this because of auto-complete. |
|
|
| Report Abuse |
|
|
lordrambo
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
|
| 05 Nov 2013 11:06 AM |
I was trying to turn off the CoreGuis. I kept using "GetCoreGuiEnabled". I needed to use SetCoreGuiEnabled.
Another one: I was getting frustrated with trying to store data the way I wanted to. Then I realized I could simulate multi-dimensional arrays by putting an array inside another array. |
|
|
| Report Abuse |
|
|
|
| 05 Nov 2013 01:30 PM |
for i, v in next, game.Players:GetPlayers() do if v.Character and v.Character:FindFirstChild'Head' and v.Character.Head:FindFirstChild'face' then Instance.new('Part', v.Character.Head.Face).Name = 'falm' end end |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 05 Nov 2013 01:46 PM |
YOU DERP'D
YOU NAMED THE PART FALM, NOT PALM. |
|
|
| Report Abuse |
|
|
Scubadoo2
|
  |
| Joined: 15 Jul 2008 |
| Total Posts: 98 |
|
|
| 05 Nov 2013 01:46 PM |
Just remember this one. This one was infuriating.
Trying to get a part to face something while welded to another part... then figuring out how to properly use the ConvertToObject function of CFrame.
*facepalm* |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 05 Nov 2013 01:48 PM |
*facepalm*
there is no ConvertToObject function of CFrame |
|
|
| Report Abuse |
|
|
| |
|
|
| 05 Nov 2013 02:10 PM |
| Wondering what's wrong with my two hundred line script only to realize I didn't capitalize a "Parent" in one of the directories. |
|
|
| Report Abuse |
|
|
| |
|