#(moderated)
1 messages · Page 1 of 1 (latest)
alright i can help a little
before you can script the biggest distinction you have to make for every script is the client and server, the server is basically the whole game and the client is the players perspective,
the client is within the server and there can be many because there can be more than one player
you can communicates between these boundaries with things like player inputs, if you were to code in something like sprinting in a 'Clientscript', that would effect the server
there's also events, these are a way to communicate between scripts, remote events communicate between client to server and vice versa,
bindable events are events that communicate between server scripts or client scripts (theres more complexities to it i have yet to get into but thats the jist of it)
** You are now Level 8! **
the first thing in scripting to be aware of is scoping and syntax, for scoping this is a matter of putting in a "local" before the name of the 'variable' or 'function' you wish to 'declare' (first line its created).
syntax is simply a matter of learning the grammer of programming in lua
variables can represent anything in code, a line of text (called string in which you put quotation marks around), numbers (the ones you count with), booleans (true or false values), or even any instance in the game (everything in the explorer and more)
heres and example
local newPart = game.Workspace.Part
there's FAR MORE to scripting but this is a lot of the basic elements, i'd suggest watching brawl dev's beginner scripting playlist
(ALSO FWI INCASE THIS TRIPS YOU UP TOO, A RETURN STATEMENT JUST ENDS A FUNCTION EARLY BASED ON A CERTAIN CONDITION)
https://www.youtube.com/playlist?list=PLQ1Qd31Hmi3W_CGDzYOp7enyHlOuO3MtC
thanks
of course, if you have any questions ill try to answer them
this is coming from a newbie programmer
but i hope my advice helps you
a return statement doesnt JUST end a function early 😔 🙏
Yeah I forgot to mention there was more to it I didn’t understand, my bad
-# @solemn swallow
Use these channels instead: #💵︱hiring #👷︱for-hire #1356283708549759148 #1356283708549759148. (read more)