Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local gauntlet1 = Instance.new("Part",game.Players.LocalPlayer.Character)
- local mesh = Instance.new("SpecialMesh",gauntlet1) mesh.MeshId = "rbxassetid://1045626161" mesh.Scale = Vector3.new(1.05,1.05,1.05)
- gauntlet1.Size = Vector3.new(0,0,0)
- gauntlet1.BrickColor = BrickColor.new("Dark stone grey")
- gauntlet1.CanCollide = false
- local weld = Instance.new("Weld") weld.Part0 = gauntlet1 weld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
- weld.C0 = CFrame.new(0,0.23,0)
- weld.Parent = gauntlet1
- local gauntlet2 = Instance.new("Part",game.Players.LocalPlayer.Character)
- local mesh = Instance.new("SpecialMesh",gauntlet2) mesh.MeshId = "rbxassetid://1045638878" mesh.Scale = Vector3.new(1,1,1)
- gauntlet2.Size = Vector3.new(0,0,0)
- gauntlet2.BrickColor = BrickColor.new("Medium stone grey")
- gauntlet2.CanCollide = false
- local weld = Instance.new("Weld") weld.Part0 = gauntlet2 weld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
- weld.C0 = CFrame.new(0,-0.475,0)*CFrame.Angles(0,math.rad(-90),math.rad(180))
- weld.Parent = gauntlet2
- local gauntlet3 = Instance.new("Part",game.Players.LocalPlayer.Character)
- local mesh = Instance.new("SpecialMesh",gauntlet3) mesh.MeshId = "rbxassetid://1045636258" mesh.Scale = Vector3.new(1,1,1)
- gauntlet3.Size = Vector3.new(0,0,0)
- gauntlet3.BrickColor = BrickColor.new("Medium stone grey")
- gauntlet3.CanCollide = false
- local weld = Instance.new("Weld") weld.Part0 = gauntlet3 weld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
- weld.C0 = CFrame.new(0,-0.3,0)
- weld.Parent = gauntlet3
- local gauntlet4 = Instance.new("Part",game.Players.LocalPlayer.Character)
- local mesh = Instance.new("SpecialMesh",gauntlet4) mesh.MeshId = "rbxassetid://1045636258" mesh.Scale = Vector3.new(1,1,1)
- gauntlet4.Size = Vector3.new(0,0,0)
- gauntlet4.BrickColor = BrickColor.new("Medium stone grey")
- gauntlet4.CanCollide = false
- local weld = Instance.new("Weld") weld.Part0 = gauntlet4 weld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
- weld.C0 = CFrame.new(0,-0.725,0)
- weld.Parent = gauntlet4
- local light1 = Instance.new("Part",game.Players.LocalPlayer.Character)
- local mesh = Instance.new("SpecialMesh",light1) mesh.MeshType = Enum.MeshType.Sphere
- light1.Size = Vector3.new(0.5,0.1,0.5)
- light1.Material = Enum.Material.Neon
- light1.Color = Color3.fromRGB(255, 225, 100)
- light1.CanCollide = false
- local weld = Instance.new("Weld") weld.Part0 = light1 weld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
- weld.C0 = CFrame.new(-0.25,1.04,0)
- weld.Parent = light1
- local particle = nil
- while particle == nil do
- wait()
- particle = Instance.new("ParticleEmitter")
- particle.Name = "Thunder"
- particle.Color = ColorSequence.new(Color3.fromRGB(255, 185, 55))
- particle.LightEmission = 1
- particle.LightInfluence = 0
- particle.Size = NumberSequence.new(2)
- particle.Texture = "rbxassetid://1045690145"
- particle.ZOffset = 0.5
- particle.LockedToPart = true
- particle.Enabled = true
- particle.Lifetime = NumberRange.new(0.05)
- particle.Rate = 10
- particle.Rotation = NumberRange.new(-360,360)
- particle.Speed = NumberRange.new(1)
- particle.SpreadAngle = Vector2.new(999,999)
- end
- electricity = 0
- charging = false
- charging2 = false
- thunder = false
- local thunders = Instance.new("Model",game.Players.LocalPlayer.Character) thunders.Name = "Thunders"
- game:GetService("RunService").RenderStepped:connect(function()
- if thunder == true then
- local pos1 = game.Players.LocalPlayer.Character["Right Arm"].CFrame:toWorldSpace(CFrame.new(0.25,-1.04,0)).p
- local pos2 = game.Players.LocalPlayer:GetMouse().Hit.p
- if (pos1-pos2).magnitude < 500 then
- local cframe = CFrame.new(pos1,pos2)
- local val = Instance.new("Vector3Value",thunders) val.Name = "0" val.Value = pos1
- for i=1,(pos1-pos2).magnitude/2 do
- local val = Instance.new("Vector3Value",thunders) val.Name = tostring(i) val.Value = pos1+cframe.lookVector*i*2 + Vector3.new(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)
- end
- for i=1,(pos1-pos2).magnitude/2 do
- local thunder = Instance.new("Part",game.Players.LocalPlayer.Character)
- thunder.Material = Enum.Material.Neon
- thunder.Color = Color3.fromRGB(255, 225, 100)
- thunder.CanCollide = false
- thunder.Anchored = true
- thunder.Size = Vector3.new(0.1,0.1,(thunders[i].Value-thunders[i-1].Value).magnitude)
- thunder.CFrame = CFrame.new((thunders[i].Value+thunders[i-1].Value)/2,thunders[i].Value)
- game:GetService("Debris"):AddItem(thunder,0.1)
- end
- for _,v in pairs(thunders:GetChildren()) do
- v:remove()
- end
- local ray = Ray.new(pos1,(pos2-pos1).unit*500)
- local hit,position,normal = game.Workspace:FindPartOnRay(ray,game.Players.LocalPlayer.Character)
- if hit then
- if hit.Parent:FindFirstChild("Humanoid") then
- hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health-electricity/4
- local par = particle:Clone()
- par.Parent = hit
- part.Rate = 10
- end
- end
- end
- end
- end)
- game:GetService("UserInputService").InputBegan:connect(function(key)
- if key.KeyCode == Enum.KeyCode.C then
- charging = true
- while charging == true do
- wait()
- if electricity < 350 then
- particle:Clone().Parent = game.Players.LocalPlayer.Character["Right Arm"]
- electricity = electricity+1
- game.Players.LocalPlayer.Character.Humanoid.MaxHealth = game.Players.LocalPlayer.Character.Humanoid.MaxHealth+10
- game.Players.LocalPlayer.Character.Humanoid.Health = game.Players.LocalPlayer.Character.Humanoid.Health+10
- end
- end
- end
- if key.KeyCode == Enum.KeyCode.X then
- charging2 = true
- while charging2 == true do
- wait()
- if electricity > 0 then
- electricity = electricity-1
- game.Players.LocalPlayer.Character.Humanoid.MaxHealth = game.Players.LocalPlayer.Character.Humanoid.MaxHealth-10
- game.Players.LocalPlayer.Character.Humanoid.Health = game.Players.LocalPlayer.Character.Humanoid.Health-10
- game.Players.LocalPlayer.Character["Right Arm"].Thunder:remove()
- end
- end
- end
- if key.KeyCode == Enum.KeyCode.F then
- game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0*CFrame.Angles(0,0,math.rad(90))
- thunder = true
- end
- end)
- game:GetService("UserInputService").InputEnded:connect(function(key)
- if key.KeyCode == Enum.KeyCode.C then
- charging = false
- end
- if key.KeyCode == Enum.KeyCode.X then
- charging2 = false
- end
- if key.KeyCode == Enum.KeyCode.F then
- game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0*CFrame.Angles(0,0,math.rad(-90))
- thunder = false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement