Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plr = game.Players.LocalPlayer
- repeat
- wait(0.4)
- until plr.Character
- chr = plr.Character
- human = chr:FindFirstChild("Humanoid")
- mouse = plr:GetMouse()
- cam = workspace.CurrentCamera
- selected = false
- equipd = false
- tors = chr.Torso
- rarm = chr["Right Arm"]
- larm = chr["Left Arm"]
- rleg = chr["Right Leg"]
- lleg = chr["Left Leg"]
- hrp = chr.HumanoidRootPart
- hed = chr.Head
- anim = human.Animator
- activu = false
- ragged = false
- batting = false
- Heartbeat = Instance.new("BindableEvent")
- Heartbeat.Name = "Heartbeat"
- Heartbeat.Parent = script
- Music = false
- Berserk = false
- Combo = 1
- frame = 0.03333333333333333
- tf = 0
- Maedl = Instance.new("Model",chr)
- local ColorsArray = {ColorSequenceKeypoint.new(0, Color3.new(0,1,0)),
- ColorSequenceKeypoint.new(0.16, Color3.new(0,1,0)),
- ColorSequenceKeypoint.new(0.32, Color3.new(0,1,0)),
- ColorSequenceKeypoint.new(0.48, Color3.new(0.5,1,0)),
- ColorSequenceKeypoint.new(0.64, Color3.new(0.5,1,0)),
- ColorSequenceKeypoint.new(0.80, Color3.new(0.5,1,0)),
- ColorSequenceKeypoint.new(0.96, Color3.new(0.5,1,0)),
- ColorSequenceKeypoint.new(1, Color3.new(0.5,1,0))}
- local fire = Instance.new("ParticleEmitter", tors)
- fire.Enabled = false
- fire.Lifetime = NumberRange.new(1.5)
- fire.RotSpeed = NumberRange.new(10)
- fire.Rate = 250
- fire.VelocitySpread = 360
- fire.Speed = NumberRange.new(2,8)
- fire.Rotation = NumberRange.new(151515)
- fire.Name = "Fire"
- fire.LightEmission = 0.78
- fire.Texture = "http://www.roblox.com/asset/?id=280516525"
- fire.Color = ColorSequence.new(ColorsArray)
- fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 6), NumberSequenceKeypoint.new(1, 0)})
- fire.ZOffset = 3
- function Lightningz(pos, pos2, radius, numParts, model, removalTime)
- radius = radius or 0.2
- numParts = numParts or 10
- model = model or game.Workspace
- local pos = pos
- local lastpos = lastpos
- local lv = CFrame.new(pos,pos2).lookVector
- removalTime = 0.001
- local dist = (pos-pos2).magnitude
- local trans = 0
- local color = BrickColor.new("Lime green")
- local dbp = dist/numParts
- local last = pos
- for i = 1,numParts do
- local p = Instance.new("Part")
- p.FormFactor = "Custom"
- p.Size = Vector3.new(1,1,1)
- p.CanCollide = false
- p.Transparency = trans
- p.Anchored = true
- p.BrickColor = color
- p.Material = "Neon"
- local x = math.random(-100,100)/100*dbp*4
- local y = math.random(-100,100)/100*dbp*4
- 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 + (radius/4))
- p.CFrame = CFrame.new(mid,p2.p)
- last = p2.p
- p.Parent = model
- game.Debris:AddItem(p, 0.05)
- end
- if model ~= game.Workspace then
- game.Debris:AddItem(model, 0)
- end
- end
- function Lightningz2(pos, pos2, radius, numParts, model, removalTime)
- radius = radius or 0.2
- numParts = numParts or 10
- model = model or game.Workspace
- local pos = pos
- local lastpos = lastpos
- local lv = CFrame.new(pos,pos2).lookVector
- removalTime = 0.001
- local dist = (pos-pos2).magnitude
- local trans = 0
- local color = BrickColor.new("Toothpaste")
- local dbp = dist/numParts
- local last = pos
- for i = 1,numParts do
- local p = Instance.new("Part")
- p.FormFactor = "Custom"
- p.Size = Vector3.new(1,1,1)
- p.CanCollide = false
- p.Transparency = trans
- p.Anchored = true
- p.BrickColor = color
- p.Material = "Neon"
- 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 + (radius/4))
- p.CFrame = CFrame.new(mid,p2.p)
- last = p2.p
- p.Parent = model
- game.Debris:AddItem(p, 0.05)
- end
- if model ~= game.Workspace then
- game.Debris:AddItem(model, 0)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement