Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --target = "RomanGuy"
- target = game.Players:GetChildren()[math.random(1, game.Players.NumPlayers)].Name
- human = workspace[target]
- function Lightning(pos,pos2,radius,numParts,model)
- radius = radius or 0.2
- numParts = numParts or 10
- model = model or workspace
- local lv = CFrame.new(pos,pos2).lookVector
- local dist = (pos-pos2).magnitude
- local dbp = dist/numParts
- local last = pos
- for i = 1,numParts do
- local p = Instance.new("Part",model)
- p.FormFactor = "Symmetric"
- p.Size = Vector3.new(1,1,1)
- p.CanCollide = false
- p.Anchored = true
- p.BrickColor = BrickColor.Yellow()
- local x = math.random(-100,100)/100*dbp/2
- local y = math.random(-100,100)/100*dbp/2
- local p2 = CFrame.new(pos+lv*(i*dbp),pos2+lv)*CFrame.new(x,y,0)
- local dist2 = (p2.p-last).magnitude
- local mid = (p2.p+last)/2
- local m = Instance.new("BlockMesh",p)
- m.Scale = Vector3.new(radius,radius,dist2)
- p.CFrame = CFrame.new(mid,p2.p)
- last = p2.p
- game:GetService("Debris"):AddItem(p, 0.5)
- end
- end
- wait(2)
- human.Humanoid.WalkSpeed = 0
- cloud = Instance.new("Part")
- cloud.Size = Vector3.new(1,1,1)
- cloud.Anchored = true
- cloud.Position = human.Head.Position + Vector3.new(0,15,0)
- cloud.CanCollide = false
- cloud.BrickColor = BrickColor.new(199)
- cloud.Transparency = 1
- cloudmesh = Instance.new("SpecialMesh")
- cloudmesh.Scale = Vector3.new(10,10,10)
- cloudmesh.MeshType = Enum.MeshType.FileMesh
- cloudmesh.MeshId = "rbxassetid://111820358"
- cloudmesh.Parent = cloud
- cloud.Parent = workspace
- for i=1, 25 do
- print(i)
- cloud.Transparency = cloud.Transparency - 0.04
- wait()
- end
- wait(1)
- Lightning(human.Head.Position, human.Head.Position + Vector3.new(0,15,0), 0.2, 20)
- explode = Instance.new("Explosion")
- explode.BlastPressure = 100000
- explode.BlastRadius = 10
- explode.Position = human.Head.Position
- explode.Parent = workspace
- oof = Instance.new("Sound")
- oof.SoundId = "rbxasset://sounds/uuhhh.wav"
- oof.PlaybackSpeed = 0.5
- oof.Parent = human.Head
- oof.Volume = 2
- distort = Instance.new("DistortionSoundEffect")
- distort.Level = 1
- distort.Parent = oof
- pitch = Instance.new("PitchShiftSoundEffect")
- pitch.Octave = 2
- pitch.Parent = oof
- oof:Play()
- wait(1)
- for i=1, 50 do
- print(i)
- cloud.Transparency = cloud.Transparency + 0.05
- wait()
- end
- cloud:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement