Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- [ No Time To Explain! ] --
- -- [ Burst Gun ] --
- wait()
- Music = true
- Player = game.Players.LocalPlayer
- c = game.Players.LocalPlayer.Character
- Head = c.Head
- anim = c.Humanoid.Animator
- Shot = false
- Battle = false
- p = game.Players.LocalPlayer
- Music = false
- PhaseEnabled = true
- TeleportEnabled = true
- local Effects = {}
- attack = false
- local attacking = false
- vt = Vector3.new
- bc = BrickColor.new
- br = BrickColor.random
- it = Instance.new
- cf = CFrame.new
- euler = CFrame.fromEulerAnglesXYZ
- angles = CFrame.Angles
- matr = math.random
- mouse = Player:GetMouse()
- c.Humanoid.WalkSpeed = 24 c.Humanoid.JumpPower = 50
- RA = c["Right Arm"]
- RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- RS = c.Torso:FindFirstChild("Right Shoulder")
- LS = c.Torso:FindFirstChild("Left Shoulder")
- RH = c.Torso:FindFirstChild("Right Hip")
- LH = c.Torso:FindFirstChild("Left Hip")
- RJ = c.HumanoidRootPart:FindFirstChild("RootJoint")
- N = c.Torso:FindFirstChild("Neck")
- cf = CFrame.new
- ang = CFrame.Angles
- rd = math.rad
- rd2 = math.random
- function swait(num)
- if num==0 or num==nil then
- game:service'RunService'.Heartbeat:wait(0)
- else
- for i=0,num do
- game:service'RunService'.Heartbeat:wait(0)
- end
- end
- end
- local Music = Instance.new("Sound",c.HumanoidRootPart)Music.SoundId = "rbxassetid://359311553" Music.Volume = 0.5 Music.Looped = true Music:Play()
- RS.Name = "RightShoulds"
- RA2 = RA:clone() RA2.Name = "RightArm"
- RA.Parent = nil
- RS.Parent = nil
- wait()
- RA2.Parent = c
- RS = Instance.new("Motor6D",c.Torso)RS.Part0 = c.Torso RS.Part1 = RA2 RS.C0 = RSC0 RS.C1 = RSC1 RS.Name = "Right Shoulder"
- RSM = Instance.new("SpecialMesh",RA2)RSM.MeshId = "rbxassetid://430080097"
- local RightGun = Instance.new("Part",c)RightGun.Size = Vector3.new(0.4,1.4,4)RightGun.CanCollide = false RightGun.Anchored = false RightGun.Name = "BlastBow" RightGun.Archivable = false
- local RightM = Instance.new("SpecialMesh",RightGun)RightM.MeshId = "rbxassetid://477037714" RightM.TextureId = "rbxassetid://477037796" RightM.Scale = Vector3.new(0.06,0.04,0.02)
- local RightW = Instance.new("Weld",c["RightArm"])RightW.Part0 = c["RightArm"] RightW.Part1 = RightGun RightW.C0 = CFrame.new(0,-2,-0.25)*CFrame.Angles(math.rad(-90),0,0)
- local Hood = Instance.new("Part",c)Hood.Size = Vector3.new(0.2,0.2,0.2)Hood.Color = Color3.new(42/255,42/255,42/255)
- local HM = Instance.new("SpecialMesh",Hood)HM.MeshId = "rbxassetid://15393065" HM.Scale = Vector3.new(0.95,1,0.95)
- local HW = Instance.new("Weld",c.Head)HW.Part0 = c.Head HW.Part1 = Hood HW.C0 = CFrame.new(0,0.25,0)
- for _, c in pairs(c:children()) do
- if c.className == "Accessory" then
- c.Parent = nil
- end
- end
- c.Head.face:remove()
- local Rubble = Instance.new("Sound",c.HumanoidRootPart)Rubble.SoundId = "rbxassetid://172019967" Rubble.Volume = 0 Rubble.Looped = true
- function lerpz(joint, prop, cfrmz, alp)
- joint[prop] = joint[prop]:lerp(cfrmz, alp)
- end
- function resetlerp()
- RJ.C0 = RJC0
- RJ.C1 = RJC1
- N.C0 = NC0
- N.C1 = NC1
- RS.C0 = RSC0
- RS.C1 = RSC1
- LS.C0 = LSC0
- LS.C1 = LSC1
- RH.C0 = RHC0
- RH.C1 = RHC1
- LH.C0 = LHC0
- LH.C1 = LHC1
- end
- game:GetService('UserInputService').InputBegan:connect(function(InputObj)
- if InputObj.KeyCode == Enum.KeyCode.Slash then
- local finishEvent = nil
- isTyping = true
- finishEvent = game:GetService('UserInputService').InputBegan:connect(function(InputObj)
- if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
- isTyping = false
- finishEvent:disconnect()
- end
- end)
- end
- end)
- Ded = false
- Deboun = false
- for i,v in pairs(c:children()) do
- if v.ClassName == "Part" then
- v.Touched:connect(function(Hit)
- if Hit.Parent ~= c and Hit.Name ~= "touchy" then
- if v.Velocity.Y >= 150 or v.Velocity.Y <= -150 or v.Velocity.Z >= 150 or v.Velocity.Z <= -150 or v.Velocity.X >= 150 or v.Velocity.X <= -150 then
- if v.Velocity.Y >= 50 or v.Velocity.Y <= -50 then
- if Hit.Parent:findFirstChild("Humanoid")== nil then
- local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://779129548" S.Volume = 3 S.PlaybackSpeed = 1 S:Play()
- v.Velocity = Vector3.new(10,10,10)
- for i = 1,4 do
- local Sizez = math.random(30,60)/10
- local Partz = Instance.new("Part",game.Workspace) Partz.Parent = game.Workspace Partz.Material = Hit.Material Partz.BrickColor = Hit.BrickColor Partz.Size = Vector3.new(Sizez,Sizez,Sizez)
- Partz.CanCollide = false Partz.Anchored = false Partz.CFrame = CFrame.new(v.Position)*CFrame.Angles(math.random(-90,90),math.random(-90,90),math.random(-90,90))
- local BV = Instance.new("BodyVelocity",Partz)BV.maxForce = Vector3.new(math.huge,math.huge,math.huge) Partz.Name = "touchy"
- BV.velocity = Vector3.new(math.random(-90,90),5,math.random(-90,90))game.Debris:AddItem(BV,0.1)
- end
- Ded = true wait(4) Ded = false
- end
- else
- if Hit.Parent:findFirstChild("Humanoid")== nil and Deboun == false then Deboun = true
- local Sizez = math.random(30,60)/10 Rubble.Volume = 3
- local Partz = Instance.new("Part",game.Workspace) Partz.Parent = game.Workspace Partz.Material = Hit.Material Partz.BrickColor = Hit.BrickColor Partz.Size = Vector3.new(Sizez,Sizez,Sizez)
- Partz.CanCollide = false Partz.Anchored = true Partz.CFrame = CFrame.new(v.Position)*CFrame.Angles(math.random(-90,90),math.random(-90,90),math.random(-90,90))game.Debris:AddItem(Partz,5)
- swait() Deboun = false
- end
- end
- elseif v.Velocity.Y >= 75 or v.Velocity.Y <= -75 or v.Velocity.Z >= 75 or v.Velocity.Z <= -75 or v.Velocity.X >= 75 or v.Velocity.X <= -75 then
- local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://179760759" S.Volume = 10 S.PlaybackSpeed = math.random(6,8)/10 S:Play()
- v.Velocity = Vector3.new(1,1,1)
- Ded = true wait(2) Ded = false
- end
- Rubble.Volume = 0
- end
- end)
- end
- end
- function makegloo(paren, co, ci, parto, parti, nam) local gloo = Instance.new("Glue") gloo.Name = nam gloo.C0 = co gloo.C1 = ci gloo.Part0 = parto gloo.Part1 = parti gloo.Parent = paren end
- function maketouchy(parent, limb, cframe) local pr = Instance.new("Part") pr.Name = "touchy" pr.Size = Vector3.new(1, 1, 1) pr.Transparency = 1 pr.CustomPhysicalProperties = PhysicalProperties.new(0.55, 0.3, 0.5) pr.CanCollide = true pr.Anchored = false pr.Parent = parent local w = Instance.new("Weld") w.Part0 = pr w.Part1 = limb w.C0 = cframe w.Parent = pr end
- function makejoint(paren, co, ci, parto, parti, nam)local gloo = Instance.new("Motor6D")gloo.Name = nam gloo.C0 = co gloo.C1 = ci gloo.Part0 = parto gloo.Part1 = parti gloo.Parent = paren end
- function RagBlast(cactus)
- cactus.Humanoid.PlatformStand = true Shot = true
- local BV = Instance.new("BodyVelocity",c.HumanoidRootPart)BV.Velocity = RightGun.CFrame.lookVector*-400 BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)
- wait() BV:remove()
- if cactus["RightArm"]~=nil and cactus.Torso:FindFirstChild("Right Shoulder") then
- cactus.Torso:FindFirstChild("Right Shoulder"):Destroy()
- makegloo(cactus.Torso, RSC0, RSC1, cactus.Torso, cactus["RightArm"], "Right Shoulder")
- maketouchy(cactus["RightArm"], cactus["RightArm"], CFrame.new(0, 0.5, 0))
- end
- if cactus["Left Arm"]~=nil and cactus.Torso:FindFirstChild("Left Shoulder") then
- cactus.Torso:FindFirstChild("Left Shoulder"):Destroy()
- makegloo(cactus.Torso, LSC0, LSC1, cactus.Torso, cactus["Left Arm"], "Left Shoulder")
- maketouchy(cactus["Left Arm"], cactus["Left Arm"], CFrame.new(0, 0.5, 0))
- end
- if cactus["Right Leg"]~=nil and cactus.Torso:FindFirstChild("Right Hip") then
- cactus.Torso:FindFirstChild("Right Hip"):Destroy()
- makegloo(cactus.Torso, RHC0, RHC1, cactus.Torso, cactus["Right Leg"], "Right Hip")
- maketouchy(cactus["Right Leg"], cactus["Right Leg"], CFrame.new(0, 0.5, 0))
- end
- if cactus["Left Leg"]~=nil and cactus.Torso:FindFirstChild("Left Hip") then
- cactus.Torso:FindFirstChild("Left Hip"):Destroy()
- makegloo(cactus.Torso, LHC0, LHC1, cactus.Torso, cactus["Left Leg"], "Left Hip")
- maketouchy(cactus["Left Leg"], cactus["Left Leg"], CFrame.new(0, 0.5, 0))
- end
- local rag = true
- while rag == true do
- c.Humanoid.PlatformStand = true if Shot == false then break end
- if c.HumanoidRootPart.Velocity.Y < 0.5 and c.HumanoidRootPart.Velocity.Y > -0.5
- and c.HumanoidRootPart.Velocity.X < 1 and c.HumanoidRootPart.Velocity.X > -1
- and c.HumanoidRootPart.Velocity.Z < 1 and c.HumanoidRootPart.Velocity.Z > -1
- and Ded == false then rag = false break end
- wait()
- end
- if c.Humanoid.PlatformStand == true then c.Humanoid.Jump = true c.Humanoid.PlatformStand = false end
- Shot = false
- if cactus["RightArm"] and cactus.Torso:FindFirstChild("Right Shoulder") then
- cactus.Torso:FindFirstChild("Right Shoulder"):Destroy()
- makejoint(cactus.Torso, RSC0, RSC1, cactus.Torso, cactus["RightArm"], "Right Shoulder")
- cactus["RightArm"]:FindFirstChild("touchy"):Destroy()
- end
- if cactus["Left Arm"] and cactus.Torso:FindFirstChild("Left Shoulder") then
- cactus.Torso:FindFirstChild("Left Shoulder"):Destroy()
- makejoint(cactus.Torso, LSC0, LSC1, cactus.Torso, cactus["Left Arm"], "Left Shoulder")
- cactus["Left Arm"]:FindFirstChild("touchy"):Destroy()
- end
- if cactus["Right Leg"] and cactus.Torso:FindFirstChild("Right Hip") then
- cactus.Torso:FindFirstChild("Right Hip"):Destroy()
- makejoint(cactus.Torso, RHC0, RHC1, cactus.Torso, cactus["Right Leg"], "Right Hip")
- cactus["Right Leg"]:FindFirstChild("touchy"):Destroy()
- end
- if cactus["Left Leg"] and cactus.Torso:FindFirstChild("Left Hip") then
- cactus.Torso:FindFirstChild("Left Hip"):Destroy()
- makejoint(cactus.Torso, LHC0, LHC1, cactus.Torso, cactus["Left Leg"], "Left Hip")
- cactus["Left Leg"]:FindFirstChild("touchy"):Destroy()
- end
- if cactus.Torso:findFirstChild("BodyPosition")~=nil then
- cactus.Torso.BodyPosition:remove()
- end
- if cactus.Torso:findFirstChild("BodyGyro")~=nil then
- cactus.Torso.BodyGyro:remove()
- end
- RS = cactus.Torso:FindFirstChild("Right Shoulder")
- LS = cactus.Torso:FindFirstChild("Left Shoulder")
- RH = cactus.Torso:FindFirstChild("Right Hip")
- LH = cactus.Torso:FindFirstChild("Left Hip")
- RJ = c.HumanoidRootPart:FindFirstChild("RootJoint")
- N = cactus.Torso:FindFirstChild("Neck")
- end
- function GunBlast(Pos)
- spawn(function()
- local P = Instance.new("Part",c)P.Transparency = 0 P.CanCollide = false P.Anchored = true P.CFrame = Pos P.Size = Vector3.new(1,1,1)
- P.BrickColor = BrickColor.new("Medium stone grey")P.Material = "Neon" local PM = Instance.new("SpecialMesh",P)PM.MeshType = "Sphere"PM.Scale = Vector3.new(0,0,0)
- for i = 1,10 do
- PM.Scale = PM.Scale + Vector3.new(2,2,2)
- P.Transparency = P.Transparency + 0.1
- swait()
- end
- P:remove()
- end)
- end
- mouse.Button1Down:connect(function()
- local P = Instance.new("Part",c)P.Transparency = 1 P.CanCollide = false P.Anchored = true P.CFrame = RightGun.CFrame*CFrame.new(0,0,1.5)
- local S = Instance.new("Sound",P)S.SoundId = "rbxassetid://158811113" S.Volume = 1 S:Play()
- GunBlast(RightGun.CFrame*CFrame.new(0,0,-1.5)) game.Debris:AddItem(P,2) RagBlast(c)
- end)
- idletime = 0
- sine = 0
- game:GetService("RunService").RenderStepped:connect(function()
- c.Humanoid.Health = c.Humanoid.Health + 1
- if Shot == false then
- local ToMouse = (mouse.hit.p - Head.Position).unit
- local Angle = math.acos(ToMouse:Dot(Vector3.new(0, 1, 0)))
- local FromRightArmPos = (Head.Position + Head.CFrame:vectorToWorldSpace(Vector3.new(((Head.Size.X / 2) + (c["RightArm"].Size.X / 2)), ((Head.Size.Y / 2) - (c["RightArm"].Size.Z / 2)), 0)))
- local ToMouseRightArm = ((mouse.hit.p - FromRightArmPos) * Vector3.new(1 ,0, 1)).unit
- local Look = (Head.CFrame.lookVector * Vector3.new(1, 0, 1)).unit
- local LateralAngle = math.acos(ToMouseRightArm:Dot(Look))
- if tostring(LateralAngle) == "-1.#IND" then
- LateralAngle = 0
- end
- local Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm)
- if LateralAngle > (math.pi / 2) then
- LateralAngle = (math.pi / 2)
- end
- if Cross.Y < 0 then
- LateralAngle = -LateralAngle
- end
- RS.C0 = CFrame.new(RS.C0.p) * CFrame.Angles(((math.pi / 2) - Angle), ((math.pi / 2) + LateralAngle), 0)
- RS.C0 = RS.C0*CFrame.Angles(0,0,math.rad(90))
- end
- end)
Add Comment
Please, Sign In to add comment