Can someone please tell me on how to script?

Hello everyone! i have decided to try and learn Lua but i have been finding it hard, i dont know how or what stuff i should use to code. so if one of you can tell me some tips i would very much apreciate it!

~wanu10

There are a lot of resources that you could use!
Youtube: https://www.youtube.com/c/alvinblox, https://www.youtube.com/c/TheDevKing
CodeKingdoms: https://codekingdoms.com/ (costs money)
Looking at other peoples code in toolbox, or just by watching somebody else code.
I used a different version of code kingdoms to learn to script, but it is now broken. The new version is a lot better, but costs money to complete more than 1 course. It’s okay though, youtube videos are still a great way to learn!

1 Like
1 Like

If you are a absolute begineer then watch @Alvin_blox’s videos. You can watch begineer series to learn Lua Syntax, Watch his tutorials (how to make a overhead, how to make a intermission gui etc) and recreate games with his videos

I wouldn’t recommend TheDevKing because some of his tutorials are outdated or don’t work.

If you get better you can start browing the Developer Hub.

2 Likes

if you mind to tell me, what are the parameters used for in function(“parameter”)
i have a hard time figuring out what that is, btw thanks everyone for helping:D

A quick google will give you the answer. Just look up how to use functions in lua, or in roblox lua.

are the videos of 1 year ago outdated? or did he create new ones

This is how parameters work.

function test(n) -- The "n" inside the parenthasis is a parameter
    print(n)
end

test(5) -- Prints "5"
test(5 - 2) -- Prints "3"

Another example is,

function addNumbers(a,b)
   return a + b -- This will return the sum of a and b
end

local sum = addNumbers(5,5)

print(sum) -- Prints "10"
2 Likes

@Chinesse_apes
are the alvinblox videos from 1 year ago outdated? or do they still work.

Which one?

This text will be blurred

If they are only a year old, it will most likely still work. If not, you can use the roblox creator documentation which will correct the information.

what do you mean? is the roblox creator documentation a video of his?

his last tutorial was 1 year ago

I mean that roblox’s documentation will always have up-to-date information. If alvinblox uses now deprecated methods, you can refer to the documentation to fix the code.

If it’s about variables, functions and events etc… It’s not outdated

does this video work?
@Chinesse_apes
and if it is good, how should i learn from it.

The EASIEST Beginner Guide to Scripting (Roblox) - YouTube

I wouldn’t be too worried about getting outdated information stick to videos posted with in 2 years and you shouldn’t have any problems. You can always check the Documentation to see if whatever your coding is using outdated methods.

2 Likes

alright thank you for the information.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.