Sorry for being late! I noticed this post minutes after it was posted but I was not a member yet. Hope my response is good!
also this is probably not how professional games do it but this is a simple version that I would make.
So first you would probably want to make a layout similar to this:
I didn’t try to make it look like lightning because I did not want to spend too much time working on the example, btw.
Then to make it appear out of nowhere you would want to put it in
and add a sound to it, and call it “Strike”. I recommend you use the roblox sound ID 7138705968, but It might not be moderated yet because I just made it right now.
Now you want to make a script and put it anywhere in the game and just put this code into it:
-- This should work.
-- Lightning location V
local Lightning = game.ReplicatedStorage.Lightning
-- Lightning location ^
-- Position here V
local Vector = Vector3.new(0,30,0)
-- Position here ^
-- Strike sound V
local Strike = Lightning.Strike
-- Strike sound ^
-- V Do whatever you want to activate it here V
-- ^ ^
local LightningC = Lightning:Clone() do
LightningC.Parent = workspace
LightningC.Position = Vector
Hope this helps you!
Sorry if this is bad I’m new to the roblox devforums.