How to make a SIMPLE SWORD BARRAGE in ROBLOX STUDIO!

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ค. 2024
  • How to make a Sword Skill in Roblox Studio
    This is a tutorial about making a sword skill in Roblox Studio. Make sure to subscribe and leave a like!
    Thanks so much for watching!
    Chapters:
    0:00 Intro
    0:30 Animating
    1:53 Scripting
    4:20 VFX
    5:02 Scripting again
    14:05 Last minute changes
    15:20 Outro
    Music used:
    SMRPG - Forest Maze: • Super Mario RPG - Fore...
    SM:W - Overworld: • Overworld Theme - Supe...
    MK:DD - Circuit Theme: • Circuit Theme Mario ...
    MK:W - Maple Treeway: • Maple Treeway - Mario ...
    SMB2 - Overworld: • Super Mario Bros. 2 Ov...
    roblox particle,roblox tutorials,lighting tutorials,roblox studio,roblox plugin,roblox anime vfx,modeling tutorials,building tutorials,lighting,particles,particle tutorials,particle emitter,lights,modeling,building,roblox vfx,vfx tutorials,light,roblox,studio,tutorials,gaming,builds,models,blender,tutorial,build,games,model,plugins,help,game
  • เกม

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

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

    I love watching you script, I try to read and under stand on whats going on so I could script better in the future.

  • @nathanranc8565
    @nathanranc8565 ปีที่แล้ว +21

    (This is me being very knit-picky, overall good script for beginners!)
    Careful with using the Touched event, if you were to move back and forth, making the damage part hit them several times in one usage, that character you use it is as good as dead! since it will enact the function several times which could also be exploited :P
    Also intrigued on why you used a coroutine instead of just putting the function at the end - works nonetheless though!
    Great work

    • @zahra4867
      @zahra4867 10 หลายเดือนก่อน +2

      i just gave the dummy a tag, and if the dummy has the hittag it cant be hit several times, so that fixes that problem.

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

    tysm bro, i got a lot of Knowledge from this video.

  • @Realseee
    @Realseee ปีที่แล้ว +5

    Good video!

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

    great tuto , thanks bro

  • @prodcatretran
    @prodcatretran ปีที่แล้ว +43

    1st script:
    local db = false
    local dbtime = 1
    script.Parent.Activated:Connect(function()
    if db == false then
    db = true

    local char = script.Parent.Parent
    local humanoid = char:WaitForChild("Humanoid")
    local anim = humanoid:LoadAnimation(script.Animation)
    anim:Play()

    anim:GetMarkerReachedSignal("Barrage"):Connect(function(parameter)
    print(parameter)
    script.Parent.Barrage:FireServer(char)
    end)

    anim:GetMarkerReachedSignal("BarrageEnd"):Connect(function(parameter)
    print(parameter)
    script.Parent.BarrageEnd:FireServer()
    end)

    wait(dbtime)
    db = false
    end
    end)
    2nd script
    script.Parent.Barrage.OnServerEvent:Connect(function(player, char)
    local humrp = char:FindFirstChild("HumanoidRootPart")
    local barrage = script.BarrageEffect:Clone()
    barrage.Anchored = false
    barrage.Parent = humrp
    barrage.CFrame = humrp.CFrame + (humrp.CFrame.lookVector * 6)
    local weld = Instance.new("WeldConstraint", barrage)
    weld.Part0 = barrage
    weld.Part1 = barrage.Parent
    barrage.Attachment.ParticleEmitter.Enabled = true

    local damage = Instance.new("Part", barrage)
    damage.CFrame = barrage.CFrame
    damage.Size = Vector3.new(7,7,7)
    damage.Shape = "Ball"
    damage.Transparency = 1
    damage.CanCollide = false
    damage.BrickColor = BrickColor.new("Really red")
    local weld2 = Instance.new("WeldConstraint", damage)
    weld2.Part0 = damage
    weld2.Part1 = damage.Parent

    damage.Touched:Connect(function(hit)
    if hit.Parent:FindFirstChild("Humanoid") and hit.Name == "HumanoidRootPart" and hit.Parent.Name ~= char.Name then
    local counter = 0
    coroutine.wrap(function()
    while wait(0.1) do
    counter += 1
    if counter < 10 then
    local ehumanoid = hit.Parent:FindFirstChild("Humanoid")
    ehumanoid:TakeDamage(1)
    elseif counter == 10 then
    break
    end
    end
    end)()
    end
    end)

    script.Parent.BarrageEnd.OnServerEvent:Connect(function()
    barrage.Attachment.ParticleEmitter.Enabled = false
    wait(barrage.Attachment.ParticleEmitter.Lifetime.Max)
    barrage:Destroy()
    end)
    end)

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

      Thanks

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

      great now i can finish it in time thanks alot

    • @ab-kg1rr
      @ab-kg1rr 11 หลายเดือนก่อน

      Thank you bro

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

      bro acc thanks i aint gonna spend loads of time now lol

    • @user-nl8nt1bv9n
      @user-nl8nt1bv9n 7 หลายเดือนก่อน

      Thank you so much!

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

    thank you so much man

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

    Works tysm (:

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

    man says basic i think he is doing complex math (jokes) you vides are the best man

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

    Thx u so much brotha

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

    thx for teach something ^^

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

    Mate is flexing with the "just a short animation"

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

    nice

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

    Hey! Love your videos. Can you recommend anything to can watch or share some tips on how to start scripting on Roblox Studio? I wanna start scripting myself but I've got no idea on how or where to start.

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

      alvinblox tutorials!

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

    I love your vids

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

      I love you

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

    now make a tutorial on how to make a teleporting/dashing sword skill please

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

    Thx broooo

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

    please make a skill tree to upgrade damage or decrease cooldowns or to unlock these skills thx so much if u do

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

    with what button do you activate the ability 7:40 and when i do it like you do (trying out the game in 7:40) the particle thingy just stays were i put it

  • @user-tc8dw4dq4r
    @user-tc8dw4dq4r ปีที่แล้ว

    In the next video, please make a monster that uses sword skills.

  • @user-qs6yo4dp6o
    @user-qs6yo4dp6o ปีที่แล้ว +3

    An attack animation will be displayed, but no damage and no effects

    • @Tagser
      @Tagser 11 หลายเดือนก่อน +1

      Yes the same thing happened to me

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

      @@Tagser Also

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

    Oi bro i dont know why but my VFX doesnot come in front of my character and the animation also does nt work/start what should i do

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

    can you show how to design a boss fight

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

    Make a magic staff that shoots a projectile.

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

    You are saving tools on "starter pack" that is only client side? or not? i want some animation only for local and some for the server

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

    For the DB, how do you make it sou can see the timer in the corner of ur screen?

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

    your guides is very good

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

    please make a tutorial on how to make a sword dashing skill!!

  • @arenjan
    @arenjan ปีที่แล้ว +19

    hey, just a tip, instead of having a "counter" variable and a while loop, you can just use a for loop to have the same result
    for i = 1, 10 do
    (put the damage stuff here)
    wait(0.1)
    end

    • @SnakesRobbs
      @SnakesRobbs  ปีที่แล้ว +5

      i forgot for loops exist, i was kinda braindead making this video lol

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

      @@SnakesRobbs lmao

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

      I thought loops was
      While true do
      End

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

      @@slordhd5912 but like... there are... multiple types of loops crazy i know

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

      ​@@arenjan i just started learning scripting 1 month ago 💀

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

    make sure to check out my friend's game's discord!
    discord.gg/eBpKC764cs
    also message me on discord if you have any problems!
    snakesrobbs#1509

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

      the only problem with this video is the only thing people need are the scripts youve made but you havent pasted them into the comments or description the second script is incredibly long and quite literally impossible to copy without it pasted into the comments

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

    hi robb i was wondering instead of click/holding to activate the ability can u do a sword skill when pressing e to activate it?

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

      8 months late but first make a variable for the user input service (local uis = game:GetService("UserInputService")
      then replace script.parent.activated:Connect(funtion()) with uis.InputBegan:Connect(function(key))

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

    the first time i do it works but the second or third time the particles dont show up, please help me

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

    LOVE U AND UR GIRL BRO

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

    How can I create code for unlock door, or lock door, that just I can do this? (I want to open this with a code, for example, "!unlockdoor" Or "lockdoor") Because in my game I want to do a place of competition that Im the only one who can open it for everyone when the competition will be.

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

    Me: who has been trying hard everyday on creating the animation with the input E does not work...
    Pros: God Being's with Great Knowledge

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

    how to adjust the attack like make the your character in the middle of the particle

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

    Can you make this with a gui on the side like in blox fruits?

  • @SergeantNooob
    @SergeantNooob ปีที่แล้ว +17

    this video is very yes

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

    thank you! could you make a file for this? i had some issues when i was making it so i was wondering if you could just give me a download of yours.

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

    How do I get that effect pallet u had at the start

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

    Wouldn't this make it so that you only have to hit the barrage for one second and your enemy takes the 10 ticks of dmg?

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

      yea, theres only one part for it to run off of, with a touched event so even if you touch it at the last second it will continue to deal damage for1 second even though the animation's long gone. Im pretty sure you can fix this by making the script spawn 10 parts instead of 1 part, this will also allow for rotation while its happening

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

    I did everything correctly but nothing is happening and in the output "unable to cast value" is displayed

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

    Uhh I need help so I did everything and when I did i do t have a keyring so I can't test it or anything

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

    In future video's can you put the scripts in the comments and add comments where we have to change our animation's thanks

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

    Wow this motivated me to start animating on Roblox studios

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

      Glad to hear it!

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

    how do i find the vfx bourd

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

    Output Said BarrageEffect Its not a valid member of script
    how to fix that

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

    Bro pls can you when we press "a" thé combo sstart and not m1

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

    Can you help me make a grab attack? since all of the grab moves that are actually in youtube and google are all free models ;-;

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

    how do i set a keycode like Enum.KeyCode.R
    Enum.KeyPress:R or is it different?

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

    humm i didn't see the keybind for start the attack if you read the message

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

    heres the script for anybody who needs it
    local db = false
    local dbtime = 1
    script.parent.activated:connect.(function()
    if db == false then
    db = true

    local char = script.parent.parent
    local humanoid = char:waitforchild("humanoid")
    Local Anim = Humanoid:LoadAnimation(script.animation)
    Anim:play()

    anim:GetMarkerReachedSignal("barrage") :connect (function(paremeter)
    print (paremeter)
    script.parent.barrage:FireServer()
    end)

    wait(dbtime)
    db = false
    end
    end)

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

    How do you get the effect kit?

  • @user-gl8yz2os8n
    @user-gl8yz2os8n ปีที่แล้ว +1

    How to make block sword, plss

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

    Everything works for me but there only one thing that i have a problem with. I cannot do any dmg on the npc, can you help me ?

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

      Can you send your script?

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

    it did not work
    i tried redoing it 5 times aint working let me try again

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

    reminds me of blox fruits kinda

  • @dungtruong2204
    @dungtruong2204 2 วันที่ผ่านมา

    How to change the keybinds?

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

    please can you make a lightning spell ability

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

    Question how do we Connect it with FlipAnimation

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

    and whats the other remote event

  • @Bruh-rh9mj
    @Bruh-rh9mj ปีที่แล้ว +1

    7:21 For me, there's an error saying, "Spin(/Barrage for you) is not a valid member of Tool "Players.(Username).Backpack.(item name)" - Server - Server:1"

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

      is the spin in the tool?

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

      @@SnakesRobbs i got the same error i figured out it deleted the spin effect in his/her's case after clicking once i kidna need help getting that fixed

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

    how to start the animation ?, i can't start the animation

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

    I need help with the katana model

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

    1st script
    local db = false
    local dbtime = 1
    script.Parent.Activated:Connect(function()
    if db = false than
    db = true
    local char = script.Parent.Parent
    local humaoid = char:WaitForChild("Humanoid")
    local anim = humanoid:LoadAnimation(script.Animation)
    anim:GetMarkerReachedSigna1("Barrage") :Connect(funtion (parameter)
    print(parameter)
    script.Parent.Barrage:FireServer ()
    end)
    wait(dbtime)
    db = false
    end
    end)

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

    hi bro, I need help how to make you click on the screen and the animation of a sword strike appears and he also inflicted damage, I looked all over TH-cam how to do it. can you help me?

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

      I need mobile control

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

      thank you if you say it, i need it!

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

    Is this only working on R6 characters? Because i'm using R15 and at the part where the part should appear infront of the chracter it doesn't appear (7:30).

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

      i think if you have a r15 animation it works, but the part error idk, i have the same problem

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

      same the part doesnt appear

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

    how do iadd the firing?

  • @legobob1
    @legobob1 6 หลายเดือนก่อน +1

    mine won't weld it keeps staying i the same spot and doesnt turn with my character

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

      I think your weld failed to create, can you send your script?

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

    Can you make a baller ability

  • @Redy-
    @Redy- ปีที่แล้ว

    i cant place the katana on the dummys hand why?

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

    mine appears in someones body and it didnt show up in my body+

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

    Stop-spot: 8:00

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

    blud taught more than alvinblox in 2 videos.....

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

    Can I have the palette of images?

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

    can i make a gun skill with this

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

    can you use a mesh for the VFX?

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

    how to make a move that moves

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

    how do you have all those box vfx on the floor? is it like from toolbox? i cant seem to find it

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

      it's called bingus particle pack

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

      @@kana1z0 thank you

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

      np

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

    can you make it where it activates by pressing Z?????????????????????????????????????????????? Otherwise it is useless for my case

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

    The particle didn't show up

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

    BRO I CANT PUT THE SOWRD IN HIS HAND

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

    how to add sword to hand im dumb

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

    What particle asset do you use?

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

      bingus

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

      @@justdddd thanks

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

    its cool and all but you forgot to put the link to your friend's game

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

      Its in the pinned comment!

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

      cant find the comment@@SnakesRobbs

  • @user-qs6yo4dp6o
    @user-qs6yo4dp6o ปีที่แล้ว

    r15 can use?

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

    i cant see what your pressing

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

    ( 7:30 ) the part appears, but not in front of the character, i made exactly the same thing. What its happening?

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

      + the particles does not appear to

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

      same for me

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

    bro i want this but no work because i put script then click then it wont spawn a block :/

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

    Can you explain how to add a cool down please thanks

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

    4:20 can I have the link of the like table of vfx

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

    15:40
    :D

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

    for some reason the part wont appear infront of my character, neither will the particle enable, is there anyway to fix this issue?

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

      same to me

    • @user-qs6yo4dp6o
      @user-qs6yo4dp6o ปีที่แล้ว

      me too

    • @mistermister8354
      @mistermister8354 11 หลายเดือนก่อน +1

      @@user-qs6yo4dp6o attachment does not get cloned, therefore particles dont appear

    • @user-qs6yo4dp6o
      @user-qs6yo4dp6o 11 หลายเดือนก่อน

      @@mistermister8354

    • @user-qs6yo4dp6o
      @user-qs6yo4dp6o 11 หลายเดือนก่อน

      @@mistermister8354 how to do ?

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

    pls bro answer me
    and help me

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

    hey can u send the model

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

    it spawns infront of me but sings to the bottom of the map

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

      you have to weld it

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

      @@SnakesRobbs it's not appearing infront of me whats going on?

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

      @@randommemes9462 are you using r6?

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

    help!!,why my animation dont stop its loop.

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

      try re-exporting it without looping it

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

    :( mine wont work

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

    Next time please explain what you are doing instead of just saying write the code

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

    local db = false
    local dbtime = 1
    script.Parent.Activated:Connect(function()
    if db == false then
    db = true

    local char = script.Parent.Parent
    local humanoid = char:WaitForChild("Humanoid")
    anim:Play()


    anim:GetMarkerReachedSignal("Barrage"):Connect(function(parameter)
    print(parameter)
    script.Paremt.Barrage:FireServer()
    end)


    wait(dbtime)
    db = false
    end
    end)