RemoteEvent & RemoteFunction • How to Script on Roblox

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 พ.ย. 2024

ความคิดเห็น • 108

  • @R4DRR
    @R4DRR 5 หลายเดือนก่อน +18

    Q | Is this a good tutorial?
    A | Yes.
    Q | How do you know that, explain why it is a good tutorial.
    A | Because I keep coming back to it.

  • @a4j7
    @a4j7 ปีที่แล้ว +39

    Underrated video. This youtuber explains things quick and simply. Earned my subscription.

    • @AverageDev_Tutorials
      @AverageDev_Tutorials 7 หลายเดือนก่อน +2

      the youtuber has never looked at education strategies. Teaching at such a quick rate and not teaching information over and over causes you to quickly get left behind

    • @iquitthischannelcuz
      @iquitthischannelcuz 4 หลายเดือนก่อน +1

      @@AverageDev_Tutorials some people like learning at this pace

    • @stupidlysimple
      @stupidlysimple 3 หลายเดือนก่อน

      ​@@AverageDev_Tutorials all of your tutorials are under 1 minute lmfao

  • @Xynthesize
    @Xynthesize ปีที่แล้ว +20

    All other tutorials take at least ten minutes to explain just one concept; you explained new knowledge to me in just five minutes!
    I was so relieved to get this video, as I had trouble passing information from a LocalScript to a Script in ServerScriptService. This video solved that problem very quickly!
    You earned a sub c:

  • @colappse7463
    @colappse7463 2 หลายเดือนก่อน +1

    This is a well made video. All relevant information about remote events explained within 5 minutes. This deserves more views

  • @alexanderwalschaers2969
    @alexanderwalschaers2969 ปีที่แล้ว +11

    This was
    -clear
    -to the point
    -simple
    -explained difference
    -explained use
    Thank you!

  • @greenheroicstone379
    @greenheroicstone379 11 หลายเดือนก่อน +5

    This is probably one of the best scripting tutorial I came across to. Keep up the work

  • @BananaQuillaBonfire
    @BananaQuillaBonfire 13 วันที่ผ่านมา

    this taught me EVERYTHING i needed to know and helped me finish my inventory system

  • @itzfrosty676
    @itzfrosty676 ปีที่แล้ว +4

    Fast, simple, clear. Thanks!

  • @ScriptFedora
    @ScriptFedora 9 หลายเดือนก่อน

    How are you so good at making tutorials that are fast, but easy to understand?

  • @jayvondied5385
    @jayvondied5385 ปีที่แล้ว +1

    thank god i found you it shouldnt take 15+ minutes to explain a simple concept

  • @gyalogdandar2555
    @gyalogdandar2555 11 หลายเดือนก่อน

    thank you so much dude i was struggling with client - server communication a lot but this video made me transcend in roblox scripting like no other tutorial

    • @pratimadas5244
      @pratimadas5244 8 หลายเดือนก่อน

      me too lol, now I can understand it properly.

  • @paifu.
    @paifu. 5 วันที่ผ่านมา

    1:20 Server to Client
    1:40 You are forced to set a parameter to the .PlayerAdded:Connect() function because by default .PlayerAdded gives which player is added to the Paramater of the function it connects to. In this case he called it player since that's what makes sense, but can be called something else.
    That information can be used to know which Player's client to pass this event to, so it's essential to the script working.
    2:13 Remote Functions
    2:58 InvokeClient()
    3:10 Anti cheat

  • @thisenpro6720
    @thisenpro6720 5 หลายเดือนก่อน

    Best one. Quick, fast, and teaches you what you WANT. Sub.

  • @баглюшик
    @баглюшик 7 หลายเดือนก่อน

    The video is really nice and underrated!
    But since i am myself Russian and don't know english completely, it's a trouble to understand fancy words, but still, really good!
    Earned a sub :)

    • @BoevoyHalk
      @BoevoyHalk 5 หลายเดือนก่อน

      тоже понял все по этому тутору

  • @CheazMaster
    @CheazMaster 7 หลายเดือนก่อน +1

    You are a godsend! You just got a new subscriber

  • @tvmushroomz
    @tvmushroomz ปีที่แล้ว

    most useful tutorial i've seen for remote events, thank you!

  • @iinxva5161
    @iinxva5161 ปีที่แล้ว +3

    Really well explained

  • @BackgroundCharacter.
    @BackgroundCharacter. 10 หลายเดือนก่อน

    thank you so much you don't understand how much I needed this

  • @roxxor2553
    @roxxor2553 11 หลายเดือนก่อน +2

    Thank you so muuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuch

  • @happyduck1424
    @happyduck1424 2 ปีที่แล้ว +1

    Thanks for these videos, there more of a review for me so it's perfect.

  • @RealTacticalMax
    @RealTacticalMax 5 หลายเดือนก่อน

    You should also do YT tutorials since your so good at it.

  • @wuxxiV2
    @wuxxiV2 8 หลายเดือนก่อน

    10/10 tutorial. thanks so much man.

  • @mumpsimusceremonius
    @mumpsimusceremonius 11 หลายเดือนก่อน

    ur better than TDK at explaining

  • @shiko_real
    @shiko_real 5 หลายเดือนก่อน

    never used remote functions till now so thx :)

  • @Kylerisano
    @Kylerisano ปีที่แล้ว +2

    How do you get that style of writing?

  • @realTLB
    @realTLB ปีที่แล้ว

    Explained very well, earned a sub!

  • @Pavlos_Life
    @Pavlos_Life 10 หลายเดือนก่อน

    This is so helpful and so qick and simple. Wow!!!

  • @shikihunee6011
    @shikihunee6011 ปีที่แล้ว

    You saved me, you put the remote event in replicated storage, and I put it in the starter gui and it didn't work, so I did the same as you and it worked!!!!!

  • @DemDevDJY
    @DemDevDJY 5 หลายเดือนก่อน

    dude you honestly have no idea how much you helped me out bro ive quite literally been searching for 3 days for a tutorial i can understand. thank u so much man is there anywhere i can help support/donate to you?

    • @jotslo
      @jotslo  5 หลายเดือนก่อน

      Glad to hear! Feel free to take a look at ScriptMate if you think that would be useful for you, but there’s no need otherwise :)

  • @N1cktastic
    @N1cktastic 10 หลายเดือนก่อน +1

    I did literally everything, but I still don't understand.
    Whenever I try to get the client to send stuff to the server, nothing happens. For example, I was tryna get the output to send a message, it doesn't do anything.

    • @Lxmitless7
      @Lxmitless7 9 หลายเดือนก่อน

      make sure localscripts are in starterpack, startergui, the player's backpack, the player's starterplayerscripts, or the player's startercharacterscripts. those are the only places a localscript can work, and when your going to make a localscript inside something, if you hover over the local script button, you can see it says that

  • @user-dp1fz9pg1b
    @user-dp1fz9pg1b 3 หลายเดือนก่อน

    Is this how bindable events/functions also work? (but ofc they are server to server and client to client instead)

  • @CookieMasterRBLX
    @CookieMasterRBLX ปีที่แล้ว

    Incredible work, thanks.

  • @RRtts666
    @RRtts666 8 หลายเดือนก่อน

    Brother, you have a W thanks.

  • @realmrpizza
    @realmrpizza 9 หลายเดือนก่อน +1

    if it not working make sure storage is replicated storage

    • @gamingainggagod1879
      @gamingainggagod1879 3 หลายเดือนก่อน

      Its cause if you look at the top, it says storage = game.replicatedStorage

  • @maxumunum1926
    @maxumunum1926 ปีที่แล้ว

    Im not sure if this is an issue with my computer but the quiz on this episode is the exact same as the quiz from last episode

    • @jotslo
      @jotslo  ปีที่แล้ว

      Oops yes you’re right, I’ve never noticed that before
      Thanks for mentioning, I will get it fixed when I have some free time 🤝

  • @nhan7095
    @nhan7095 ปีที่แล้ว

    Hello jotslo! Thank you first of all since your videos have helped me tremendously with my scripting.
    Im trying to practice this lesson by making a simple countdown, and after mutiple tries, they dont seem to be giving out the result I want. If you can check out, I'd be very thankful!
    Here is the local script:
    local storage = game.ReplicatedStorage
    local event = storage.StartIntermission
    local textLabel = game.StarterGui.ScreenGui.Frame.TextLabel
    local timer = 10
    event.OnClientEvent:Connect(function()
    while timer > 0 do
    textLabel.Text = "Intermission: " .. tostring(timer)
    timer -= 1
    wait(1)
    end
    end)
    and here is the server script:
    local storage = game.ReplicatedStorage
    local event = storage.StartIntermission
    local player = game.Players
    player.PlayerAdded:Connect(function()
    event:FireClient()
    end)
    i placed the server script inside the serverscriptservice, and the localscript inside a frame ( game > startergui > screengui > frame > local script and a textlabel)
    i also placed a remote event inside the replicatedstorage (the remote event name is StartIntermission)

    • @jotslo
      @jotslo  ปีที่แล้ว

      Hey, thanks for the comment - I'm glad you're finding the series to be useful!
      From a quick impression, it looks like you're just calling event:FireClient(), but forgetting to pass over the player that you want to receive the signal.
      In your case, the best solution would be to get the player that joined the game, and then fire the event for that player, which would look like this:
      player.PlayerAdded:Connect(function(player)
      event:FireClient(player)
      end)
      Hopefully this helps!

    • @nhan7095
      @nhan7095 ปีที่แล้ว

      @@jotslo Thanks for the reply! However, they still didn't run as expected :(

    • @jotslo
      @jotslo  ปีที่แล้ว

      I've just noticed another issue - you're referring to the StarterGui to change your text rather than the PlayerGui. I *believe* this is discussed in the LocalScript & ModuleScript episode.
      The idea is that the contents of the StarterGui are copied over to the player's PlayerGui when they join the game, which is where the UI you see on the screen is located.
      So in your case, you would want to use the following to locate your GUI correctly:
      local textLabel = game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame.TextLabel
      Hopefully things will now work for you as expected with this in mind!

    • @nhan7095
      @nhan7095 ปีที่แล้ว +1

      @@jotslo Brilliant! Finally it worked! I'll definitely check that lesson again and thank you so much for helping!

  • @yapperoons
    @yapperoons 9 หลายเดือนก่อน

    not a programmer, i would like to be one. i can bearly understand but this is still very helpful!

  • @blueeple
    @blueeple ปีที่แล้ว

    tysm i needed this for my game good work!

  • @otterryy
    @otterryy ปีที่แล้ว

    question. you mentioned .OnServerInvoke as a propety bui isnt it a callback? or is this callback special and you can set its value?

    • @MistixMC
      @MistixMC 4 หลายเดือนก่อน

      robux

  • @KadeMccarroll
    @KadeMccarroll ปีที่แล้ว

    Thank you, this was helpful.

  • @OSFlames
    @OSFlames 3 หลายเดือนก่อน

    Is there a way so I can make more than just one serverevent to two of em?

  • @0xEARTH
    @0xEARTH ปีที่แล้ว

    hi, i just. don't get it. it's not working for me. did everything to a near exact as you did and the server script just outright is not doing anything. the *button* is working, because the print i set there is working, but FireServer either isn't sending any signal, or the OnServerEvent isn't getting the signal. it's done everything in my power to change things

    • @jotslo
      @jotslo  ปีที่แล้ว

      Thanks for the comment, I can't really do much to help without more information unfortunately.
      If you're still struggling, feel free to ask for advice and send your code over in the scripting-help channel of my help server at discord.gg/N9GRpSC where I'm sure someone can help you properly

    • @0xEARTH
      @0xEARTH ปีที่แล้ว

      @@jotslo i actually managed to get it working, and found it was my own stupidity LMAO
      basically, by force of habit at this point since i started lua in the exploiting scene, i put a game:IsLoaded() check at the top of the script... which meant the remainder of the script never loaded because i had it do game.Loaded:Wait().

  • @CaseAB
    @CaseAB 5 หลายเดือนก่อน

    0:52 plaer (this did help me remember tho thanks lol)

  • @BrawIBros
    @BrawIBros 7 หลายเดือนก่อน

    Actually helpful tutorial

  • @verycoolmicheal
    @verycoolmicheal 5 หลายเดือนก่อน

    how could you pass the player to the local script?

  • @keijocomburrice708
    @keijocomburrice708 3 หลายเดือนก่อน

    1:54 where is the local script supposed to be?

  • @Ethereal5667
    @Ethereal5667 9 หลายเดือนก่อน

    what do i do if it says firserver is not valid

  • @hehe3534
    @hehe3534 3 หลายเดือนก่อน

    4:47 I think you did a big slip up there

  • @Smurfis
    @Smurfis ปีที่แล้ว +1

    Please continue this type of architecture and please allow me to use Rojo and explain this to me as I’ve always wanted to use VisualStudio to code to seem more professional thank you

    • @jotslo
      @jotslo  ปีที่แล้ว

      Thanks for the comment! It seems that Roblox is going to be natively allowing for people to use external code editors like Visual Studio Code soon, so using Rojo will likely no longer be needed, but I can definitely look into making a video on that once it's available!
      Here's a link to Rojo, which should have some resources you might find useful in the meantime: rojo.space/

  • @zzayuh
    @zzayuh 4 หลายเดือนก่อน

    Great video!

  • @dronesoup
    @dronesoup ปีที่แล้ว +1

    now THIS is good

  • @just1v0
    @just1v0 ปีที่แล้ว

    Episode 8 Remotes. Having issues, the code output shows this error: "ORequested module experienced an error while loading", already 2 hours into trying to solve it. And I'm positive my code is right. Here it is:
    local remoteEvent = game.ReplicatedStorage.RemoteEvent
    remoteEvent:FireServer("Hello, world!")
    Tried the other stages, they all show some kind of errors. I think the errors are showing because the script (ScriptMateEnv) isn't located in the right place.

    • @just1v0
      @just1v0 ปีที่แล้ว

      Also, i think that the last quiz is bugged. It showed me the quiz that was in episode 7. Also thank you very much for making this plugin and all of the useful videos. It really boosted my scripting skills. :3

  • @Smurfis
    @Smurfis ปีที่แล้ว

    Could you help me to make this into a module, I'm finding it really difficult to practice sending data across group games and also just transferring data when players leave a fame etc

  • @itzmezephx
    @itzmezephx 11 หลายเดือนก่อน

    dude ur explanation for fireclients didnt help me for a npc thing

  • @TheDiamondEmporium
    @TheDiamondEmporium 5 หลายเดือนก่อน

    Amazing dude

  • @sansdeltarune6969
    @sansdeltarune6969 ปีที่แล้ว

    i think there might be something wrong with the plugin now it wont let me pass the internet part

    • @jotslo
      @jotslo  ปีที่แล้ว

      Thank you very much for the heads up, I’ve been transferring things to a new domain and I believe I accidentally caused some plugin issues in the process
      This should be fixed now

  • @infinitymane9948
    @infinitymane9948 4 หลายเดือนก่อน

    I like your funny words magic man

  • @just_one_guy
    @just_one_guy 3 หลายเดือนก่อน

    i need help, i try copy the script but it dont output nothing (Client remote)

    • @stupidlysimple
      @stupidlysimple 3 หลายเดือนก่อน

      don't copy the script, did you even add a remote event object? Put it in replicated storage

    • @just_one_guy
      @just_one_guy 3 หลายเดือนก่อน

      @@stupidlysimple It dont work client remote, or is just too hard for me understand for now

    • @stupidlysimple
      @stupidlysimple 3 หลายเดือนก่อน +1

      @@just_one_guy sucks to suck

  • @HinamiTestGhoul
    @HinamiTestGhoul 11 หลายเดือนก่อน

    fire all clients when?

  • @MistixMC
    @MistixMC 4 หลายเดือนก่อน

    thanks man

  • @IsabelPerry
    @IsabelPerry ปีที่แล้ว

    Thanks

  • @NolelsTeam
    @NolelsTeam 9 หลายเดือนก่อน

    Tysm

  • @rbu9_
    @rbu9_ 10 หลายเดือนก่อน

    Great vedio, but im so confused, u speaks so fast.

  • @speedcookie
    @speedcookie 5 หลายเดือนก่อน

    What is the script font?

    • @jotslo
      @jotslo  5 หลายเดือนก่อน

      I believe it’s Consolas

    • @speedcookie
      @speedcookie 5 หลายเดือนก่อน

      @@jotslo nice, do you have any plans for future videos?

  • @Jamiel-t8r
    @Jamiel-t8r 2 ปีที่แล้ว

    You are the best

  • @Musket-hi6eb
    @Musket-hi6eb 2 ปีที่แล้ว

    really simple video
    nice

  • @catastrophic_music
    @catastrophic_music ปีที่แล้ว

    doesn't work.

  • @zerdgeofficial
    @zerdgeofficial 5 หลายเดือนก่อน

    Imo remote functions are useless

  • @wonsole
    @wonsole 5 หลายเดือนก่อน

    Can I have ur script theme plz don’t ignore me

    • @jotslo
      @jotslo  5 หลายเดือนก่อน +1

      I believe it’s just the default VSCode theme

  • @NexuYtr
    @NexuYtr ปีที่แล้ว

    W Video

  • @AyushKarki-sy7rg
    @AyushKarki-sy7rg ปีที่แล้ว

    ................

  • @JohnPaul-v2f
    @JohnPaul-v2f 2 หลายเดือนก่อน

    oh-

  • @taxifaxi
    @taxifaxi ปีที่แล้ว

    can i marry you

  • @HarryGay307
    @HarryGay307 5 หลายเดือนก่อน

    420

  • @MaximilianFalkenberg-k7r
    @MaximilianFalkenberg-k7r 4 หลายเดือนก่อน

    you speak way too fast :(

    • @Pyroh01
      @Pyroh01 3 หลายเดือนก่อน

      Just set your playback speed to 0.75 and maybe open captions. Works every time

  • @jedinoah5370
    @jedinoah5370 7 หลายเดือนก่อน

    You go too fast bro

  • @ramannoodles
    @ramannoodles 7 หลายเดือนก่อน

    Thanks

  • @DaNinte9two2
    @DaNinte9two2 หลายเดือนก่อน

    tysm

  • @iceiceburr
    @iceiceburr 5 หลายเดือนก่อน

    thanks