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

Can i get help With remembering scripting items needed?

Asked by 8 years ago

I couldn't remember one type of scripting item every time i get into studio i'd forget anything on scripting although i just watched a video or read something about it about not even 2 minutes ago

0
You may be trying to remember stuff wrong. Don't just memorize random pieces of code; learn exactly how they work. This makes them much easier to use in the future. If you don't understand something, this site is a great place to ask. Perci1 4988 — 8y

2 answers

Log in to vote
3
Answered by 8 years ago

Keep practicing. Scripting takes time and effort to learn and remember Use comments

--This is a comment, it will not do anything but lets you remember things

to remember what you learned. Follow along with a video or even use a free model and study it, then try to recreate it. Keep practicing, you will remember. Once you know it, you can't forget it. You may be a bit rusty, but it's like when you learn to ride a bike, you won't forget, you might just fall off a few times, but you'll get back up.

Here's a small thing for basic stuff -

print("Hi, I print") -- prints to the output a message
local -- local variable
myNumber = 5 -- a variable that is set to the number five
myBool = false -- a boolean is a variable that is either true or false ; yes or no
myString = "String" -- a string is a text variable

while true do --this does something every fraction of a second. in this case, we're going to set it to wait every 3 seconds and print ('hi')
print("hi")
wait(3)
end

for i = 5, 1, -1 do -- counts down from i to the second arguement by the third argument ( in this case it counts down from 5 to 1. 
print("Number: " .. i -- double periods means to connect something. if we had (print("1" .. "2")) it would print "12" because they were joined.
wait(1)
end
0
Thanks i will do this xXLozCozXx 10 — 8y
Ad
Log in to vote
1
Answered by
1waffle1 2908 Trusted Badge of Merit Moderation Voter Community Moderator
8 years ago

If you can't remember names of methods/events then you can use the built-in intellisense that studio has, which will list different things you could potentially be indexing when you reference some object or service. Alternatively, you could leave a wiki tab open, or just create a variable reference to everything in the actual script so you don't have to remember it and the game doesn't have to access it repeatedly.

0
But this stuff is so confusing when it comes to remembering things thanks for your anwser xXLozCozXx 10 — 8y
0
What is it that you can't remember? Here I'm referring to names of methods and events, things that are specific to Roblox's development engine and not just fundamental Lua programming syntax. 1waffle1 2908 — 8y

Answer this question