Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why is there blue under my conversion of word values?

Asked by 9 years ago
CN = String --CustomName for Short, Definition: A CN is Grouping of letters, numbers, and symbols.
TF = Bool --True or False, Use "=" and "True" or "False" to fill it in.
Owner = Parent -- The Name of the group of parts. Such as "Model". Model is the Owner, the Item is Part.
Item = Child -- The item the Owner owns. The Item, or "Child" is one piece or more that makes up the Owner or 
--"parent."
Server = Instance -- Just the servers the game has.
BC = BadgeService -- Instead of BadgeService, it's Badge Controller. BC is short, so use BC for badges!


--FUNCTIONS--
FI = FindFirstChild -- FI Stands for Find Item. If you did Function FI With paramaters (instance, name, recursive)
--it would find these items and you can continue with that script or be done with it.

DI = ClearAllChildren -- DI stands for "Destroy Item(s)". So if you had a map you would destroy it
--with DI.

Copy = Clone -- Copy just makes a another copy of that certain Owner or Item. Owner is nil when you do this, you
-- must change this if you want to make parent be something else.

ItemList = GetChildren -- Lists the Owner's Items. Must use array in front of GetChildren to actually
--get list.

ItemAdded = ChildAdded -- Happens when an Item gets added to the Owner.

None = Nil --Nothing is there, or there is none.


--Positioning/Coordinates Stuff--

Coordinate = Vector3 -- Coordinates, Going in order by (x,y,z).

~~~~~~~~~~~~~~~~~

I can't figure out why it's doing this, I am just trying to convert complicated words in scripting to easier words for me to understand with definitions/things to help.

I also want to publish it for other people aswell to make it easier.

0
There was blue under it, does it mean it was wrong? Percyjacksonpen15 5 — 9y

1 answer

Log in to vote
2
Answered by
BlueTaslem 18071 Moderation Voter Administrator Community Moderator Super Administrator
9 years ago

Renaming things is a bad idea.

  • It is confusing to have two names that refer to the same thing
    • One of the names you will have made up, and no one else will recognize / be able to help with
    • You could confuse yourself or others by accidentally mixing the two
  • A lot of these new names are wildly innaccurate -- there's a reason names are what they are

Blue underlines indicate that there is probably a mistake in your code. If you hover over them, they will tell you what that mistake is (the Script Analysis tab will also show these).


In every instance, the problem looks like

Unknown global 'GetChildren'

There is no such variable as GetChildren. If I try to print(GetChildren), I will get nil -- there's no such thing.

When I do workspace:GetChildren(), that is a property of workspace. That is, workspace.GetChildren is a thing, but GetChildren on its own is not.


A workaround would be this:

ItemList = "GetChildren"

local childrenOfWorkspace = workspace[ItemList](workspace)

but that's just awful.


TL;DR: You can't do this; don't do this, it's a bad idea.


There are badly named things in ROBLOX. You have not picked any of them in this list.

0
It is extremely hard to learn Roblox LUA, I have spend at least 100 hours+ and got almost nowhere. It's time for Roblox to step it up and make more clear tutorials and make the coding make sense. Someone I know works for Oracle and even he cannot even figure this out. Roblox coding is BRUTAL. Percyjacksonpen15 5 — 9y
0
I have no idea what you're talking about. ROBLOX is the most sane platform I have EVER worked with. If you think "DI" is a better name than "ClearAllChildren", you really don't know what you're talking about. BlueTaslem 18071 — 9y
0
ROBLOX has many excellent resources for using their platform. It's easy enough to figure out mostly on your own, anyway, combined with their incredibly extensive documentation.. BlueTaslem 18071 — 9y
0
Where would this "Documentation" be? Roblox wiki is hard to follow and does not tell you clear enough. Python and Java are much easier to code with and no true game guides for Roblox are out. They need to change the language to Python or Java. Not to mention the fact you have to click "Play" to test every script every time. Not very useful. Percyjacksonpen15 5 — 9y
View all comments (2 more)
0
Before you make judgements about Lua, you should probably know it and know why its used. I'm also confused how you expect ROBLOX to know when you want to run your code other than by running it (that's how ALL software works?) The Wiki is very clear. There's also many different choices on the wiki, since, it is, afterall, a Wiki. The API reference is incredibly complete, and also documents *how* to BlueTaslem 18071 — 9y
0
Nothing you have here suggests you are well informed on programming, so I really think you should reserve your judgements until you've learned more, and in particular, learned more diverse things. Picking the one thing you know and saying everything should be like it is comfortable but it's a really awful way to learn. BlueTaslem 18071 — 9y
Ad

Answer this question