Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --wot
- paly = game.Players.LocalPlayer
- char = paly.Character
- torso = char.Torso
- neck = char.Torso.Neck
- hum = char.Humanoid
- Player = game:GetService("Players").LocalPlayer
- local mouse = Player:GetMouse()
- Character = Player.Character
- tors = Character.Torso
- lleg = Character["Left Leg"]
- root = Character.HumanoidRootPart
- hed = Character.Head
- rleg = Character["Right Leg"]
- rarm = Character["Right Arm"]
- larm = Character["Left Arm"]
- local Effects = {}
- attack = false
- local TColor = tors.BrickColor
- vt = Vector3.new
- bc = BrickColor.new
- br = BrickColor.random
- it = Instance.new
- cf = CFrame.new
- euler = CFrame.fromEulerAnglesXYZ
- angles = CFrame.Angles
- matr = math.random
- local boll = Instance.new("Part",game.Lighting)
- boll.Transparency = 0.5
- boll.Material = "Neon"
- boll.BrickColor = bc("Bright red")
- boll.Anchored = true
- boll.Size = vt(1,1,1)
- boll.Shape = "Ball"
- boll.CanCollide = false
- local shur = Instance.new("Part",game.Lighting)
- shur.Transparency = 0
- shur.Material = "Neon"
- shur.BrickColor = bc("Bright red")
- shur.Anchored = true
- shur.Size = vt(5,0.2,5)
- shur.CanCollide = false
- local Meshshur = Instance.new("CylinderMesh",shur)
- Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
- if hit.Parent==nil then
- return
- end
- h=hit.Parent:FindFirstChild("Humanoid")
- for _,v in pairs(hit.Parent:children()) do
- if v:IsA("Humanoid") then
- h=v
- end
- end
- if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
- h=hit.Parent.Parent:FindFirstChild("Humanoid")
- end
- if hit.Parent.className=="Hat" then
- hit=hit.Parent.Parent:findFirstChild("Head")
- end
- if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
- if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
- --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
- return
- end]]
- -- hs(hit,1.2)
- c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=game:service("Players").LocalPlayer
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- Damage=math.random(minim,maxim)
- -- h:TakeDamage(Damage)
- blocked=false
- block=hit.Parent:findFirstChild("Block")
- if block~=nil then
- print(block.className)
- if block.className=="NumberValue" then
- if block.Value>0 then
- blocked=true
- if decreaseblock==nil then
- block.Value=block.Value-1
- end
- end
- end
- if block.className=="IntValue" then
- if block.Value>0 then
- blocked=true
- if decreaseblock~=nil then
- block.Value=block.Value-1
- end
- end
- end
- end
- if blocked==false then
- -- h:TakeDamage(Damage)
- h.Health=h.Health-Damage
- showDamage(hit.Parent,Damage,.5,TorsoColor)
- else
- h.Health=h.Health-(Damage/2)
- showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
- end
- if Type=="Knockdown" then
- hum=hit.Parent.Humanoid
- hum.PlatformStand=true
- coroutine.resume(coroutine.create(function(HHumanoid)
- swait(1)
- HHumanoid.PlatformStand=false
- end),hum)
- local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
- --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
- local bodvol=Instance.new("BodyVelocity")
- bodvol.velocity=angle*knockback
- bodvol.P=5000
- bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
- bodvol.Parent=hit
- rl=Instance.new("BodyAngularVelocity")
- rl.P=3000
- rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
- rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
- rl.Parent=hit
- game:GetService("Debris"):AddItem(bodvol,.5)
- game:GetService("Debris"):AddItem(rl,.5)
- elseif Type=="Normal" then
- vp=Instance.new("BodyVelocity")
- vp.P=500
- vp.maxForce=Vector3.new(math.huge,0,math.huge)
- -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
- if KnockbackType==1 then
- vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
- elseif KnockbackType==2 then
- vp.velocity=Property.CFrame.lookVector*knockback
- end
- if knockback>0 then
- vp.Parent=hit.Parent.Torso
- end
- game:GetService("Debris"):AddItem(vp,.5)
- elseif Type=="Up" then
- local bodyVelocity=Instance.new("BodyVelocity")
- bodyVelocity.velocity=vt(0,10,0)
- bodyVelocity.P=1000
- bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009)
- bodyVelocity.Parent=hit
- game:GetService("Debris"):AddItem(bodyVelocity,1)
- rl=Instance.new("BodyAngularVelocity")
- rl.P=3000
- rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
- rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
- rl.Parent=hit
- game:GetService("Debris"):AddItem(rl,.5)
- elseif Type=="Snare" then
- bp=Instance.new("BodyPosition")
- bp.P=2000
- bp.D=100
- bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- bp.position=hit.Parent.Torso.Position
- bp.Parent=hit.Parent.Torso
- game:GetService("Debris"):AddItem(bp,1)
- elseif Type=="Target" then
- if Targetting==false then
- ZTarget=hit.Parent.Torso
- coroutine.resume(coroutine.create(function(Part)
- swait(5)
- end),ZTarget)
- TargHum=ZTarget.Parent:findFirstChild("Humanoid")
- targetgui=Instance.new("BillboardGui")
- targetgui.Parent=ZTarget
- targetgui.Size=UDim2.new(10,100,10,100)
- targ=Instance.new("ImageLabel")
- targ.Parent=targetgui
- targ.BackgroundTransparency=1
- targ.Image="rbxassetid://4834067"
- targ.Size=UDim2.new(1,0,1,0)
- cam.CameraType="Scriptable"
- cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
- dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
- workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
- Targetting=true
- RocketTarget=ZTarget
- for i=1,Property do
- --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
- if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
- swait()
- end
- --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
- cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
- dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
- cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
- end
- Targetting=false
- RocketTarget=nil
- targetgui.Parent=nil
- cam.CameraType="Custom"
- end
- end
- debounce=Instance.new("BoolValue")
- debounce.Name="DebounceHit"
- debounce.Parent=hit.Parent
- debounce.Value=true
- game:GetService("Debris"):AddItem(debounce,Delay)
- c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=Player
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- CRIT=false
- hitDeb=true
- AttackPos=6
- end
- end
- showDamage=function(Char,Dealt,du,Color)
- m=Instance.new("Model")
- m.Name=""
- h=Instance.new("Humanoid")
- h.Health=0
- h.MaxHealth=0
- h.Parent=m
- c=Instance.new("Part")
- c.Transparency=0
- c.Material = "Neon"
- c.BrickColor=bc("Bright red")
- c.Name="Head"
- c.TopSurface=0
- c.BottomSurface=0
- CV="Hot pink"
- local txt = Instance.new("BillboardGui", c)
- txt.Adornee = c
- txt.Name = "_status"
- txt.Size = UDim2.new(2, 0, 1.2, 0)
- txt.StudsOffset = Vector3.new(-9, 8, 0)
- local text = Instance.new("TextLabel", txt)
- text.Size = UDim2.new(10, 0, 7, 0)
- text.FontSize = "Size24"
- text.TextScaled = true
- text.TextTransparency = 0
- text.BackgroundTransparency = 1
- text.TextTransparency = 0
- text.TextStrokeTransparency = 0
- text.Font = "Highway"
- text.TextStrokeColor3 = BrickColor.new("Really black").Color
- v=Instance.new("Part")
- v.Name = "ColorBrick"
- v.Parent=c
- v.FormFactor="Symmetric"
- v.Anchored=true
- v.CanCollide=false
- v.BottomSurface="Smooth"
- v.TopSurface="Smooth"
- v.Size=Vector3.new(10,5,3)
- v.Transparency=1
- v.CFrame=c.CFrame
- v.BrickColor=BrickColor.new(CV)
- v.Transparency=1
- text.TextColor3 = BrickColor.new("Really red").Color
- v.Shape="Block"
- text.Text = tostring(Dealt)
- local tick = Instance.new("Sound",c)
- tick.SoundId = "rbxassetid://553325070"
- tick.Volume = 1.25
- tick.Pitch = 0.75
- tick:Play()
- c.formFactor="Plate"
- c.Transparency = 0.99
- c.Size=Vector3.new(1,.4,1)
- ms=Instance.new("CylinderMesh")
- ms.Scale=Vector3.new(.8,.8,.8)
- if CRIT==true then
- ms.Scale=Vector3.new(1,1.25,1)
- end
- ms.Parent=c
- c.Reflectance=0
- Instance.new("BodyGyro").Parent=c
- c.Parent=m
- if Char:findFirstChild("Head")~=nil then
- c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
- elseif Char.Parent:findFirstChild("Head")~=nil then
- c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
- end
- f=Instance.new("BodyPosition")
- f.P=2000
- f.D=100
- f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- f.position=c.Position+Vector3.new(0,3,0)
- f.Parent=c
- game:GetService("Debris"):AddItem(m,.5+du)
- c.CanCollide=false
- m.Parent=workspace
- c.CanCollide=false
- end
- function MagniDamage(Hit, Part, magni, mindam, maxdam, knock, Type)
- for _, c in pairs(workspace:children()) do
- local hum = c:findFirstChild("Humanoid")
- if hum ~= nil then
- local head = c:findFirstChild("Torso")
- if head ~= nil then
- local targ = head.Position - Part.Position
- local mag = targ.magnitude
- if mag <= magni and c.Name ~= Player.Name then
- Damagefunc(Hit, head, mindam, maxdam, knock, Type, RootPart, .2, 1, 3)
- end
- end
- end
- end
- end
- function Explode(rad,par)
- local expart = Instance.new("Part",script.Parent)
- local expart2 = Instance.new("Part",script.Parent)
- local partMesh = Instance.new("SpecialMesh",expart)
- partMesh.MeshType = "Sphere"
- local partMesh2 = Instance.new("SpecialMesh",expart2)
- partMesh2.MeshType = "Sphere"
- local expld = Instance.new("Explosion", script.Parent)
- local plode = Instance.new("Sound",expart)
- plode.SoundId = "rbxassetid://165970126"
- plode.Volume = 2.5
- plode.Pitch = 1
- plode.Looped = false
- plode:Play()
- expld.BlastRadius = rad
- expld.Position = par.Position
- partMesh.Scale = vt(rad,rad,rad)
- expart.Size = vt(1,1,1)*1.5
- expart.Transparency = 0.5
- expart.Anchored = true
- expart.Material = "Neon"
- expart.BrickColor = bc("Deep orange")
- expart.CFrame = par.CFrame
- partMesh2.Scale = vt(rad,rad,rad)
- expart2.Size = vt(1.15,1.15,1.15)*1.5
- expart2.Transparency = 0.5
- expart2.Anchored = true
- expart2.Material = "Neon"
- expart2.BrickColor = bc("Bright orange")
- expart2.CFrame = par.CFrame
- local value = 5
- par:Destroy()
- for i = 0, 100 do
- partMesh.Scale = partMesh.Scale + vt(value,value,value)
- expart.CFrame = expart.CFrame
- partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
- expart2.CFrame = expart.CFrame
- value = value - 0.225
- if value <= 0 then
- expart.Transparency = expart.Transparency + 0.0125
- expart2.Transparency = expart.Transparency + 0.0125
- value = 0
- end
- wait()
- end
- plode.Parent = nil
- expart.Parent = nil
- expart2.Parent = nil
- expld.Parent = nil
- end
- function SkyBeam()
- local s = Instance.new("Sound",hed)
- s.SoundId = "rbxassetid://163619849"
- s.Pitch = 0.5
- s.Volume = 2.5
- s.Looped = false
- s:Play()
- local spart = Instance.new("Part",workspace)
- spart.Size = vt(1,1,1)
- spart.BrickColor = TColor
- spart.Material = "Neon"
- spart.Transparency = 1
- spart.Anchored = true
- spart.CanCollide = false
- spart.CFrame = tors.CFrame + vt(0,0.01,0)
- local box = Instance.new("SelectionBox", spart)
- box.Adornee = box.Parent
- box.Transparency = 1
- box.Color = BrickColor.new("Really black")
- box.LineThickness = 0.1
- local value = 0.1
- local valuer = 0.1
- for i = 0, 50 do
- spart.CFrame = spart.CFrame*CFrame.Angles(0.1,0.1,0.1)
- spart.Size = spart.Size + vt(0.1,0.1,0.1)
- box.Transparency = box.Transparency - 0.05
- spart.CFrame = tors.CFrame
- wait()
- end
- for i = 0, 10 do
- valuer = valuer - 0.01
- spart.Transparency = spart.Transparency - 0.1
- spart.CFrame = spart.CFrame*CFrame.Angles(0.1,0.1,0.1)
- spart.Size = spart.Size + vt(valuer,10,valuer)
- box.Transparency = box.Transparency - 0.05
- spart.CFrame = tors.CFrame
- wait()
- end
- hithere=spart.Touched:connect(function(hit) Damagefunc(hit,35,47,0,"Normal",root,.2,1) end)
- for i = 0, 10 do
- spart.CFrame = tors.CFrame
- for e = 0, 10 do
- value = value + 0.05
- spart.Transparency = spart.Transparency + 0.065
- spart.Size = spart.Size + vt(value,value,value)
- spart.CFrame = tors.CFrame
- wait()
- end
- for e = 0, 10 do
- value = value - 0.05
- spart.Transparency = spart.Transparency - 0.065
- spart.Size = spart.Size + vt(value,value,value)
- spart.CFrame = tors.CFrame
- wait()
- end
- wait()
- end
- for i = 0, 50 do
- spart.CFrame = spart.CFrame*CFrame.Angles(0.1,0.1,0.1)
- spart.Transparency = spart.Transparency + 0.065
- spart.Size = spart.Size - vt(1.5,-10,1.5)
- box.Transparency = box.Transparency + 0.075
- spart.CFrame = tors.CFrame
- wait()
- end
- spart:Destroy()
- s:Destroy()
- end
- function Block()
- local spart = Instance.new("Part",workspace)
- spart.Size = vt(5,8,5)
- spart.BrickColor = TColor
- spart.Material = "Neon"
- spart.Transparency = 1
- spart.Anchored = true
- spart.CanCollide = false
- spart.CFrame = tors.CFrame + vt(0,0.01,0)
- local box = Instance.new("SelectionBox", spart)
- box.Adornee = box.Parent
- box.Transparency = 1
- box.Color = BrickColor.new("Really black")
- box.LineThickness = 0.1
- for i = 0, 50 do
- spart.CFrame = spart.CFrame*CFrame.Angles(0.1,0.1,0.1)
- spart.Size = spart.Size + vt(0.05,0.05,0.05)
- box.Transparency = box.Transparency - 0.05
- spart.CFrame = tors.CFrame
- wait()
- end
- for i = 0, 5 do
- spart.CFrame = tors.CFrame
- for z = 0, 25 do
- spart.CFrame = tors.CFrame
- spart.Transparency = spart.Transparency - 0.05
- spart.CFrame = tors.CFrame
- wait()
- end
- for z = 0, 25 do
- spart.CFrame = tors.CFrame
- spart.Transparency = spart.Transparency + 0.05
- spart.CFrame = tors.CFrame
- wait()
- end
- wait()
- spart.CFrame = tors.CFrame
- end
- for i = 0, 50 do
- spart.CFrame = spart.CFrame*CFrame.Angles(0.1,0.1,0.1)
- spart.Size = spart.Size - vt(0.05,0.05,0.05)
- box.Transparency = box.Transparency + 0.05
- spart.CFrame = tors.CFrame
- wait()
- end
- spart:Destroy()
- end
- function HyperShot()
- local s = Instance.new("Sound",hed)
- s.SoundId = "rbxassetid://200632561"
- s.Pitch = 0.5
- s.Volume = 1.5
- s.Looped = false
- s:Play()
- local spart = Instance.new("Part",workspace)
- spart.Size = vt(10,10,10)
- spart.BrickColor = TColor
- spart.Material = "Neon"
- spart.Transparency = 0.15
- spart.Anchored = true
- spart.CanCollide = false
- spart.CFrame = tors.CFrame + vt(0,0.01,0)
- spart.Anchored = false
- local box = Instance.new("SelectionBox", spart)
- box.Adornee = box.Parent
- box.Transparency = 0.15
- box.Color = BrickColor.new("Really black")
- box.LineThickness = 0.1
- local spart2 = Instance.new("Part",workspace)
- spart2.Size = vt(8.5,8.5,8.5)
- spart2.BrickColor = BrickColor.random()
- spart2.Material = "Neon"
- spart2.Transparency = 0
- spart2.Anchored = true
- spart2.CanCollide = false
- spart2.CFrame = tors.CFrame + vt(0,0.01,0)
- spart2.Anchored = false
- local box2 = Instance.new("SelectionBox", spart2)
- box2.Adornee = box2.Parent
- box2.Transparency = 0
- box2.Color = BrickColor.new("Really black")
- box2.LineThickness = 0.1
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv.velocity = mouse.Hit.lookVector *35
- bv.Parent = spart
- local bv2 = Instance.new("BodyVelocity")
- bv2.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv2.velocity = mouse.Hit.lookVector *35
- bv2.Parent = spart2
- wait(0.1)
- hithere=spart.Touched:connect(function(hit) Damagefunc(hit,10,19,0,"Normal",root,.2,1) end)
- for i = 0, 25 do
- local bul = Instance.new("Part",workspace)
- local sphere = Instance.new("SpecialMesh",bul)
- sphere.MeshType = "Sphere"
- bul.Size = vt(1,1,1)
- bul.BrickColor = BrickColor.new("Really black")
- bul.Shape = "Ball"
- bul.Anchored = true
- bul.Material = "Neon"
- bul.Transparency = 0.5
- bul.CanCollide = false
- bul.CFrame = spart.CFrame
- for z = 0, 20 do
- sphere.Scale = sphere.Scale + vt(2.5,2.5,2.5)
- bul.Transparency = bul.Transparency + 0.025
- bul.BrickColor = BrickColor.random()
- bul.CFrame = spart.CFrame
- spart2.BrickColor = BrickColor.random()
- spart.CFrame = spart.CFrame*CFrame.Angles(0.05,0.05,0.05)
- spart2.CFrame = spart2.CFrame*CFrame.Angles(0.05,0.05,0.05)
- box.Transparency = box.Transparency + 0.0025
- spart.Transparency = spart.Transparency + 0.0025
- box2.Transparency = box2.Transparency + 0.0025
- spart2.Transparency = spart2.Transparency + 0.0025
- wait()
- end
- bul:Destroy()
- end
- spart:Destroy()
- spart2:Destroy()
- s:Destroy()
- end
- function BasicShot()
- local s = Instance.new("Sound",hed)
- s.SoundId = "rbxassetid://200632561"
- s.Pitch = 1
- s.Volume = 1
- s.Looped = false
- s:Play()
- local bul = Instance.new("Part",workspace)
- bul.Size = vt(5,5,5)
- bul.BrickColor = BrickColor.new("Really black")
- bul.Shape = "Ball"
- bul.Material = "Neon"
- bul.Transparency = 0.5
- bul.CanCollide = false
- bul.CFrame = tors.CFrame + vt(0,0.01,0)
- local bul2 = Instance.new("Part",workspace)
- bul2.Size = vt(4.5,4.5,4.5)
- bul2.BrickColor = TColor
- bul2.Shape = "Ball"
- bul2.Material = "Neon"
- bul2.Transparency = 0
- bul2.CanCollide = false
- bul2.CFrame = bul.CFrame
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv.velocity = mouse.Hit.lookVector * 50
- bv.Parent = bul2
- local bvr = Instance.new("BodyVelocity")
- bvr.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bvr.velocity = mouse.Hit.lookVector * 50
- bvr.Parent = bul
- hithere=bul.Touched:connect(function(hit) Damagefunc(hit,8,13,0,"Normal",root,.2,1) end)
- wait(5)
- bul:Destroy()
- bul2:Destroy()
- s:Destroy()
- end
- mouse.Button1Down:connect(function()
- BasicShot()
- end)
- mouse.KeyDown:connect(function(k)
- k = k:lower()
- if k == "r" then
- Block()
- end
- if k == "e" then
- HyperShot()
- end
- end)
Add Comment
Please, Sign In to add comment