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:
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 .
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.
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.
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)
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.
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.