How to Script CUSTOM ANIMATIONS in Roblox Studio (BEGINNER FRIENDLY)

Поділитися
Вставка
  • Опубліковано 29 вер 2024
  • In this video, I teach you how to script an animation that will play whenever a user presses a key or sends a chat message in roblox. Scripting this kind of animation on key press or chat message sent is a very simple task, as you'll see in this roblox video.
    Twitter: / script_ing

КОМЕНТАРІ • 26

  • @shinnyobupeak
    @shinnyobupeak День тому

    hi, i typed in the script from the video. I may need some tips

  • @ElonMuskBrother
    @ElonMuskBrother 4 місяці тому +1

    thats not seconds, that's frames and every second is 30 frames

  • @Ignition823
    @Ignition823 9 місяців тому +3

    How do you make it so you have to dubbletap w to play the animation

    • @thegamercow773
      @thegamercow773 9 місяців тому +1

      if youre trying to do the running script thing, im also here 😭

  • @akcikas
    @akcikas 3 місяці тому +1

    What if i want my NPC to do animation and not me? pls help, i was making the game and my npc haves one animation from start, when i open the door i want my NPC to have another animation, what should i code then 😢

    • @Hanzolikestsb
      @Hanzolikestsb Місяць тому

      Then make it as maybe a idle check his other vid

  • @AnimatlonsOnline
    @AnimatlonsOnline Рік тому +1

    I tried everything it never works, I've been trying all day & I did everything step by step but I just feel like there's something wrong with my studio. I was wondering if you have any suggestions to help make this work.

    • @scripting
      @scripting  Рік тому +1

      Hi. What are you confused about? It could be that the animation is not owned by you

    • @scripting
      @scripting  Рік тому +1

      Roblox requires you to own the animation before you can use it

  • @CozyStudiosOfficial
    @CozyStudiosOfficial Рік тому +1

    What do you type if you want the key what you press for the animation space?

    • @scripting
      @scripting  Рік тому +1

      Good question. I believe can do
      if key:byte() == 30 then

    • @GlobalOffensiveYt
      @GlobalOffensiveYt 11 місяців тому +1

      please write the script in comments or description :c @@scripting

  • @logabrick3130
    @logabrick3130 Рік тому +1

    what if you want to use the mouse button instead of a key?

    • @scripting
      @scripting  Рік тому

      Use
      player:GetMouse().Button1Down:Connect
      Instead of the mouse.KeyDown:Connect

    • @verycoolwaffle
      @verycoolwaffle 3 місяці тому

      ​@@scripting what about the if statement?

  • @AngryCrown
    @AngryCrown 8 місяців тому

    it keeps stopping the animation in game how do i loop it

    • @scripting
      @scripting  8 місяців тому +1

      Turn on Looped in the animation editor. I will upload a video to help you with this soon. Make sure you’re subscribed

    • @AngryCrown
      @AngryCrown 8 місяців тому +1

      alright ill trust you

  • @NeverEverFaceTheDark
    @NeverEverFaceTheDark 8 місяців тому

    What if you've already got the animation as a child in the script? Or is that bad practice?

    • @scripting
      @scripting  8 місяців тому +1

      Should be fine

  • @DevvStories
    @DevvStories Рік тому

    what if you want to punch to do damage

    • @scripting
      @scripting  Рік тому

      That’s for a new video 😊

    • @AfkBxndit
      @AfkBxndit 11 місяців тому

      could you do a video that playes a block animation and then allows it to block a punch? i haven't seen anything on that@@scripting

  • @Sk4lter
    @Sk4lter Рік тому +1

    roblox devs on their way making money off of toxic emotes

    • @scripting
      @scripting  Рік тому

      It happens. I’m just here to educate!

  • @thegamercow773
    @thegamercow773 9 місяців тому

    local anim = player.Character.Humanoid:LoadAnimation(animation)