[Roblox Studio] How to make Lightning
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
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
broken ah script
Thank you very much! I tried making one myself, but it was always a little off it's mark.
Top
the lightning isnt visible from the clientside, do you know how i can fix this to make an actual ability out of it?
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?
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.
it says unknown global offset
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
DM me on discord DanutzuJMK Capybara#1668
@@DanutJMK should i add you
@@imamabraham or join his discord server
@@imamabraham yes
@@jazzyarmando1234 invalid link
How did you actually use the module to make an attack?
If you want, I'll make an tutorial about that.
Choose an effect that you want me to breakdown, for example Lightning Break
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 :)
@@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.
@@kenshi_oni You can join my discord server discord.gg/fQJkCDXbrc
copy the script and pin it in comments
I did but I'm pretty late.
@@MrAsynchro where bruh
@@kaansss I think danut deleted the comment