Hello, what is events scripting method?
Please be more specific. What are you talking about?
Are you talking about Remote Events?
They are used to communicate from the server, to the player. There are plenty of tutorials on youtube about this and you should check them out and do some research before posting.
Here are some:
Remote Events - Devking
Remote Events - Alvin Blox
I intend Events Programming (Visual Scrpting)
Think of programing of doing things and changing thing s.
There is no such thing as âEvent scriptingâ, youâre probably talking about using events to optimize your code.
Basically, events have connections which are just functions. They run in âparallelâ.
These connections will be fired here and there when something happens.
For instance, .MouseButton1Click is a event. You can :Connect to it.
Thereâs also :Wait() for events, which âwaitâ until the event has fired.
Basically, a lot of times instead of constantly checking if something is true, for example, you might have a event you can take advantage of, which can help you optimize your code.
In TweenService, which is a service which allows you to smooth transition values and stuff and positions and colors etc.
You get a tween object, this tween object has :Play() which will smooth transition what you asked it for.
But you might wanna do something after this transition is complete.
With TweenService, you give the amount of time you want it to take. In this case, letâs say we transitioned for 5 seconds, instead of using wait(5), we could use Tween.Completed, which is a event, to do that.
Example:
local tween = --\\ tween service trickery which you might not understand
tween:Play()
tween.Completed:Wait() --\\ waits until the tween has been completed.
--\\ do something
wait() and TweenService both have to yield for a small amount of time, then check if the time has passed, if not, continue that, and repeat that until the full time has passed.
Using Tween.Completed:Wait()
would be more optimized, since youâre not checking for that. Thereâs no need. The work is purely on the tween being completed instead of the wait(5) you would have used.
So âEvent Based Programmingâ is just you programming stuff that is optimized well with the use of Events.
Reminder: Only use events where itâs cool to have them. Itâs usually way better, but you should not be out there trying to convert everything into Event based.
Block coding, I think thatâs what youâre talking about.
That is not a thing on Roblox, and will probably never be, and I hope it doesnât.
RetroStudio however, uses Block Coding.