[Roblox Studio] How to make Lightning

Sdílet
Vložit
  • čas přidán 25. 07. 2022
  • -------------------------------------------------------------------------
    Discord: DanutzuJMK Capybara#1668
    Discord Server: / discord
    Instagram : / daniel._lazar
    Facebook : / daniel.lazar.71465
    TikTok: www.tiktok.com/@danutzu07?lan...
    Roblox Group: www.roblox.com/groups/8514703...
    -------------------------------------------------------------------------
  • Hry

Komentáře • 33

  • @rednessgod5729
    @rednessgod5729 Před 9 měsíci +2

    local Lightning = {}
    local TweenService = game:GetService("TweenService")
    function drawlightning(parent, size)
    local p1 = workspace.TaserStub1.Position
    local p2 = workspace.TaserStub2.Position
    local part = Instance.new("Part", parent)
    part.Anchored = true
    part.Material = Enum.Material.Neon
    part.BrickColor = BrickColor.new("Medium blue")
    local dist = (p2 - p1).Magnitude
    part.Size = Vector3.new(size, size, dist)
    part.CFrame = CFrame.new(p1, p2) * CFrame.new(0, 0, -dist / 2)
    TweenService:Create(part, TweenInfo.new(0.15), {Size = Vector3.new(size, size, 0)}):Play()

    delay(0.2, function()
    part:Destroy()
    end)
    end
    function Lightning.Bolt(NumOfPoints, offset, size)
    local p1 = workspace.TaserStub1.Position
    local p2 = workspace.TaserStub2.Position
    local Points = {}

    for i = 1, NumOfPoints do
    local Offset = Vector3.new(math.random(-offset, offset), 0, math.random(-offset, offset))

    if i == 1 or i == NumOfPoints then
    Offset = Vector3.new(8, 8, 8)
    end

    local part = Instance.new("Part", workspace)
    part.Anchored = true
    part.Material = Enum.Material.Neon
    part.BrickColor = BrickColor.new("Medium blue")
    part.Size = Vector3.new(0.5, 0.5, 0.5)
    part.Transparency = 1
    part.Position = p1 + (p2 - p1).Unit * ((p2 - p1).Magnitude / NumOfPoints * i + offset)

    table.insert(Points, part.Position)
    end

    return Points
    end
    return Lightning

  • @imaSeraphRBX
    @imaSeraphRBX Před 2 měsíci

    Thank you very much! I tried making one myself, but it was always a little off it's mark.

  • @jazzyarmando1234
    @jazzyarmando1234 Před rokem

    Top

  • @xDomReal
    @xDomReal Před 9 měsíci +1

    the lightning isnt visible from the clientside, do you know how i can fix this to make an actual ability out of it?

  • @tashfiqhashan6632
    @tashfiqhashan6632 Před 8 měsíci

    do you have video on how to make actual abilities using the module script. Instead of part 1 and part 2 i wanted one point to be my humanoid's arm and other point to be the place i click on. How will i make this happen? can you please help?

  • @dxter7883
    @dxter7883 Před 11 měsíci

    Can you make a tutorial on speedster lightning? For ex: I press a certain key which enables super speed and the player generates a lightning trail as it runs. If somebody else knows how to, please help.

  • @sceptyultra3635
    @sceptyultra3635 Před rokem

    it says unknown global offset

  • @imamabraham
    @imamabraham Před rokem +1

    can you please make a script so when you touch the ball you get it in your foot and then when you click you shoot it to whereever your mouse is in. I like you vids

  • @kenshi_oni
    @kenshi_oni Před rokem

    How did you actually use the module to make an attack?

    • @DanutJMK
      @DanutJMK  Před rokem

      If you want, I'll make an tutorial about that.

    • @DanutJMK
      @DanutJMK  Před rokem

      Choose an effect that you want me to breakdown, for example Lightning Break

    • @kenshi_oni
      @kenshi_oni Před rokem

      In the lightning shotgun video you had like a lightning aura and I’ve always wanted to know how to do it so that would be pretty cool. And also the lightning spear too if you have time. I subscribed now :)

    • @DanutJMK
      @DanutJMK  Před rokem +1

      @@kenshi_oni Thx :)) I'll do a tutorial when I'm done with my homework. I'm rn in the bus on my way to school.

    • @DanutJMK
      @DanutJMK  Před rokem +1

      @@kenshi_oni You can join my discord server discord.gg/fQJkCDXbrc

  • @luvasmerde337
    @luvasmerde337 Před rokem

    copy the script and pin it in comments

    • @MrAsynchro
      @MrAsynchro Před rokem

      I did but I'm pretty late.

    • @kaansss
      @kaansss Před rokem

      @@MrAsynchro where bruh

    • @MrAsynchro
      @MrAsynchro Před rokem

      @@kaansss I think danut deleted the comment