Where must i start learning Coding in Roblox Studio?

Hey there ,i am a beginner in Roblox coding.I had learned some basic course, but i don’t understand something, i think it too early to start learning now.I think i need some advise ,need some source for learning FROM THE MOST BASIC TO INTERMEDIATE. The basic i want to know is the usage ,concept of the Methods,Class,Insance ,…When we use it if i don’t know it ,i can’t understand. Example:

Connection = game.ReplicatedStorage.ClaimReward.OnServerEvent:Connect(function(TriggerPlayer)

Source here:Daily reward system gives multiple rewards on click.
I see the code i think:"Wait what is it?what is this line ?Why there is so much the DOT and what is ‘Replicated’? ".Yeah you know ,so i need some source for beginner like me.I NEED TO UNDERSTAND SOME CONCEPT IN ROBLOX STUDIO FIRST!Can anyone share your experience of learning Coding in your life?
My knowledge of coding is a beginner .

3 Likes

RemoteEvents are a fairly advanced concept of programming in Roblox, you may want to start out with simpler techniques, such as the primitive values of Lua for instance.

Like Limited sayed,

If you want to know what it does, i recommend you using the Wiki or a Youtube Tutorial.

Here’s the rundown though.

What is these word after the DOT each variable??

Is that word you make or else??

ReplicatedStorage is just a regular storage, you can clone anything inside of it. So basically, you can write a script that clones the object you want to be cloned in ReplicatedStorage and place it in Workspace. At least that’s what I used it for.

1 Like

The . operator can be used to get a property/child of an object (function from a module, item from a table)
Example:

game.ReplicatedStorage --ReplicatedStorage is a child of the game, meaning I can use the dot operator to get it.
1 Like

Property ,it has any specific function,doesn’t it?

Can you make it clearly? Like some example ???

I don’t really understand what you mean, could you explain it more?

Okkkk,I mean do you see any words after a dot???So you say that is property right???What is it?

local spawner = script.Parent
local spawned = game.ReplicatedStorage.Part

spawner.ClickDetector.MouseClick:Connect(function() --Functions when the spawner is clicked
   spawned:Clone().Parent = game.Workspace  --Clones the object and puts it in workspace
end)

Most basic example that I made up.

1 Like

Can you explain this:

local spawned = game.ReplicatedStorage.Part

I said property/child. Or it could be an event.
Example:

local part = game.Workspace.Part
local partColor = part.Color --Color is a property of the part, so we can get it like this

start with making a uhhh sprint script use userinput service and just change ur humanoid.speed
that will help u get knowledgeable with some events ig

This is not really the most basic, to be honest, but uses fairly simple code.
If you wanna learn about Classes I recommend reading or watching the Concept of Classes in other languages and how it is implemented in Lua.
Here is where I learned from -

You do not need to have an understanding of C++ but the text will provide an account of Classes.

In Lua, the dot operator can be used to access -
Items in a table.

    functions 
    properties

However, in Roblox Studio there are children instances too which we can access through dot operator.
https://developer.roblox.com/en-us/api-reference/property/Instance/Parent

In Roblox, there are Services such as “workspace”, “ServerStorage”, “ReplicatedStorage”
These are used to store instances under them.
Instances not in the workspace will be not visible to anyone.
For the understanding of Replicated Storage thoroughly I recommend you to read these 2 references, these are pretty clean.

Learn about Functions
Learn about Events
Learn about the operators

and the rest will be good for you.

Do not start off too fast but keep trying and you will easily catch these concepts.
Hope I could help.

2 Likes

Wow ,how detailed it is.Thank you so much.You are an experienced programmer!!

local spawned = game.ReplicatedStorage.Part

Really simple actually, it’s a variable for the object located in ReplicatedStorage. In this instance, it’s just a basic Part.

1 Like

Ohhh,Thank you for that useful information.