Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --EDIT BY LUKASLUN17--
- for i,v in pairs(game.Players.Lukaslun17.Character:GetChildren()) do
- if v.ClassName == 'Accessory' then
- v:Destroy()
- end
- end
- for i,v in pairs(game.Players.Lukaslun17.Character:GetChildren()) do
- if v.ClassName == 'Shirt' then
- v:Destroy()
- end
- end
- for i,v in pairs(game.Players.Lukaslun17.Character:GetChildren()) do
- if v.ClassName == 'Pants' then
- v:Destroy()
- end
- end
- wait()
- shirt = Instance.new('Shirt')
- shirt.Parent = game.Players.Lukaslun17.Character
- shirt.ShirtTemplate = 'http://www.roblox.com/asset/?id=138688150'
- shirt = Instance.new('Pants')
- shirt.Parent = game.Players.Lukaslun17.Character
- shirt.PantsTemplate = 'http://www.roblox.com/asset/?id=138745243'
- hat1 = Instance.new('Hat')
- hat1.Parent = game.Players.Lukaslun17.Character
- hat1.AttachmentForward = Vector3.new(0, 0, 11)
- hat1.AttachmentPos = Vector3.new(0, 0.2, 0)
- hat1.AttachmentRight = Vector3.new(1, 0, 0)
- hat1.AttachmentUp = Vector3.new(0, 1, 0)
- handle = Instance.new('Part')
- handle.Name = 'Handle'
- handle.Parent = hat1
- handle.Size = Vector3.new(1, 2.3, 1)
- handlemesh = Instance.new('SpecialMesh')
- handlemesh.MeshType = 'FileMesh'
- handlemesh.MeshId = 'http://www.roblox.com/asset/?id=306063581'
- handlemesh.TextureId = 'rbxassetid://306062884'
- handlemesh.Parent = handle
- Theme = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
- Theme.SoundId = "rbxassetid://970521468"
- Theme.Looped = true
- Theme.Volume = 10
- Theme:Play()
- Theme2 = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
- Theme2.SoundId = "rbxassetid://89355818"
- Theme2.Looped = false
- Theme2.Volume = 5
- Theme2:Play()
- Theme3 = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
- Theme3.SoundId = "rbxassetid://796971402"
- Theme3.Looped = false
- Theme3.Volume = 15
- Theme3:Play()
- game.Players.Lukaslun17.Character["Body Colors"].HeadColor = BrickColor.new("Really black")
- local health = 5000
- local speed = 20
- local damage = 35
- local runDummyScript = function(f,scri)
- local oldenv = getfenv(f)
- local newenv = setmetatable({}, {
- __index = function(_, k)
- if k:lower() == 'script' then
- return scri
- else
- return oldenv[k]
- end
- end
- })
- setfenv(f, newenv)
- ypcall(function() f() end)
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- mas.Name = "CompiledModel"
- o1 = Instance.new("Model")
- o2 = Instance.new("Part")
- o3 = Instance.new("Part")
- o4 = Instance.new("Part")
- o5 = Instance.new("Part")
- o6 = Instance.new("Part")
- o7 = Instance.new("Part")
- o8 = Instance.new("Part")
- o9 = Instance.new("Part")
- o10 = Instance.new("Part")
- o11 = Instance.new("Part")
- o12 = Instance.new("Part")
- o13 = Instance.new("Part")
- o1.Name = "Saber"
- o1.Parent = mas
- o2.Name = "Handle"
- o2.Parent = o1
- o2.Material = Enum.Material.SmoothPlastic
- o2.BrickColor = BrickColor.new("Dark stone grey")
- o2.Position = Vector3.new(56, 5.11798573, 33.7409973)
- o2.Rotation = Vector3.new(90.0000076, -90, 0)
- o2.Anchored = true
- o2.CanCollide = false
- o2.Shape = Enum.PartType.Cylinder
- o2.Size = Vector3.new(2, 0.5, 0.5)
- o2.CFrame = CFrame.new(56, 5.11798573, 33.7409973, 1.50995831e-007, -1.50995774e-007, -1, -1, -1.50995817e-007, -1.50995803e-007, -1.50995788e-007, 1, -1.50995803e-007)
- o2.BottomSurface = Enum.SurfaceType.Smooth
- o2.TopSurface = Enum.SurfaceType.Smooth
- o2.Color = Color3.new(0.388235, 0.372549, 0.384314)
- o2.Position = Vector3.new(56, 5.11798573, 33.7409973)
- o3.Parent = o1
- o3.Material = Enum.Material.SmoothPlastic
- o3.BrickColor = BrickColor.new("Smoky grey")
- o3.Position = Vector3.new(56, 4.11000824, 33.7409973)
- o3.Rotation = Vector3.new(90.0000076, -90, 0)
- o3.Anchored = true
- o3.CanCollide = false
- o3.Shape = Enum.PartType.Cylinder
- o3.Size = Vector3.new(0.200000003, 0.600000024, 0.600000024)
- o3.CFrame = CFrame.new(56, 4.11000824, 33.7409973, 1.50995831e-007, -1.50995774e-007, -1, -1, -1.50995817e-007, -1.50995803e-007, -1.50995788e-007, 1, -1.50995803e-007)
- o3.BottomSurface = Enum.SurfaceType.Smooth
- o3.TopSurface = Enum.SurfaceType.Smooth
- o3.Color = Color3.new(0.356863, 0.364706, 0.411765)
- o3.Position = Vector3.new(56, 4.11000824, 33.7409973)
- o4.Parent = o1
- o4.Material = Enum.Material.SmoothPlastic
- o4.BrickColor = BrickColor.new("Smoky grey")
- o4.Position = Vector3.new(56, 6.01100636, 33.7409973)
- o4.Rotation = Vector3.new(90.0000076, -90, 0)
- o4.Anchored = true
- o4.CanCollide = false
- o4.Shape = Enum.PartType.Cylinder
- o4.Size = Vector3.new(0.200000003, 0.600000024, 0.600000024)
- o4.CFrame = CFrame.new(56, 6.01100636, 33.7409973, 1.50995831e-007, -1.50995774e-007, -1, -1, -1.50995817e-007, -1.50995803e-007, -1.50995788e-007, 1, -1.50995803e-007)
- o4.BottomSurface = Enum.SurfaceType.Smooth
- o4.TopSurface = Enum.SurfaceType.Smooth
- o4.Color = Color3.new(0.356863, 0.364706, 0.411765)
- o4.Position = Vector3.new(56, 6.01100636, 33.7409973)
- o5.Parent = o1
- o5.Material = Enum.Material.SmoothPlastic
- o5.BrickColor = BrickColor.new("Really black")
- o5.Position = Vector3.new(55.9981995, 6.02698612, 33.7367439)
- o5.Rotation = Vector3.new(90, 90, 0)
- o5.Anchored = true
- o5.CanCollide = false
- o5.Shape = Enum.PartType.Cylinder
- o5.Size = Vector3.new(0.200000003, 0.400000006, 0.5)
- o5.CFrame = CFrame.new(55.9981995, 6.02698612, 33.7367439, 0, 0, 1, 1, 0, 0, 0, 1, 0)
- o5.BottomSurface = Enum.SurfaceType.Smooth
- o5.TopSurface = Enum.SurfaceType.Smooth
- o5.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o5.Position = Vector3.new(55.9981995, 6.02698612, 33.7367439)
- o6.Name = "Blade"
- o6.Parent = o1
- o6.Material = Enum.Material.Neon
- o6.BrickColor = BrickColor.new("Really red")
- o6.Transparency = 1
- o6.Position = Vector3.new(55.9981995, 7.85400581, 33.7367439)
- o6.Rotation = Vector3.new(90, 90, 0)
- o6.Anchored = true
- o6.CanCollide = false
- o6.Shape = Enum.PartType.Cylinder
- o6.Size = Vector3.new(3.5, 0.400000006, 0.5)
- o6.CFrame = CFrame.new(55.9981995, 7.85400581, 33.7367439, 0, 0, 1, 1, 0, 0, 0, 1, 0)
- o6.BottomSurface = Enum.SurfaceType.Smooth
- o6.TopSurface = Enum.SurfaceType.Smooth
- o6.Position = Vector3.new(55.9981995, 7.85400581, 33.7367439)
- o7.Parent = o1
- o7.Material = Enum.Material.SmoothPlastic
- o7.BrickColor = BrickColor.new("Black")
- o7.Position = Vector3.new(56, 4.34401417, 33.7409973)
- o7.Rotation = Vector3.new(90.0000076, -90, 0)
- o7.Anchored = true
- o7.CanCollide = false
- o7.Shape = Enum.PartType.Cylinder
- o7.Size = Vector3.new(0.200000003, 0.550000012, 0.600000024)
- o7.CFrame = CFrame.new(56, 4.34401417, 33.7409973, -4.37113883e-008, 0, -1, -1, -1.62920685e-007, 4.37113883e-008, -1.62920685e-007, 1, 7.12148964e-015)
- o7.BottomSurface = Enum.SurfaceType.Smooth
- o7.TopSurface = Enum.SurfaceType.Smooth
- o7.Color = Color3.new(0.105882, 0.164706, 0.207843)
- o7.Position = Vector3.new(56, 4.34401417, 33.7409973)
- o8.Parent = o1
- o8.Material = Enum.Material.SmoothPlastic
- o8.BrickColor = BrickColor.new("Black")
- o8.Position = Vector3.new(56, 4.74401188, 33.7409973)
- o8.Rotation = Vector3.new(90.0000076, -90, 0)
- o8.Anchored = true
- o8.CanCollide = false
- o8.Shape = Enum.PartType.Cylinder
- o8.Size = Vector3.new(0.200000003, 0.550000012, 0.600000024)
- o8.CFrame = CFrame.new(56, 4.74401188, 33.7409973, -4.37113883e-008, 0, -1, -1, -1.62920685e-007, 4.37113883e-008, -1.62920685e-007, 1, 7.12148964e-015)
- o8.BottomSurface = Enum.SurfaceType.Smooth
- o8.TopSurface = Enum.SurfaceType.Smooth
- o8.Color = Color3.new(0.105882, 0.164706, 0.207843)
- o8.Position = Vector3.new(56, 4.74401188, 33.7409973)
- o9.Parent = o1
- o9.Material = Enum.Material.SmoothPlastic
- o9.BrickColor = BrickColor.new("Black")
- o9.Position = Vector3.new(56, 5.08402443, 33.7409973)
- o9.Rotation = Vector3.new(90.0000076, -90, 0)
- o9.Anchored = true
- o9.CanCollide = false
- o9.Shape = Enum.PartType.Cylinder
- o9.Size = Vector3.new(0.200000003, 0.550000012, 0.600000024)
- o9.CFrame = CFrame.new(56, 5.08402443, 33.7409973, -4.37113883e-008, 0, -1, -1, -1.62920685e-007, 4.37113883e-008, -1.62920685e-007, 1, 7.12148964e-015)
- o9.BottomSurface = Enum.SurfaceType.Smooth
- o9.TopSurface = Enum.SurfaceType.Smooth
- o9.Color = Color3.new(0.105882, 0.164706, 0.207843)
- o9.Position = Vector3.new(56, 5.08402443, 33.7409973)
- o10.Parent = o1
- o10.Material = Enum.Material.SmoothPlastic
- o10.BrickColor = BrickColor.new("Black")
- o10.Position = Vector3.new(56, 5.41400814, 33.7409973)
- o10.Rotation = Vector3.new(90.0000076, -90, 0)
- o10.Anchored = true
- o10.CanCollide = false
- o10.Shape = Enum.PartType.Cylinder
- o10.Size = Vector3.new(0.200000003, 0.550000012, 0.600000024)
- o10.CFrame = CFrame.new(56, 5.41400814, 33.7409973, -4.37113883e-008, 0, -1, -1, -1.62920685e-007, 4.37113883e-008, -1.62920685e-007, 1, 7.12148964e-015)
- o10.BottomSurface = Enum.SurfaceType.Smooth
- o10.TopSurface = Enum.SurfaceType.Smooth
- o10.Color = Color3.new(0.105882, 0.164706, 0.207843)
- o10.Position = Vector3.new(56, 5.41400814, 33.7409973)
- o11.Parent = o1
- o11.Material = Enum.Material.SmoothPlastic
- o11.BrickColor = BrickColor.new("Smoky grey")
- o11.Position = Vector3.new(56.0248947, 5.70129061, 33.5617981)
- o11.Anchored = true
- o11.CanCollide = false
- o11.Size = Vector3.new(0.300000012, 0.300000012, 0.200000003)
- o11.CFrame = CFrame.new(56.0248947, 5.70129061, 33.5617981, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o11.BottomSurface = Enum.SurfaceType.Smooth
- o11.TopSurface = Enum.SurfaceType.Smooth
- o11.Color = Color3.new(0.356863, 0.364706, 0.411765)
- o11.Position = Vector3.new(56.0248947, 5.70129061, 33.5617981)
- o12.Parent = o1
- o12.Material = Enum.Material.SmoothPlastic
- o12.BrickColor = BrickColor.new("Smoky grey")
- o12.Position = Vector3.new(56, 5.70401382, 33.7409973)
- o12.Rotation = Vector3.new(90.0000076, -90, 0)
- o12.Anchored = true
- o12.CanCollide = false
- o12.Shape = Enum.PartType.Cylinder
- o12.Size = Vector3.new(0.200000003, 0.550000012, 0.600000024)
- o12.CFrame = CFrame.new(56, 5.70401382, 33.7409973, -4.37113883e-008, 0, -1, -1, -1.62920685e-007, 4.37113883e-008, -1.62920685e-007, 1, 7.12148964e-015)
- o12.BottomSurface = Enum.SurfaceType.Smooth
- o12.TopSurface = Enum.SurfaceType.Smooth
- o12.Color = Color3.new(0.356863, 0.364706, 0.411765)
- o12.Position = Vector3.new(56, 5.70401382, 33.7409973)
- o13.Name = "Button"
- o13.Parent = o1
- o13.Material = Enum.Material.SmoothPlastic
- o13.BrickColor = BrickColor.new("Really red")
- o13.Position = Vector3.new(56.0299988, 5.69999981, 33.5109978)
- o13.Rotation = Vector3.new(2.04905682e-005, -90, 0)
- o13.Anchored = true
- o13.CanCollide = false
- o13.Shape = Enum.PartType.Cylinder
- o13.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- o13.CFrame = CFrame.new(56.0299988, 5.69999981, 33.5109978, -4.37113883e-008, 0, -1, -3.57627869e-007, 1, 1.56324098e-014, 1, 3.57627869e-007, -4.37113883e-008)
- o13.BottomSurface = Enum.SurfaceType.Smooth
- o13.TopSurface = Enum.SurfaceType.Smooth
- o13.Color = Color3.new(1, 0, 0)
- o13.Position = Vector3.new(56.0299988, 5.69999981, 33.5109978)
- mas.Parent = workspace
- mas:MakeJoints()
- local mas1 = mas:GetChildren()
- for i=1,#mas1 do
- mas1[i].Parent = workspace
- ypcall(function() mas1[i]:MakeJoints() end)
- end
- mas:Destroy()
- for i=1,#cors do
- coroutine.resume(cors[i])
- end
- function indicate(part,damagevar)
- local clonepart = Instance.new("Part", workspace)
- clonepart.Size = Vector3.new(1,1,1)
- clonepart.CanCollide = false
- clonepart.Anchored = true
- clonepart.CFrame = part.CFrame
- clonepart.Transparency = 1
- local base1 = Instance.new("BillboardGui", clonepart)
- base1.Name = "damage"
- base1.ExtentsOffset = Vector3.new(-0.1,2,0)
- base1.Size = UDim2.new(1,0,1,0)
- base1.Adornee = clonepart
- local indicator = Instance.new("TextLabel", base1)
- indicator.Text = "-"..math.floor(damagevar)
- indicator.TextScaled = false
- indicator.TextWrapped = false
- indicator.TextColor3 = Color3.new(1,0,0)
- indicator.TextScaled = true
- indicator.FontSize = 7
- indicator.Size = UDim2.new(1,0,1,0)
- indicator.BackgroundTransparency = 1
- local change = coroutine.wrap(function(thing,thing2)
- for i=1, 20 do
- thing.TextTransparency = thing.TextTransparency + 0.05
- thing2.ExtentsOffset = thing2.ExtentsOffset + Vector3.new(0,0.1,0)
- wait(0.0001)
- end
- indicator.Parent.Parent:Remove()
- end)
- change(indicator,base1)
- end
- ---------------------------------------------------------------------------------------------------
- local saber = o1
- local handle = o1:FindFirstChild("Handle")
- local blade = o1:FindFirstChild("Blade")
- local button = o1:FindFirstChild("Button")
- local Player = game.Players.LocalPlayer
- o1.Parent = Player.Character
- local Mouse = Player:GetMouse()
- local hitter = false
- local animstate = -1
- local equipped = false
- local keyframe = 0
- local cooled = true
- local cooled2 = true
- local cooled3 = true
- local cooled4 = true
- local attacking = false
- local hits = {}
- local combo = 0
- local qtarget = nil
- local animating = false
- local indexer = 0
- local ready = true
- local ready1 = true
- local ready2 = true
- Player.Character.Humanoid.MaxHealth = health
- wait()
- Player.Character.Humanoid.Health = Player.Character.Humanoid.MaxHealth
- Player.Character.Humanoid.WalkSpeed = speed
- if script.Parent ~= Player.Backpack then
- script.Parent = Player.Backpack
- end
- local Character = Player.Character
- Character.Animate:remove()
- Character.Humanoid.Animator:remove()
- for _,v in pairs (saber:GetChildren()) do
- if v.Name ~= "Handle" then
- local NewWeld = Instance.new("Weld")
- NewWeld.Part0 = handle
- NewWeld.Part1 = v
- NewWeld.C0 = CFrame.new()
- NewWeld.C1 = v.CFrame:toObjectSpace(handle.CFrame)
- if v.Name == "Blade" then
- NewWeld.Name = "BladeWeld"
- end
- NewWeld.Parent = handle
- end
- wait()
- end
- for _,v in pairs (saber:GetChildren()) do
- v.Anchored = false
- wait()
- end
- handle.CFrame = Character:FindFirstChild("Right Arm").CFrame*CFrame.new(0,-1.2,-3)*CFrame.Angles(0,math.rad(270),math.rad(180))
- local HandleWeld = Instance.new("Weld")
- HandleWeld.Name = "HandleWeld"
- HandleWeld.Part0 = Character:FindFirstChild("Right Arm")
- HandleWeld.Part1 = handle
- HandleWeld.C0 = CFrame.new(0,0,0)
- HandleWeld.C1 = handle.CFrame:toObjectSpace(Character:FindFirstChild("Right Arm").CFrame)
- HandleWeld.Parent = handle
- numLerp=function(start,goal,alpha)
- return(((goal-start)*alpha)+start);
- end;
- CFrameZero=function()
- return CFrame.new(Vector3.new());
- end;
- local function a()
- local t=tick();
- local l=t%1*3;
- local t=.5*math.pi*(l%1);
- if l<1 then
- return Color3.new(1,1-math.cos(t),1-math.sin(t));
- elseif l<2 then
- return Color3.new(1-math.sin(t),1,1-math.cos(t));
- else
- return Color3.new(1-math.cos(t),1-math.sin(t),1);
- end;
- end;
- rad=function(value)
- return math.rad(value);
- end;
- CFAngles=function(Vector)
- return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z));
- end;
- AnimStat={
- lerpSpeed=.2;
- lerpSpeed2=.35;
- lerpTween=0;
- }
- Joints={
- Character.HumanoidRootPart.RootJoint;
- Character.Torso.Neck;
- Character.Torso['Left Shoulder'];
- Character.Torso['Right Shoulder'];
- Character.Torso['Left Hip'];
- Character.Torso['Right Hip'];
- handle:FindFirstChild("HandleWeld")
- }
- local orig1 = Joints[1].C0
- local orig2 = Joints[2].C0
- local orig3 = Joints[3].C0
- local orig4 = Joints[4].C0
- local orig5 = Joints[5].C0
- local orig6 = Joints[6].C0
- local orig7 = Joints[7].C0
- JointTargets={
- Character.HumanoidRootPart.RootJoint.C0;
- Character.Torso.Neck.C0;
- Character.Torso['Left Shoulder'].C0;
- Character.Torso['Right Shoulder'].C0;
- Character.Torso['Left Hip'].C0;
- Character.Torso['Right Hip'].C0;
- handle:FindFirstChild("HandleWeld").C0;
- }
- setJointCFrames=function(table)
- for i=1,#table do
- JointTargets[i]=table[i];
- end
- end
- triWave=function(x)
- local pi2=math.pi/2;
- return math.abs((x/pi2)%4-2)-1;
- end
- setLerp=function(speed)
- AnimStat.lerpSpeed=speed;
- end;
- setTween=function(tween)
- AnimStat.lerpTween=tween;
- end
- local FPSLerp=AnimStat.lerpSpeed
- local animator = coroutine.wrap(function()
- while Player.Character do
- if Player.Character.Humanoid.MoveDirection == Vector3.new(0,0,0) and not attacking and animstate ~= 0 then
- ready = true
- animstate = 0
- keyframe = 0
- elseif Player.Character.Humanoid.MoveDirection ~= Vector3.new(0,0,0) and not attacking and animstate ~= 1 then
- ready = true
- animstate = 1
- keyframe = 0
- end
- if animstate == 0 and ready then
- if keyframe == 0 then
- ready = false
- JointTargets={
- orig1*CFrame.Angles(0,0,math.rad(15));
- orig2*CFrame.Angles(0,0,math.rad(-15));
- orig3*CFrame.Angles(math.rad(40),math.rad(65),0);
- orig4*CFrame.Angles(math.rad(40),math.rad(85),math.rad(20));
- orig5*CFrame.Angles(math.rad(-15),0,0);
- orig6*CFrame.Angles(math.rad(-5),math.rad(-15),0);
- Joints[7].C0;
- }
- local lerper = coroutine.wrap(function(rate)
- for i=1, 10 do
- for p=1,#Joints do
- if animstate == 0 then
- Joints[p].C0=Joints[p].C0:lerp(JointTargets[p],0.1*i)
- end
- end
- wait(rate)
- end
- if animstate == 0 then
- keyframe = 1
- ready = true
- end
- end)
- lerper(0.001)
- elseif keyframe == 1 then
- ready = false
- JointTargets={
- orig1*CFrame.new(0,0,0.05)*CFrame.Angles(0,0,math.rad(15));
- orig2*CFrame.Angles(math.rad(3),0,math.rad(-15));
- orig3*CFrame.Angles(math.rad(35),math.rad(60),0);
- orig4*CFrame.Angles(math.rad(38),math.rad(83),math.rad(18));
- orig5*CFrame.new(0,-0.05,-0.025)*CFrame.Angles(math.rad(-15),0,0);
- orig6*CFrame.new(0,-0.05,-0.025)*CFrame.Angles(math.rad(-5),math.rad(-15),0);
- Joints[7].C0;
- }
- if indexer + 1 <= 22 then
- indexer = indexer + 1
- for p=1,#Joints do
- if animstate == 0 then
- Joints[p].C0=Joints[p].C0:lerp(JointTargets[p],indexer/50)
- end
- end
- ready = true
- else
- indexer = 0
- keyframe = 2
- ready = true
- end
- elseif keyframe == 2 then
- ready = false
- JointTargets={
- orig1*CFrame.Angles(0,0,math.rad(15));
- orig2*CFrame.Angles(0,0,math.rad(-15));
- orig3*CFrame.Angles(math.rad(40),math.rad(65),0);
- orig4*CFrame.Angles(math.rad(40),math.rad(85),math.rad(20));
- orig5*CFrame.Angles(math.rad(-15),0,0);
- orig6*CFrame.Angles(math.rad(-5),math.rad(-15),0);
- Joints[7].C0;
- }
- if indexer + 1 <= 22 then
- indexer = indexer + 1
- for p=1,#Joints do
- if animstate == 0 then
- Joints[p].C0=Joints[p].C0:lerp(JointTargets[p],indexer/50)
- end
- end
- ready = true
- else
- indexer = 0
- keyframe = 1
- ready = true
- end
- end
- elseif animstate == 1 and ready then
- if keyframe == 0 then
- ready = false
- JointTargets={
- orig1;
- orig2*CFrame.Angles(math.rad(15),0,0);
- orig3*CFrame.Angles(math.rad(40),math.rad(65),0);
- orig4*CFrame.Angles(math.rad(40),math.rad(-65),math.rad(90));
- orig5*CFrame.Angles(0,0,math.rad(35));
- orig6*CFrame.Angles(0,0,math.rad(35));
- Joints[7].C0;
- }
- local lerper = coroutine.wrap(function(rate)
- for i=1, 10 do
- for p=1,#Joints do
- if animstate == 1 then
- Joints[p].C0=Joints[p].C0:lerp(JointTargets[p],0.1*i)
- end
- end
- wait(rate)
- end
- if animstate == 1 then
- keyframe = 1
- ready = true
- end
- end)
- lerper(0.001)
- elseif keyframe == 1 then
- ready = false
- JointTargets={
- orig1;
- orig2*CFrame.Angles(math.rad(15),0,0);
- orig3*CFrame.Angles(math.rad(40),math.rad(65),0);
- orig4*CFrame.Angles(math.rad(40),math.rad(-65),math.rad(90));
- orig5*CFrame.Angles(0,0,math.rad(-35));
- orig6*CFrame.Angles(0,0,math.rad(-35));
- Joints[7].C0;
- }
- local lerper = coroutine.wrap(function(rate)
- for i=1, 10 do
- for p=1,#Joints do
- if animstate == 1 then
- Joints[p].C0=Joints[p].C0:lerp(JointTargets[p],0.1*i)
- end
- end
- wait(rate)
- end
- if animstate == 1 then
- keyframe = 0
- ready = true
- end
- end)
- lerper(0.001)
- end
- elseif animstate == 2 and ready then
- if combo == 1 then
- if keyframe == 0 then
- ready = false
- cooled = false
- animating = true
- JointTargets={
- orig1*CFrame.Angles(0,0,math.rad(45));
- orig2*CFrame.Angles(0,0,math.rad(-25));
- orig3*CFrame.Angles(math.rad(-35),0,0);
- orig4*CFrame.Angles(math.rad(65),0,math.rad(155));
- Joints[5].C0;
- Joints[6].C0;
- Joints[7].C0;
- }
- local lerper = coroutine.wrap(function(rate)
- for i=1, 5 do
- for p=1,#Joints do
- if animstate == 2 then
- Joints[p].C0=Joints[p].C0:lerp(JointTargets[p],0.2*i)
- end
- end
- wait(rate)
- end
- ready = true
- keyframe = 1
- end)
- lerper(0)
- elseif keyframe == 1 then
- ready = false
- hitter = true
- JointTargets={
- orig1*CFrame.Angles(0,0,math.rad(85));
- orig2*CFrame.Angles(0,0,math.rad(-65));
- orig3*CFrame.Angles(math.rad(-35),0,0);
- orig4*CFrame.Angles(math.rad(65),0,math.rad(65));
- Joints[5].C0;
- Joints[6].C0;
- Joints[7].C0;
- }
- local lerper = coroutine.wrap(function(rate)
- for i=1, 10 do
- for p=1,#Joints do
- if animstate == 2 then
- Joints[p].C0=Joints[p].C0:lerp(JointTargets[p],0.1*i)
- end
- end
- print(i)
- wait(rate)
- end
- ready = true
- hitter = false
- attacking = false
- animating = false
- hits = {}
- keyframe = 0
- animstate = -1
- local comboer = coroutine.wrap(function(limit)
- cooled = true
- wait(limit)
- if animstate ~= 2 then
- cooled = false
- combo = 0
- wait(0.35)
- cooled = true
- end
- end)
- comboer(0.3)
- end)
- lerper(0.0001)
- end
- elseif combo == 2 then
- if keyframe == 0 then
- ready = false
- cooled = false
- animating = true
- JointTargets={
- orig1*CFrame.Angles(0,0,math.rad(85));
- orig2*CFrame.Angles(0,0,math.rad(-65));
- orig3*CFrame.Angles(math.rad(-45),0,0);
- orig4*CFrame.Angles(math.rad(-50),0,math.rad(55));
- Joints[5].C0;
- Joints[6].C0;
- Joints[7].C0;
- }
- local lerper = coroutine.wrap(function(rate)
- for i=1, 5 do
- for p=1,#Joints do
- if animstate == 2 then
- Joints[p].C0=Joints[p].C0:lerp(JointTargets[p],0.2*i)
- end
- end
- wait(rate)
- end
- ready = true
- keyframe = 1
- end)
- lerper(0)
- elseif keyframe == 1 then
- ready = false
- hitter = true
- JointTargets={
- orig1*CFrame.Angles(0,0,math.rad(15));
- orig2*CFrame.Angles(0,0,math.rad(-5));
- orig3*CFrame.Angles(math.rad(-35),0,0);
- orig4*CFrame.Angles(math.rad(-65),0,math.rad(-55));
- Joints[5].C0;
- Joints[6].C0;
- Joints[7].C0;
- }
- local lerper = coroutine.wrap(function(rate)
- for i=1, 10 do
- for p=1,#Joints do
- if animstate == 2 then
- Joints[p].C0=Joints[p].C0:lerp(JointTargets[p],0.1*i)
- end
- end
- wait(rate)
- end
- ready = true
- hitter = false
- attacking = false
- animating = false
- hits = {}
- keyframe = 0
- animstate = -1
- local comboer = coroutine.wrap(function(limit)
- cooled = true
- wait(limit)
- if animstate ~= 2 then
- cooled = false
- combo = 0
- wait(0.35)
- cooled = true
- end
- end)
- comboer(0.3)
- end)
- lerper(0.001)
- end
- elseif combo == 3 then
- if keyframe == 0 then
- ready = false
- cooled = false
- animating = true
- JointTargets={
- orig1*CFrame.Angles(0,0,math.rad(125));
- orig2*CFrame.Angles(0,0,math.rad(-105));
- orig3*CFrame.Angles(math.rad(-35),0,0);
- orig4*CFrame.Angles(math.rad(-50),0,math.rad(55));
- Joints[5].C0;
- Joints[6].C0;
- Joints[7].C0;
- }
- local lerper = coroutine.wrap(function(rate)
- for i=1, 5 do
- for p=1,#Joints do
- if animstate == 2 then
- Joints[p].C0=Joints[p].C0:lerp(JointTargets[p],0.2*i)
- end
- end
- wait(rate)
- end
- ready = true
- keyframe = 1
- end)
- lerper(0)
- elseif keyframe == 1 then
- ready = false
- hitter = true
- JointTargets={
- orig1*CFrame.Angles(0,0,math.rad(-35));
- orig2*CFrame.Angles(0,0,math.rad(-15));
- orig3*CFrame.Angles(math.rad(-15),0,0);
- orig4*CFrame.Angles(math.rad(65),0,math.rad(65));
- Joints[5].C0;
- Joints[6].C0;
- Joints[7].C0;
- }
- local lerper = coroutine.wrap(function(rate)
- for i=1, 10 do
- for p=1,#Joints do
- if animstate == 2 then
- Joints[p].C0=Joints[p].C0:lerp(JointTargets[p],0.1*i)
- end
- end
- print(i)
- wait(rate)
- end
- JointTargets={
- orig1*CFrame.Angles(0,0,math.rad(125));
- orig2*CFrame.Angles(0,0,math.rad(-105));
- orig3*CFrame.Angles(math.rad(-45),0,0);
- orig4*CFrame.Angles(math.rad(65),0,math.rad(65));
- Joints[5].C0;
- Joints[6].C0;
- Joints[7].C0;
- }
- local lerper2 = coroutine.wrap(function(rate2)
- for o=1, 10 do
- for y=1,#Joints do
- Joints[y].C0=Joints[y].C0:lerp(JointTargets[y],0.1*o)
- end
- print(o)
- wait(rate2)
- end
- ready = true
- hitter = false
- attacking = false
- animating = false
- hits = {}
- keyframe = 0
- animstate = -1
- local comboer = coroutine.wrap(function()
- combo = 0
- wait(0.35)
- cooled = true
- end)
- comboer()
- end)
- hits = {}
- lerper2(0.00001)
- end)
- lerper(0.001)
- end
- end
- elseif animstate == 3 and ready then
- if keyframe == 0 then
- Player.Character.Humanoid.WalkSpeed = 0
- ready = false
- cooled2 = false
- animating = true
- JointTargets={
- orig1*CFrame.Angles(0,0,math.rad(-85));
- orig2*CFrame.Angles(0,0,math.rad(85));
- orig3*CFrame.Angles(math.rad(-90),math.rad(90),0);
- orig4*CFrame.Angles(math.rad(-35),0,0);
- Joints[5].C0;
- Joints[6].C0;
- Joints[7].C0;
- }
- local lerper = coroutine.wrap(function(rate)
- for i=1, 10 do
- for p=1,#Joints do
- if animstate == 3 then
- Joints[p].C0=Joints[p].C0:lerp(JointTargets[p],0.1*i)
- end
- end
- wait(rate)
- end
- keyframe = 1
- ready = true
- end)
- lerper(0.001)
- elseif keyframe == 1 then
- ready = false
- local velocity = Instance.new("BodyVelocity",qtarget:FindFirstChild("Torso"))
- velocity.Velocity = Vector3.new(0,1.5,0)
- local lerper = coroutine.wrap(function(rate)
- for i=1, 20 do
- if animstate == 3 then
- qtarget:FindFirstChild("Humanoid"):TakeDamage(damage*0.06)
- indicate(qtarget:FindFirstChild("Head"),damage*0.06)
- if i%2 == 0 then
- local wave = Instance.new("Part", game.Workspace)
- wave.FormFactor = 0
- wave.Size = Vector3.new(5,5,1)
- wave.Transparency = 0.6
- wave.Anchored = true
- wave.CanCollide = false
- wave.CFrame = Player.Character.Torso.CFrame * CFrame.new(0,-2.75,0) * CFrame.Angles(0, -(3), 0)
- wave.BrickColor = BrickColor.new("Institutional white")
- local mesh = Instance.new("SpecialMesh", wave)
- mesh.MeshType = 5
- mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
- mesh.Scale = Vector3.new(1,0.5,1)
- local grow = coroutine.wrap(function(part)
- game:GetService("Debris"):AddItem(part, 2)
- for x = 1, 25 do
- part.Mesh.Scale = part.Mesh.Scale + Vector3.new(0.5,0.25,0.5)
- part.Transparency = part.Transparency + 0.02
- wait()
- end
- part:Destroy()
- end)
- grow(wave)
- end
- end
- wait(rate)
- end
- keyframe = 2
- ready = true
- velocity:remove()
- end)
- lerper(0.1)
- elseif keyframe == 2 then
- ready = false
- attacking = false
- animating = false
- keyframe = 0
- animstate = -1
- local cooler = coroutine.wrap(function(limit)
- wait(limit)
- cooled2 = true
- end)
- cooler(8)
- ready = true
- Player.Character.Humanoid.WalkSpeed = speed
- end
- elseif animstate == 4 and ready then
- if keyframe == 0 then
- ready = false
- cooled3 = false
- animating = true
- JointTargets={
- orig1*CFrame.Angles(math.rad(15),0,0);
- orig2*CFrame.Angles(math.rad(-15),0,0);
- orig3*CFrame.Angles(math.rad(-10),0,math.rad(20));
- orig4*CFrame.Angles(math.rad(-10),0,math.rad(-20));
- orig5*CFrame.Angles(math.rad(-5),0,0);
- orig6*CFrame.Angles(math.rad(-5),0,0);
- Joints[7].C0
- }
- local lerper = coroutine.wrap(function(rate)
- for i=1, 10 do
- for p=1,#Joints do
- if animstate == 4 then
- Joints[p].C0=Joints[p].C0:lerp(JointTargets[p],0.1*i)
- end
- end
- wait(rate)
- end
- keyframe = 1
- ready = true
- end)
- lerper(0)
- local wave = Instance.new("Part", game.Workspace)
- wave.FormFactor = 0
- wave.Size = Vector3.new(5,5,1)
- wave.Transparency = 0.6
- wave.Anchored = true
- wave.CanCollide = false
- wave.CFrame = Player.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,1) * CFrame.Angles(math.rad(90), -(3), 0)
- wave.BrickColor = BrickColor.new("Institutional white")
- local mesh = Instance.new("SpecialMesh", wave)
- mesh.MeshType = 5
- mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
- mesh.Scale = Vector3.new(1,0.5,1)
- local grow = coroutine.wrap(function(part)
- game:GetService("Debris"):AddItem(part, 2)
- for x = 1, 25 do
- part.Mesh.Scale = part.Mesh.Scale + Vector3.new(0.25,0.125,0.25)
- part.Transparency = part.Transparency + 0.02
- wait()
- end
- part:Destroy()
- end)
- grow(wave)
- Player.Character.HumanoidRootPart.Velocity = Player.Character.HumanoidRootPart.CFrame.lookVector*200
- elseif keyframe == 1 then
- ready = false
- local cooler = coroutine.wrap(function()
- wait(2)
- cooled3 = true
- end)
- cooler()
- wait(0.01)
- ready = true
- attacking = false
- animating = false
- keyframe = 0
- animstate = -1
- end
- elseif animstate == 5 and ready then
- if keyframe == 0 then
- Player.Character.Humanoid.WalkSpeed = 0
- ready = false
- cooled4 = false
- animating = true
- JointTargets={
- orig1*CFrame.Angles(0,0,math.rad(-45));
- orig2*CFrame.Angles(0,0,math.rad(45));
- orig3*CFrame.Angles(math.rad(-45),math.rad(40),0);
- orig4*CFrame.new(0,-0.5,0.5)*CFrame.Angles(math.rad(-90),0,0);
- Joints[5].C0;
- Joints[6].C0;
- Joints[7].C0;
- }
- local lerper = coroutine.wrap(function(rate)
- for i=1, 10 do
- for p=1,#Joints do
- if animstate == 5 then
- Joints[p].C0=Joints[p].C0:lerp(JointTargets[p],0.1*i)
- end
- end
- wait(rate)
- end
- keyframe = 1
- ready = true
- end)
- lerper(0.00001)
- elseif keyframe == 1 then
- ready = false
- JointTargets={
- orig1*CFrame.Angles(0,0,math.rad(90));
- orig2*CFrame.Angles(0,0,math.rad(-90));
- orig3*CFrame.Angles(math.rad(-25),0,0);
- orig4*CFrame.new(0,-0.25,0.5)*CFrame.Angles(math.rad(-90),0,0);
- Joints[5].C0;
- Joints[6].C0;
- Joints[7].C0;
- }
- local lerper = coroutine.wrap(function(rate)
- for i=1, 10 do
- for p=1,#Joints do
- if animstate == 5 then
- Joints[p].C0=Joints[p].C0:lerp(JointTargets[p],0.1*i)
- end
- end
- wait(rate)
- end
- keyframe = 2
- ready = true
- end)
- lerper(0)
- elseif keyframe == 2 then
- ready = false
- local hitter2 = true
- local hits2 = {}
- local throwbox = Instance.new("Part",workspace)
- throwbox.Size = Vector3.new(1,9,1)
- throwbox.CanCollide = false
- throwbox.Anchored = false
- throwbox.Transparency = 1
- throwbox.CFrame = handle.CFrame*CFrame.Angles(0,0,math.rad(90))
- throwbox.Name = "hitbox"
- throwbox.Touched:connect(function(hit)
- if hitter2 and hit ~= nil and hit.Parent ~= nil and hit.Parent:FindFirstChild("Humanoid") ~= nil then
- local humanoid = hit.Parent:findFirstChild("Humanoid")
- if humanoid ~= nil and humanoid ~= Character.Humanoid and Character.Humanoid ~= nil then
- local donthit = false
- for _,v in pairs (hits2) do
- if v == hit.Parent.Name then
- donthit = true
- end
- end
- if not donthit then
- local sound = Instance.new("Sound", hit.Parent:FindFirstChild("Torso"))
- sound.SoundId = "rbxassetid://526719128"
- sound.Volume = 5
- sound.PlayOnRemove = true
- sound:Remove()
- humanoid:TakeDamage(damage)
- indicate(hit.Parent:FindFirstChild("Head"),damage)
- table.insert(hits2,hit.Parent.Name)
- end
- end
- end
- end)
- JointTargets={
- Joints[1].C0;
- Joints[2].C0;
- Joints[3].C0;
- Joints[4].C0;
- Joints[5].C0;
- Joints[6].C0;
- orig7*CFrame.new(0,-35,0)*CFrame.Angles(math.rad(180),0,0);
- }
- local lerper = coroutine.wrap(function(rate)
- for i=1, 20 do
- for p=1,#Joints do
- if animstate == 5 then
- Joints[p].C0=Joints[p].C0:lerp(JointTargets[p],0.05*i)
- throwbox.CFrame = handle.CFrame*CFrame.Angles(0,0,math.rad(90))
- end
- end
- wait(rate)
- end
- hits2 = {}
- JointTargets={
- Joints[1].C0;
- Joints[2].C0;
- Joints[3].C0;
- Joints[4].C0;
- Joints[5].C0;
- Joints[6].C0;
- orig7;
- }
- local lerper2 = coroutine.wrap(function(rate2)
- for y=1, 20 do
- for o=1,#Joints do
- if animstate == 5 then
- Joints[o].C0=Joints[o].C0:lerp(JointTargets[o],0.05*y)
- throwbox.CFrame = handle.CFrame*CFrame.Angles(0,0,math.rad(90))
- end
- end
- wait(rate2)
- end
- ready = true
- hitter2 = false
- attacking = false
- animating = false
- hits2 = {}
- keyframe = 0
- animstate = -1
- throwbox:Remove()
- Player.Character.Humanoid.WalkSpeed = speed
- local cooler = coroutine.wrap(function()
- wait(10)
- cooled4 = true
- end)
- cooler()
- end)
- lerper2(0.001)
- end)
- lerper(0.001)
- end
- elseif animstate == 6 and ready then
- if keyframe == 0 then
- Player.Character.Humanoid.WalkSpeed = 0
- ready = false
- JointTargets={
- orig1*CFrame.Angles(0,0,math.rad(90));
- orig2*CFrame.Angles(0,0,math.rad(-90));
- orig3*CFrame.Angles(math.rad(-25),math.rad(-10),0);
- orig4*CFrame.new(0,-0.5,0.5)*CFrame.Angles(math.rad(-90),0,0);
- Joints[5].C0;
- Joints[6].C0;
- orig7*CFrame.Angles(0,math.rad(-90),0);
- }
- local lerper = coroutine.wrap(function(rate)
- for i=1, 10 do
- for p=1,#Joints do
- if animstate == 6 then
- Joints[p].C0=Joints[p].C0:lerp(JointTargets[p],0.1*i)
- end
- end
- wait(rate)
- end
- keyframe = 1
- ready = true
- end)
- lerper(0)
- elseif keyframe == 1 then
- ready = false
- local bladeweld = handle:FindFirstChild("BladeWeld")
- if not equipped then
- bladeweld.C0 = bladeweld.C0*CFrame.new(Vector3.new(3.5,0,0))
- end
- local grower = coroutine.wrap(function()
- for i=1, 20 do
- if not equipped then
- if i == 10 then
- blade.Transparency = blade.Transparency - 0.5
- end
- if i > 10 then
- blade.Transparency = blade.Transparency - 0.05
- end
- bladeweld.C0 = bladeweld.C0*CFrame.new(Vector3.new(-(0.35/2),0,0))
- else
- blade.Transparency = blade.Transparency + 0.05
- end
- wait(0.001)
- end
- if not equipped then
- equipped = true
- else
- equipped = false
- end
- JointTargets={
- Joints[1].C0;
- Joints[2].C0;
- Joints[3].C0;
- Joints[4].C0;
- Joints[5].C0;
- Joints[6].C0;
- orig7;
- }
- local lerper = coroutine.wrap(function(rate)
- for p=1,#Joints do
- Joints[p].C0=Joints[p].C0:lerp(JointTargets[p],1)
- end
- Player.Character.Humanoid.WalkSpeed = speed
- ready = true
- attacking = false
- animating = false
- animstate = -1
- keyframe = 0
- end)
- lerper()
- end)
- grower()
- end
- end
- wait()
- end
- end)
- animator()
- Mouse.KeyDown:connect(function(key)
- if key == 'f' and not attacking and not animating then
- if not equipped then
- animating = true
- attacking = true
- button.BrickColor = BrickColor.new("Black")
- ready = true
- keyframe = 0
- animstate = 6
- elseif equipped then
- animating = true
- attacking = true
- button.BrickColor = BrickColor.new("Really red")
- ready = true
- keyframe = 0
- animstate = 6
- end
- elseif key=='e' and equipped and not animating and cooled and combo < 3 then
- print("epress")
- attacking = true
- ready = true
- animstate = 2
- keyframe = 0
- combo = combo + 1
- print(combo)
- elseif key=='q' and not animating and not attacking and cooled2 and Mouse.Target and Mouse.Target.Parent and Mouse.Target.Parent:FindFirstChild("Humanoid") and Mouse.Target.Parent ~= Player.Character and (Player.Character.Torso.Position-Mouse.Target.Parent:FindFirstChild("Torso").Position).magnitude <= 45 then
- print("qpress")
- attacking = true
- qtarget = Mouse.Target.Parent
- ready = true
- animstate = 3
- keyframe = 0
- elseif key=='r' and not animating and cooled3 then
- print("rpress")
- attacking = true
- ready = true
- animstate = 4
- keyframe = 0
- elseif key=='t' and not animating and cooled4 and equipped and not attacking then
- print("tpress")
- attacking = true
- ready = true
- animstate = 5
- keyframe = 0
- end
- end)
- blade.Touched:connect(function(hit)
- if hitter and hit ~= nil and hit.Parent ~= nil and hit.Parent:FindFirstChild("Humanoid") ~= nil then
- local humanoid = hit.Parent:findFirstChild("Humanoid")
- if humanoid ~= nil and humanoid ~= Character.Humanoid and Character.Humanoid ~= nil then
- local donthit = false
- for _,v in pairs (hits) do
- if v == hit.Parent.Name then
- donthit = true
- end
- end
- if not donthit then
- local sound = Instance.new("Sound", hit.Parent:FindFirstChild("Torso"))
- sound.SoundId = "rbxassetid://526719128"
- sound.Volume = 5
- sound.PlayOnRemove = true
- sound:Remove()
- humanoid:TakeDamage(damage)
- indicate(hit.Parent:FindFirstChild("Head"),damage)
- table.insert(hits,hit.Parent.Name)
- end
- end
- end
- end)
- local plr = game.Players.LocalPlayer
- local good = true
- local R15 = false
- while plr.Character == nil or plr.Character:FindFirstChildOfClass('Humanoid') == nil do
- wait()
- end
- if plr.Character:FindFirstChildOfClass('Humanoid').RigType == Enum.HumanoidRigType.R15 then
- R15 = true
- end
- function makegui()
- -- Objects
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local TextBox = Instance.new("TextLabel")
- -- Properties
- ScreenGui.Parent = plr.PlayerGui
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
- Frame.BackgroundTransparency = 0.5
- Frame.BorderSizePixel = 0
- Frame.Size = UDim2.new(1, 0, 0, 0)
- TextBox.Parent = Frame
- TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
- TextBox.BackgroundTransparency = 1
- TextBox.Position = UDim2.new(0.05, 0, 0.05, 0)
- TextBox.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- TextBox.Font = Enum.Font.Code
- TextBox.FontSize = Enum.FontSize.Size14
- TextBox.Text = ""
- TextBox.TextColor3 = Color3.new(1, 1, 1)
- TextBox.TextScaled = true
- TextBox.TextSize = 14
- TextBox.TextWrapped = true
- Frame:TweenSize(UDim2.new(1, 0, 0.2, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,1,false)
- wait(1.5)
- local text = "This script doesn't work in R15, sorry!"
- for i=1,string.len(text) do
- TextBox.Text = string.sub(text,1,i)
- wait()
- end
- wait(2)
- TextBox.Text = ""
- Frame:TweenSize(UDim2.new(1, 0, 0, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,1,false)
- end
- function makegui2()
- -- Objects
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local TextBox = Instance.new("TextLabel")
- -- Properties
- ScreenGui.Parent = plr.PlayerGui
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
- Frame.BackgroundTransparency = 0.5
- Frame.BorderSizePixel = 0
- Frame.Size = UDim2.new(1, 0, 0, 0)
- TextBox.Parent = Frame
- TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
- TextBox.BackgroundTransparency = 1
- TextBox.Position = UDim2.new(0.05, 0, 0.05, 0)
- TextBox.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- TextBox.Font = Enum.Font.Code
- TextBox.FontSize = Enum.FontSize.Size14
- TextBox.Text = ""
- TextBox.TextColor3 = Color3.new(1, 1, 1)
- TextBox.TextScaled = true
- TextBox.TextSize = 14
- TextBox.TextWrapped = true
- Frame:TweenSize(UDim2.new(1, 0, 0.2, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,1,false)
- wait(1.5)
- local text = "This script doesn't work in Filtering Enabled, sorry!"
- for i=1,string.len(text) do
- TextBox.Text = string.sub(text,1,i)
- wait()
- end
- wait(2)
- TextBox.Text = ""
- Frame:TweenSize(UDim2.new(1, 0, 0, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,1,false)
- end
- function makegui3()
- -- Objects
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local TextBox = Instance.new("TextLabel")
- -- Properties
- ScreenGui.Parent = plr.PlayerGui
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
- Frame.BackgroundTransparency = 0.5
- Frame.BorderSizePixel = 0
- Frame.Size = UDim2.new(1, 0, 0, 0)
- TextBox.Parent = Frame
- TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
- TextBox.BackgroundTransparency = 1
- TextBox.Position = UDim2.new(0.05, 0, 0.05, 0)
- TextBox.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- TextBox.Font = Enum.Font.Code
- TextBox.FontSize = Enum.FontSize.Size14
- TextBox.Text = ""
- TextBox.TextColor3 = Color3.new(1, 1, 1)
- TextBox.TextScaled = true
- TextBox.TextSize = 14
- TextBox.TextWrapped = true
- Frame:TweenSize(UDim2.new(1, 0, 0.2, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,1,false)
- wait(1.5)
- local text = "Press F on a player to force choke them, and hold G to use force lightning."
- for i=1,string.len(text) do
- TextBox.Text = string.sub(text,1,i)
- wait()
- end
- wait(2)
- TextBox.Text = ""
- Frame:TweenSize(UDim2.new(1, 0, 0, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,1,false)
- end
- local coru = coroutine.wrap(function()
- if R15 then
- good = false
- makegui()
- elseif workspace.FilteringEnabled then
- good = false
- makegui2()
- else
- makegui3()
- end
- end)
- coru()
- if good then
- local mou = plr:GetMouse()
- local choking = false
- local zapping = false
- local target = nil
- local lastzap = nil
- local oldHit = nil
- local startpos = CFrame.new(0,0,0)
- local beforehealth = 100
- local timez = 0
- Gibs = workspace
- function Kill(Character,yee,oh)
- if Character:FindFirstChildOfClass('Humanoid') then
- Character:FindFirstChildOfClass('Humanoid').Health = 0
- local svch = Character
- local hum = Character:findFirstChild("Humanoid")
- Character.Archivable = true
- local chrclone = Character:clone()
- Character.Archivable = false
- local ch = chrclone:GetChildren()
- local i
- for i = 1,#ch do
- if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then
- ch[i]:remove()
- end
- end
- local function Scan(ch)
- local e
- for e = 1,#ch do
- Scan(ch[e]:GetChildren())
- if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
- ch[e]:remove()
- end
- end
- end
- Scan(chrclone:GetChildren())
- local hum2 = chrclone:findFirstChild("Humanoid")
- if hum2 ~= nil then
- hum2.Name = "Humanoid2"
- hum2.PlatformStand = true
- hum2.Sit = true
- hum2.MaxHealth = 0
- hum2.Health = 0
- end
- local ch = Character:GetChildren()
- local i
- for i = 1,#ch do
- if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
- ch[i]:remove()
- end
- end
- wait(0.2)
- local ch = Character:GetChildren()
- local i
- for i = 1,#ch do
- if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
- ch[i]:remove()
- end
- end
- Character = chrclone
- local Torso = Character.Torso
- local movevector = Vector3.new()
- if Character.Torso ~= nil then
- local killtors = Character:findFirstChild("Torso")
- if killtors ~= nil then
- movevector = CFrame.new(plr.Character["Right Arm"].Position,Torso.Position).lookVector
- end
- end
- if Torso then
- local Head = Character:FindFirstChild("Head")
- if Head and yee == false then
- local Neck = Instance.new("Weld")
- Neck.Name = "Neck"
- Neck.Part0 = Torso
- Neck.Part1 = Head
- Neck.C0 = CFrame.new(0, 1.5, 0)
- Neck.C1 = CFrame.new()
- Neck.Parent = Torso
- end
- local Limb = Character:FindFirstChild("Right Arm")
- if Limb then
- Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "RightShoulder"
- Joint.Part0 = Torso
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.Parent = Torso
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = Character
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- local Limb = Character:FindFirstChild("Left Arm")
- if Limb then
- Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "LeftShoulder"
- Joint.Part0 = Torso
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.Parent = Torso
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = Character
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- local Limb = Character:FindFirstChild("Right Leg")
- if Limb then
- Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "RightHip"
- Joint.Part0 = Torso
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.Parent = Torso
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = Character
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- local Limb = Character:FindFirstChild("Left Leg")
- if Limb then
- Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "LeftHip"
- Joint.Part0 = Torso
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.Parent = Torso
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = Character
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- --[
- local Bar = Instance.new("Part")
- Bar.TopSurface = 0
- Bar.BottomSurface = 0
- Bar.formFactor = "Symmetric"
- Bar.Size = Vector3.new(1, 1, 1)
- Bar.Transparency = 1
- Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
- Bar.Parent = Character
- local Weld = Instance.new("Weld")
- Weld.Part0 = Torso
- Weld.Part1 = Bar
- Weld.C0 = CFrame.new(0, 0.5, 0)
- Weld.Parent = Torso
- --]]
- end
- Character.Parent = Gibs
- game.Debris:AddItem(Character, 12)
- Character.Torso.Velocity = plr.Character.Torso.CFrame.lookVector*10
- Character.Head.Velocity = plr.Character.Torso.CFrame.lookVector*10
- if oh then
- local repulse = Instance.new('BodyForce',Torso)
- repulse.Force = movevector*10000 + Vector3.new(0,1000,0)
- game.Debris:AddItem(repulse,0.05)
- for i,v in pairs(chrclone:GetChildren()) do
- if v:IsA('BasePart') then
- v.BrickColor = BrickColor.Black()
- end
- end
- local sound = Instance.new('Sound',Torso)
- sound.EmitterSize = 50
- sound.MaxDistance = 100
- sound.Volume = 6
- sound.SoundId = 'rbxassetid://157325701'
- sound:Play()
- sound.Ended:connect(function()
- sound:Destroy()
- end)
- end
- local duh = Torso
- if yee == true then
- ee = Instance.new("Part")
- ee.Anchored = false
- ee.CanCollide = false
- ee.Parent = duh
- ee.Transparency =1
- ee.Size = Vector3.new(0.15, 0.15, 0.15)
- wee = Instance.new("Weld")
- wee.Parent = duh
- wee.Part0 = duh
- wee.Part1 = ee
- wee.C0 = CFrame.new(0, 1, 0)
- ge = Instance.new('ParticleEmitter')
- ge.Parent = ee
- ge.Texture = "rbxassetid://29712167"
- ge.Size = NumberSequence.new(0.2,0.05)
- ge.Acceleration = Vector3.new(0, -20, 0)
- ge.Rate = 100000
- ge.Speed = NumberRange.new(7,8)
- ge.Lifetime = NumberRange.new(3,4)
- ge.VelocitySpread = 10
- ge.VelocityInheritance = 0.3
- ea = Instance.new("Part")
- ea.Anchored = false
- ea.CanCollide = false
- ea.Parent = Character.Head
- ea.Transparency =1
- ea.Size = Vector3.new(0.15, 0.15, 0.15)
- wea = Instance.new("Weld")
- wea.Parent = Character.Head
- wea.Part0 = Character.Head
- wea.Part1 = ea
- wea.C0 = CFrame.new(0, -0.7, 0)
- ga = Instance.new('ParticleEmitter')
- ga.Parent = ea
- ga.Texture = "rbxassetid://29712167"
- ga.Size = NumberSequence.new(0.2,0.05)
- ga.Acceleration = Vector3.new(0, -20, 0)
- ga.Rate = 100000
- ga.Speed = NumberRange.new(7,8)
- ga.Lifetime = NumberRange.new(3,4)
- ga.VelocitySpread = 10
- ga.VelocityInheritance = 0.3
- ga.EmissionDirection = Enum.NormalId.Bottom
- end
- end
- end
- function gettouching(startpos,endpos,dont)
- local ray = Ray.new(startpos,(endpos-startpos).unit*300)
- local ignore = {}
- for i,v in pairs(game:GetService('Players'):GetChildren()) do
- if v.Character and v ~= plr then
- table.insert(ignore,v.Character)
- end
- end
- local part,pos = workspace:FindPartOnRayWithWhitelist(ray,ignore,false)
- if part then
- if part.Parent:FindFirstChildOfClass('Humanoid') and part.Parent:FindFirstChildOfClass('Humanoid').Health > 0 then
- local coru = coroutine.wrap(function()
- Kill(part.Parent,false,true)
- end)
- coru()
- end
- end
- table.insert(ignore,dont)
- local part2,pos2 = workspace:FindPartOnRayWithIgnoreList(ray,ignore,false,true)
- if part2 and part2.Parent and part2.Parent ~= plr.Character and part2.Parent:FindFirstChildOfClass('Humanoid') and part2.Parent:FindFirstChildOfClass('Humanoid').Health > 0 then
- local coru = coroutine.wrap(function()
- Kill(part2.Parent,false,true)
- end)
- coru()
- end
- end
- function makelaser(parent)
- local part = Instance.new('Part',parent)
- part.Size = Vector3.new(0.2,0.2,0.2)
- part.Transparency = 1
- part.CanCollide = false
- local weld = Instance.new('Weld',part)
- weld.Part0 = part
- weld.Part1 = plr.Character["Right Arm"]
- weld.C0 = CFrame.new(0,1.25,0)
- for i=1,5 do
- local mouse = mou
- targ = mouse.Target
- if targ then
- hum = targ.Parent:findFirstChild("Humanoid")
- Hit = mouse.hit
- local P = Instance.new("Part")
- P.Name = "Guideline"
- P.Material = Enum.Material.Neon
- local Place0 = part.CFrame
- P.formFactor = 0
- P.Size = Vector3.new(1,1,(Place0.p - Hit.p).magnitude)
- if plr.Character:FindFirstChild('Right Arm') then
- for i,v in pairs(plr.Character:FindFirstChild('Right Arm'):GetChildren()) do
- if v:IsA('Sound') and v.Name == "Electricity" then
- if Place0 and Hit and (Place0.p - Hit.p).magnitude >= 20 then
- v.MaxDistance = (Place0.p - Hit.p).magnitude
- v.EmitterSize = (Place0.p - Hit.p).magnitude
- elseif Place0 and Hit then
- v.MaxDistance = 20
- v.EmitterSize = 20
- end
- end
- end
- end
- P.CFrame = CFrame.new((Place0.p + Hit.p)/2,Place0.p)
- P.Parent = parent
- P.BrickColor = BrickColor.Yellow()
- P.Anchored = true
- P.CanCollide = false
- P.Transparency = 1
- local m = Instance.new("BlockMesh")
- m.Scale = Vector3.new(0.1,0.1,1)
- m.Parent = P
- local mh = mouse.Hit
- for c1 = 1, 1 do
- oldHit = part.CFrame
- for count = 1, 9 do
- local val1 = Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))
- local val2 = P.Size.z / 10
- local val3 = P.CFrame.lookVector * -1
- local val4 = count * val2
- local val5 = val4 * val3
- local val6 = part.CFrame.p
- local Hit = CFrame.new(val5 + val1 + val6)
- local s = Instance.new("Part")
- s.Name = "Spark"
- s.Material = Enum.Material.Neon
- local Place0 = oldHit
- s.formFactor = 0
- s.Size = Vector3.new(1,1,(Place0.p - Hit.p).magnitude)
- s.CFrame = CFrame.new((Place0.p + Hit.p)/2,Place0.p)
- s.Parent = parent
- s.BrickColor = BrickColor.new('Instatutional white')
- s.Anchored = true
- s.CanCollide = false
- m = Instance.new("BlockMesh")
- m.Scale = Vector3.new(0.1,0.1,1)
- m.Parent = s
- local clone = s:clone()
- clone.Mesh.Scale = Vector3.new(0.3,0.3,1.1)
- clone.BrickColor = BrickColor.new('Electric blue')
- clone.Transparency = 0.8
- clone.Parent = s.Parent
- oldHit = Hit
- end
- Hit = oldHit
- local s = Instance.new("Part")
- s.Name = "Spark"
- s.Material = Enum.Material.Neon
- local Place0 = mh
- s.formFactor = 0
- s.Size = Vector3.new(1,1,(Place0.p - Hit.p).magnitude)
- s.CFrame = CFrame.new((Place0.p + Hit.p)/2,Place0.p)
- s.Parent = parent
- s.BrickColor = BrickColor.new('Instatutional white')
- s.Anchored = true
- s.CanCollide = false
- m = Instance.new("BlockMesh")
- m.Scale = Vector3.new(0.1,0.1,1)
- m.Parent = s
- local clone = s:clone()
- clone.Mesh.Scale = Vector3.new(0.3,0.3,1.1)
- clone.BrickColor = BrickColor.new('Electric blue')
- clone.Transparency = 0.8
- clone.Parent = s.Parent
- gettouching(part.Position,mou.Hit.p,parent)
- end
- P:remove()
- end
- end
- end
- function chokearms(chr)
- if chr:FindFirstChild('Torso') then
- if chr:FindFirstChild('Right Arm') then
- if chr.Torso:FindFirstChild('Right Shoulder') then
- chr.Torso["Right Shoulder"]:Destroy()
- end
- local thing = Instance.new('Weld',chr.Torso)
- thing.Name = "Right Shoulder"
- thing.Part0 = chr.Torso
- thing.Part1 = chr["Right Arm"]
- thing.C0 = CFrame.new(0.811074257, 0.835914135, -0.381313324, 0.27563563, 0.961260796, 2.0569455e-06, 0.488285512, -0.140010983, -0.861379266, -0.828009903, 0.237427771, -0.50796169)
- end
- if chr:FindFirstChild('Left Arm') then
- if chr.Torso:FindFirstChild('Left Shoulder') then
- chr.Torso["Left Shoulder"]:Destroy()
- end
- local thing = Instance.new('Weld',chr.Torso)
- thing.Name = "Left Shoulder"
- thing.Part0 = chr["Left Arm"]
- thing.Part1 = chr.Torso
- thing.C0 = CFrame.new(0.962814331, -0.457080841, 0.306755066, 0.309041202, -0.579310298, 0.754249752, -0.951046288, -0.188228443, 0.245104745, -2.09111568e-05, -0.793076754, -0.609121859)
- end
- end
- end
- function fixarms(chr)
- if chr:FindFirstChild('Torso') then
- for i,v in pairs(chr.Torso:GetChildren()) do
- if v.Name == "Right Shoulder" or v.Name == "Left Shoulder" then
- v:Destroy()
- end
- end
- if chr:FindFirstChild('Right Arm') then
- local rs = Instance.new('Motor6D',chr.Torso)
- rs.Name = "Right Shoulder"
- rs.Part0 = chr.Torso
- rs.Part1 = chr:FindFirstChild('Right Arm')
- rs.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- rs.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- end
- if chr:FindFirstChild('Left Arm') then
- local ls = Instance.new('Motor6D',chr.Torso)
- ls.Name = "Left Shoulder"
- ls.Part0 = chr.Torso
- ls.Part1 = chr:FindFirstChild('Left Arm')
- ls.C0 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- ls.C1 = CFrame.new(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- end
- end
- end
- mou.KeyDown:connect(function(key)
- if key == "f" and mou.Target and zapping == false then
- if choking == false then
- local hum = mou.Target.Parent:FindFirstChildOfClass('Humanoid')
- if hum == nil then
- hum = mou.Target.Parent.Parent:FindFirstChildOfClass('Humanoid')
- end
- if hum and hum.Parent:FindFirstChild('Torso') and hum.Health > 0 then
- beforehealth = hum.Health
- choking = true
- target = hum.Parent.Torso
- local sound = Instance.new('Sound',target)
- sound.Volume = 5
- sound.EmitterSize = 50
- sound.MaxDistance = 100
- sound.SoundId = 'rbxassetid://418658161'
- sound.Looped = false
- sound.PlaybackSpeed = 0.75
- sound.Name = "Choking"
- sound:Play()
- startpos = target.CFrame
- chokearms(target.Parent)
- local bod = Instance.new('BodyPosition',hum.Parent.Torso)
- bod.Position = target.Position+Vector3.new(0,12,0)
- bod.MaxForce = Vector3.new(100000,100000,100000)
- bod.P = 1000
- bod.D = 500
- end
- if target and target:FindFirstChild('Breathing') then
- target.Breathing:Destroy()
- end
- local coru = coroutine.wrap(function()
- while timez < 5 and choking do
- timez = timez + 0.1
- if target.Parent:FindFirstChildOfClass('Humanoid') then
- if target.Parent:FindFirstChildOfClass('Humanoid').Health - (beforehealth/49) > 0 then
- target.Parent:FindFirstChildOfClass('Humanoid').Health = target.Parent:FindFirstChildOfClass('Humanoid').Health - (beforehealth/49)
- end
- end
- wait(0.1)
- end
- if timez >= 5 then
- if target and target.Parent and target.Parent:FindFirstChildOfClass('Humanoid') and target.Parent:FindFirstChildOfClass('Humanoid').Health > 0 then
- if target and target:FindFirstChild('Choking') then
- target.Choking:Stop()
- target.Choking:Destroy()
- end
- if target then
- for i,v in pairs(target:GetChildren()) do
- if v:IsA("BodyPosition") then
- v:Destroy()
- end
- end
- end
- Kill(target.Parent,false,false)
- end
- end
- target = nil
- choking = false
- startpos = CFrame.new(0,0,0)
- timez = 0
- for i,v in pairs(plr.Character.Torso:GetChildren()) do
- if v.Name == "Right Shoulder" and v:IsA('Weld') then
- v:Destroy()
- end
- end
- if plr.Character.Torso:FindFirstChild('Right Shoulder') == nil then
- local rs = Instance.new('Motor6D',plr.Character.Torso)
- rs.Name = "Right Shoulder"
- rs.Part0 = plr.Character.Torso
- rs.Part1 = plr.Character:FindFirstChild('Right Arm')
- rs.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- rs.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- end
- end)
- coru()
- else
- if target and target:FindFirstChild('Choking') then
- fixarms(target.Parent)
- target.Choking:Stop()
- target.Choking:Destroy()
- local sound = Instance.new('Sound',target)
- sound.Volume = 5
- sound.EmitterSize = 50
- sound.MaxDistance = 100
- sound.SoundId = 'rbxassetid://304511128'
- sound.Looped = true
- sound.PlaybackSpeed = 1
- sound.Name = "Breathing"
- sound:Play()
- game:GetService('Debris'):AddItem(sound,timez)
- for i,v in pairs(target:GetChildren()) do
- if v:IsA("BodyPosition") then
- v:Destroy()
- end
- end
- end
- if target.Parent:FindFirstChildOfClass('Humanoid') then
- target.Parent:FindFirstChildOfClass('Humanoid').Health = beforehealth
- end
- target = nil
- choking = false
- startpos = CFrame.new(0,0,0)
- timez = 0
- end
- elseif key == "g" and choking == false then
- zapping = true
- local electricity = Instance.new("Sound",plr.Character:FindFirstChild('Right Arm'))
- electricity.Name = "Electricity"
- electricity.SoundId = "rbxassetid://379557765"
- electricity.Volume = 5
- electricity.EmitterSize = 100
- electricity.MaxDistance = 100
- electricity.Looped = true
- electricity:Play()
- end
- end)
- mou.KeyUp:connect(function(key)
- if key == "g" then
- zapping = false
- if plr.Character:FindFirstChild('Right Arm') then
- for i,v in pairs(plr.Character:FindFirstChild('Right Arm'):GetChildren()) do
- if v:IsA('Sound') and v.Name == "Electricity" then
- v:Destroy()
- end
- end
- end
- end
- end)
- while true do
- if choking and plr.Character and target and target.Parent and plr.Character:FindFirstChild('Head') and plr.Character:FindFirstChild('Right Arm') and plr.Character:FindFirstChild('Torso') then
- for i,v in pairs(plr.Character.Torso:GetChildren()) do
- if v.Name == "Right Shoulder" then
- v:Destroy()
- end
- end
- local Head = plr.Character.Head
- local RightArm = plr.Character["Right Arm"]
- local RightShoulder = Instance.new('Weld',plr.Character.Torso)
- RightShoulder.Name = "Right Shoulder"
- RightShoulder.Part0 = plr.Character.Torso
- RightShoulder.Part1 = RightArm
- RightShoulder.C0 = CFrame.new(1,1,-0.75)
- local MousePosition = target.Position+(target.Size/2)
- local ToMouse = (MousePosition - 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) + (RightArm.Size.X / 2)), ((Head.Size.Y / 2) - (RightArm.Size.Z / 2)), 0)))
- local ToMouseRightArm = ((MousePosition - 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)
- local change = false
- if LateralAngle > (math.pi / 2) then
- LateralAngle = (math.pi / 2)
- change = true
- end
- if Cross.Y < 0 then
- LateralAngle = -LateralAngle
- end
- RightShoulder.C0 = CFrame.new(RightShoulder.C0.p) * CFrame.Angles(((math.pi / 2) - Angle), ((math.pi / 2) + LateralAngle), math.pi/2)
- for i,v in pairs(target.Parent:GetChildren()) do
- if v:IsA('Tool') then
- v.ManualActivationOnly = true
- end
- end
- elseif zapping == false and plr and plr.Character and plr.Character:FindFirstChild("Torso") and plr.Character:FindFirstChild('Right Arm') then
- for i,v in pairs(plr.Character.Torso:GetChildren()) do
- if v.Name == "Right Shoulder" and v:IsA('Weld') then
- v:Destroy()
- end
- end
- if target then
- for i,v in pairs(target:GetChildren()) do
- if v:IsA("BodyPosition") then
- v:Destroy()
- end
- end
- if plr.Character.Torso:FindFirstChild('Right Shoulder') == nil then
- local rs = Instance.new('Motor6D',plr.Character.Torso)
- rs.Name = "Right Shoulder"
- rs.Part0 = plr.Character.Torso
- rs.Part1 = plr.Character:FindFirstChild('Right Arm')
- rs.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- rs.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- end
- if target.Parent then
- for i,v in pairs(target.Parent:GetChildren()) do
- if v:IsA('Tool') then
- v.ManualActivationOnly = false
- end
- end
- end
- end
- target = nil
- choking = false
- startpos = CFrame.new(0,0,0)
- timez = 0
- end
- if zapping and plr.Character and mou.Hit and plr.Character:FindFirstChild('Head') and plr.Character:FindFirstChild('Right Arm') and plr.Character:FindFirstChild('Torso') then
- if lastzap then
- lastzap:Destroy()
- lastzap = nil
- end
- for i,v in pairs(plr.Character.Torso:GetChildren()) do
- if v.Name == "Right Shoulder" then
- v:Destroy()
- end
- end
- local Head = plr.Character.Head
- local RightArm = plr.Character["Right Arm"]
- local RightShoulder = Instance.new('Weld',plr.Character.Torso)
- RightShoulder.Name = "Right Shoulder"
- RightShoulder.Part0 = plr.Character.Torso
- RightShoulder.Part1 = RightArm
- RightShoulder.C0 = CFrame.new(1,1,-0.75)
- local MousePosition = mou.Hit.p
- local ToMouse = (MousePosition - 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) + (RightArm.Size.X / 2)), ((Head.Size.Y / 2) - (RightArm.Size.Z / 2)), 0)))
- local ToMouseRightArm = ((MousePosition - 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)
- local change = false
- if LateralAngle > (math.pi / 2) then
- LateralAngle = (math.pi / 2)
- change = true
- end
- if Cross.Y < 0 then
- LateralAngle = -LateralAngle
- end
- RightShoulder.C0 = CFrame.new(RightShoulder.C0.p) * CFrame.Angles(((math.pi / 2) - Angle), ((math.pi / 2) + LateralAngle), math.pi/2)
- local thing = Instance.new('Model',workspace)
- thing.Name = "Zap"
- lastzap = thing
- makelaser(thing)
- elseif choking == false and zapping == false then
- if lastzap then
- lastzap:Destroy()
- lastzap = nil
- end
- if plr.Character:FindFirstChild('Torso') then
- for i,v in pairs(plr.Character.Torso:GetChildren()) do
- if v.Name == "Right Shoulder" and v:IsA('Weld') then
- v:Destroy()
- end
- end
- if plr.Character.Torso:FindFirstChild('Right Shoulder') == nil then
- local rs = Instance.new('Motor6D',plr.Character.Torso)
- rs.Name = "Right Shoulder"
- rs.Part0 = plr.Character.Torso
- rs.Part1 = plr.Character:FindFirstChild('Right Arm')
- rs.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- rs.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- end
- end
- end
- wait()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement