SHOW:
|
|
- or go back to the newest paste.
1 | ---------------------------------- | |
2 | --Ballistic Dispatcher Device-41-- | |
3 | ---------------------------------- | |
4 | --By -- | |
5 | --CKbackup- | |
6 | ----------- | |
7 | ||
8 | player = game.Players.LocalPlayer | |
9 | chara = player.Character | |
10 | debby = game.Debris | |
11 | Mouse = player:GetMouse() | |
12 | chara.Humanoid.WalkSpeed = 24 | |
13 | atkd = false | |
14 | atkdd = false | |
15 | targetted = nil | |
16 | exed = false | |
17 | exeact = false | |
18 | ||
19 | --Outfit-- | |
20 | New = function(Object, Parent, Name, Data) | |
21 | local Object = Instance.new(Object) | |
22 | for Index, Value in pairs(Data or {}) do | |
23 | Object[Index] = Value | |
24 | end | |
25 | Object.Parent = Parent | |
26 | Object.Name = Name | |
27 | return Object | |
28 | end | |
29 | ||
30 | Gun1 = New("Model",chara,"Gun1",{}) | |
31 | Handle1 = New("Part",Gun1,"Handle1",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.800000012, 1, 1),CFrame = CFrame.new(34.5999947, 1.10000491, 22.4999981, -1, 0, 0, 0, 1, 0, 0, 0, -1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
32 | Weld = New("ManualWeld",Handle1,"Weld",{Part0 = Handle1,Part1 = chara["Right Arm"],C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(-0.0999679565, -0.900001526, 0.100005031, -1, 0, 0, 0, 0, -1, 0, -1, 0),}) | |
33 | Part = New("Part",Gun1,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.999999762, 0.600000024),CFrame = CFrame.new(34.5999985, 1.10000467, 22.0999928, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.388235, 0.372549, 0.384314),}) | |
34 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.800000012, 1, 1),MeshType = Enum.MeshType.Wedge,}) | |
35 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C1 = CFrame.new(-3.81469727e-06, -2.38418579e-07, 0.400005341, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
36 | Part = New("Part",Gun1,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.200000003, 0.599999905),CFrame = CFrame.new(34.5999947, 1.30000496, 23.0999908, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.388235, 0.372549, 0.384314),}) | |
37 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.400000006, 0.200000003, 1),}) | |
38 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C1 = CFrame.new(0, 0.199999988, -0.599992752, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
39 | Part = New("Part",Gun1,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.400000006, 0.400000006),CFrame = CFrame.new(34.5999947, 2.20000482, 22.1999989, -1, 0, 0, 0, -1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
40 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.200000003, 0.800000012, 1),MeshType = Enum.MeshType.Wedge,}) | |
41 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),C1 = CFrame.new(0, 1.0999999, 0.299999237, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
42 | Part = New("Part",Gun1,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.200000003, 0.399999976),CFrame = CFrame.new(34.5999947, 2.20000482, 26.2999973, 0, 0, 1, -1, 0, 0, 0, -1, 0),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
43 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.800000012, 1.10000002, 0.800000012),}) | |
44 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C0 = CFrame.new(0, 0, 0, 0, -1, 0, 0, 0, -1, 1, 0, 0),C1 = CFrame.new(0, 1.0999999, -3.79999924, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
45 | Part = New("Part",Gun1,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999708, 0.200000003),CFrame = CFrame.new(34.5999985, 2.20000482, 23.2999954, 1, 0, 0, 0, -1, 0, 0, 0, -1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
46 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,}) | |
47 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(-3.81469727e-06, 1.0999999, -0.79999733, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
48 | Part = New("Part",Gun1,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999708, 3.5999999),CFrame = CFrame.new(34.5999985, 1.80000472, 23.9999924, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
49 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C1 = CFrame.new(-3.81469727e-06, 0.69999975, -1.49999428, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
50 | Part = New("Part",Gun1,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999708, 0.800000012),CFrame = CFrame.new(34.5999985, 2.20000482, 22.7999935, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
51 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C1 = CFrame.new(-3.81469727e-06, 1.0999999, -0.299995422, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
52 | Part = New("Part",Gun1,"Part",{BrickColor = BrickColor.new("White"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999738, 1.19999993),CFrame = CFrame.new(34.5999947, 2.00000477, 23.7999916, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.94902, 0.952941, 0.952941),}) | |
53 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.800000012, 1.70000005, 1),}) | |
54 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C1 = CFrame.new(0, 0.899999917, -1.29999352, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
55 | Part = New("Part",Gun1,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999708, 0.200000003),CFrame = CFrame.new(34.5999985, 2.20000482, 24.2999992, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
56 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,}) | |
57 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C1 = CFrame.new(-3.81469727e-06, 1.0999999, -1.80000114, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
58 | Part = New("Part",Gun1,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999708, 0.200000003),CFrame = CFrame.new(34.5999947, 2.20000482, 26.2999897, 1, 0, 0, 0, -1, 0, 0, 0, -1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
59 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,}) | |
60 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(0, 1.0999999, -3.79999161, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
61 | Part = New("Part",Gun1,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999708, 0.400000006),CFrame = CFrame.new(34.5999985, 1.80000472, 25.9999981, 1, 0, 0, 0, -1, 0, 0, 0, -1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
62 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,}) | |
63 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(-3.81469727e-06, 0.699999869, -3.5, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
64 | Part = New("Part",Gun1,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999708, 0.200000003),CFrame = CFrame.new(34.5999985, 1.80000472, 22.0999928, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
65 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,}) | |
66 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C1 = CFrame.new(-3.81469727e-06, 0.69999975, 0.400005341, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
67 | Part = New("Part",Gun1,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999708, 1.79999995),CFrame = CFrame.new(34.5999985, 2.20000482, 25.2999992, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
68 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C1 = CFrame.new(-3.81469727e-06, 1.0999999, -2.80000114, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
69 | Hitbox1 = New("Part",Gun1,"Hitbox1",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.400000006, 1.19999969, 3.39999986),CFrame = CFrame.new(34.5999985, 1.80002093, 24.6999912, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
70 | Weld = New("ManualWeld",Hitbox1,"Weld",{Part0 = Hitbox1,Part1 = Handle1,C1 = CFrame.new(-3.81469727e-06, 0.700015962, -2.19999313, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
71 | Part = New("Part",Gun1,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.200000003, 0.800000012),CFrame = CFrame.new(34.5999947, 2.50000501, 25.9999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
72 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.200000003, 1, 1),MeshType = Enum.MeshType.Wedge,}) | |
73 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C1 = CFrame.new(0, 1.4000001, -3.49999809, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
74 | Part = New("Part",Gun1,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.999999762, 0.600000024),CFrame = CFrame.new(34.5999947, 1.10000491, 22.6999989, 1, 0, 0, 0, -1, 0, 0, 0, -1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.388235, 0.372549, 0.384314),}) | |
75 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.800000012, 1, 1),MeshType = Enum.MeshType.Wedge,}) | |
76 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(0, 0, -0.200000763, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
77 | Part = New("Part",Gun1,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.400000006, 2.4000001),CFrame = CFrame.new(34.5999947, 1.40000486, 24.5999928, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.388235, 0.372549, 0.384314),}) | |
78 | Mesh = New("BlockMesh",Part,"Mesh",{}) | |
79 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C1 = CFrame.new(0, 0.300000012, -2.09999466, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
80 | Part = New("Part",Gun1,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.400000006, 0.400000095),CFrame = CFrame.new(34.5999947, 1.40000486, 25.7999935, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
81 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1.04999995, 1.04999995, 0.200000003),}) | |
82 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C1 = CFrame.new(0, 0.300000012, -3.29999542, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
83 | Part = New("Part",Gun1,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.400000006, 0.400000006),CFrame = CFrame.new(34.5999947, 1.60000467, 23, -1, 0, 0, 0, -1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
84 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.200000003, 1.25, 0.5),MeshType = Enum.MeshType.Wedge,}) | |
85 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),C1 = CFrame.new(0, 0.499999821, -0.500001907, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
86 | Part = New("Part",Gun1,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.400000006, 0.399999976),CFrame = CFrame.new(34.5999947, 1.80000472, 25.9999962, 0, 0, 1, -1, 0, 0, 0, -1, 0),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
87 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.800000012, 1.10000002, 0.800000012),}) | |
88 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C0 = CFrame.new(0, 0, 0, 0, -1, 0, 0, 0, -1, 1, 0, 0),C1 = CFrame.new(0, 0.699999869, -3.49999809, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
89 | BulletSpawn1 = New("Part",Gun1,"BulletSpawn1",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.200000003, 0.399999976),CFrame = CFrame.new(34.5999947, 2.20000482, 26.2999973, 0, 0, 1, -1, 0, 0, 0, -1, 0),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
90 | Mesh = New("CylinderMesh",BulletSpawn1,"Mesh",{Scale = Vector3.new(0.699999988, 1.14999998, 0.699999988),}) | |
91 | Weld = New("ManualWeld",BulletSpawn1,"Weld",{Part0 = BulletSpawn1,Part1 = Handle1,C0 = CFrame.new(0, 0, 0, 0, -1, 0, 0, 0, -1, 1, 0, 0),C1 = CFrame.new(0, 1.0999999, -3.79999924, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
92 | Part = New("Part",Gun1,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999708, 0.200000003),CFrame = CFrame.new(34.5999985, 2.20000482, 22.2999935, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
93 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,}) | |
94 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C1 = CFrame.new(-3.81469727e-06, 1.0999999, 0.200004578, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
95 | ||
96 | Gun2 = New("Model",chara,"Gun2",{}) | |
97 | Handle2 = New("Part",Gun2,"Handle2",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.800000012, 1, 1),CFrame = CFrame.new(37.3999939, 1.10000491, 22.5, -1, 0, 0, 0, 1, 0, 0, 0, -1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
98 | Weld = New("ManualWeld",Handle2,"Weld",{Part0 = Handle2,Part1 = chara["Left Arm"],C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0.100032806, -0.900003433, 0.100005031, -1, 0, 0, 0, 0, -1, 0, -1, 0),}) | |
99 | Part = New("Part",Gun2,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.999999762, 0.600000024),CFrame = CFrame.new(37.3999977, 1.10000467, 22.0999947, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.388235, 0.372549, 0.384314),}) | |
100 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.800000012, 1, 1),MeshType = Enum.MeshType.Wedge,}) | |
101 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C1 = CFrame.new(-3.81469727e-06, -2.38418579e-07, 0.400005341, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
102 | Part = New("Part",Gun2,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.200000003, 0.599999905),CFrame = CFrame.new(37.3999939, 1.30000496, 23.0999928, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.388235, 0.372549, 0.384314),}) | |
103 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.400000006, 0.200000003, 1),}) | |
104 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C1 = CFrame.new(0, 0.199999988, -0.599992752, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
105 | Part = New("Part",Gun2,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.400000006, 0.400000006),CFrame = CFrame.new(37.3999939, 2.20000482, 22.2000008, -1, 0, 0, 0, -1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
106 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.200000003, 0.800000012, 1),MeshType = Enum.MeshType.Wedge,}) | |
107 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),C1 = CFrame.new(0, 1.0999999, 0.299999237, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
108 | Part = New("Part",Gun2,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.200000003, 0.399999976),CFrame = CFrame.new(37.3999939, 2.20000482, 26.2999992, 0, 0, 1, -1, 0, 0, 0, -1, 0),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
109 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.800000012, 1.10000002, 0.800000012),}) | |
110 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C0 = CFrame.new(0, 0, 0, 0, -1, 0, 0, 0, -1, 1, 0, 0),C1 = CFrame.new(0, 1.0999999, -3.79999924, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
111 | Part = New("Part",Gun2,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999708, 0.200000003),CFrame = CFrame.new(37.3999977, 2.20000482, 23.2999973, 1, 0, 0, 0, -1, 0, 0, 0, -1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
112 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,}) | |
113 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(-3.81469727e-06, 1.0999999, -0.79999733, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
114 | Part = New("Part",Gun2,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999708, 3.5999999),CFrame = CFrame.new(37.3999977, 1.80000472, 23.9999943, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
115 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C1 = CFrame.new(-3.81469727e-06, 0.69999975, -1.49999428, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
116 | Part = New("Part",Gun2,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999708, 0.800000012),CFrame = CFrame.new(37.3999977, 2.20000482, 22.7999954, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
117 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C1 = CFrame.new(-3.81469727e-06, 1.0999999, -0.299995422, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
118 | Part = New("Part",Gun2,"Part",{BrickColor = BrickColor.new("White"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999738, 1.19999993),CFrame = CFrame.new(37.3999939, 2.00000477, 23.7999935, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.94902, 0.952941, 0.952941),}) | |
119 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.800000012, 1.70000005, 1),}) | |
120 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C1 = CFrame.new(0, 0.899999917, -1.29999352, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
121 | Part = New("Part",Gun2,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999708, 0.200000003),CFrame = CFrame.new(37.3999977, 2.20000482, 24.3000011, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
122 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,}) | |
123 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C1 = CFrame.new(-3.81469727e-06, 1.0999999, -1.80000114, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
124 | Part = New("Part",Gun2,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999708, 0.200000003),CFrame = CFrame.new(37.3999939, 2.20000482, 26.2999916, 1, 0, 0, 0, -1, 0, 0, 0, -1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
125 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,}) | |
126 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(0, 1.0999999, -3.79999161, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
127 | Part = New("Part",Gun2,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999708, 0.400000006),CFrame = CFrame.new(37.3999977, 1.80000472, 26, 1, 0, 0, 0, -1, 0, 0, 0, -1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
128 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,}) | |
129 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(-3.81469727e-06, 0.699999869, -3.5, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
130 | Part = New("Part",Gun2,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999708, 0.200000003),CFrame = CFrame.new(37.3999977, 1.80000472, 22.0999947, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
131 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,}) | |
132 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C1 = CFrame.new(-3.81469727e-06, 0.69999975, 0.400005341, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
133 | Part = New("Part",Gun2,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999708, 1.79999995),CFrame = CFrame.new(37.3999977, 2.20000482, 25.3000011, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
134 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C1 = CFrame.new(-3.81469727e-06, 1.0999999, -2.80000114, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
135 | Hitbox2 = New("Part",Gun2,"Hitbox2",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.400000006, 1.19999969, 3.39999986),CFrame = CFrame.new(37.3999977, 1.80002093, 24.6999931, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
136 | Weld = New("ManualWeld",Hitbox2,"Weld",{Part0 = Hitbox2,Part1 = Handle2,C1 = CFrame.new(-3.81469727e-06, 0.700015962, -2.19999313, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
137 | Part = New("Part",Gun2,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.200000003, 0.800000012),CFrame = CFrame.new(37.3999939, 2.50000501, 25.9999981, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
138 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.200000003, 1, 1),MeshType = Enum.MeshType.Wedge,}) | |
139 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C1 = CFrame.new(0, 1.4000001, -3.49999809, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
140 | Part = New("Part",Gun2,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.999999762, 0.600000024),CFrame = CFrame.new(37.3999939, 1.10000491, 22.7000008, 1, 0, 0, 0, -1, 0, 0, 0, -1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.388235, 0.372549, 0.384314),}) | |
141 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.800000012, 1, 1),MeshType = Enum.MeshType.Wedge,}) | |
142 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(0, 0, -0.200000763, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
143 | Part = New("Part",Gun2,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.400000006, 2.4000001),CFrame = CFrame.new(37.3999939, 1.40000486, 24.5999947, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.388235, 0.372549, 0.384314),}) | |
144 | Mesh = New("BlockMesh",Part,"Mesh",{}) | |
145 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C1 = CFrame.new(0, 0.300000012, -2.09999466, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
146 | Part = New("Part",Gun2,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.400000006, 0.400000095),CFrame = CFrame.new(37.3999939, 1.40000486, 25.7999954, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
147 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1.04999995, 1.04999995, 0.200000003),}) | |
148 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C1 = CFrame.new(0, 0.300000012, -3.29999542, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
149 | Part = New("Part",Gun2,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.400000006, 0.400000006),CFrame = CFrame.new(37.3999939, 1.60000467, 23.0000019, -1, 0, 0, 0, -1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
150 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.200000003, 1.25, 0.5),MeshType = Enum.MeshType.Wedge,}) | |
151 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),C1 = CFrame.new(0, 0.499999821, -0.500001907, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
152 | Part = New("Part",Gun2,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.400000006, 0.399999976),CFrame = CFrame.new(37.3999939, 1.80000472, 25.9999981, 0, 0, 1, -1, 0, 0, 0, -1, 0),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
153 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.800000012, 1.10000002, 0.800000012),}) | |
154 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C0 = CFrame.new(0, 0, 0, 0, -1, 0, 0, 0, -1, 1, 0, 0),C1 = CFrame.new(0, 0.699999869, -3.49999809, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
155 | BulletSpawn2 = New("Part",Gun2,"BulletSpawn2",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.200000003, 0.399999976),CFrame = CFrame.new(37.3999939, 2.20000482, 26.2999992, 0, 0, 1, -1, 0, 0, 0, -1, 0),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
156 | Mesh = New("CylinderMesh",BulletSpawn2,"Mesh",{Scale = Vector3.new(0.699999988, 1.14999998, 0.699999988),}) | |
157 | Weld = New("ManualWeld",BulletSpawn2,"Weld",{Part0 = BulletSpawn2,Part1 = Handle2,C0 = CFrame.new(0, 0, 0, 0, -1, 0, 0, 0, -1, 1, 0, 0),C1 = CFrame.new(0, 1.0999999, -3.79999924, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
158 | Part = New("Part",Gun2,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999708, 0.200000003),CFrame = CFrame.new(37.3999977, 2.20000482, 22.2999954, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
159 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,}) | |
160 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C1 = CFrame.new(-3.81469727e-06, 1.0999999, 0.200004578, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
161 | ||
162 | RightArm = New("Model",chara,"RightArm",{}) | |
163 | MainPart = New("Part",RightArm,"MainPart",{Transparency = 1,Transparency = 1,Size = Vector3.new(1, 2, 1),CFrame = CFrame.new(0.5, 3.00000787, -3.50019717, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
164 | Weld = New("ManualWeld",MainPart,"Weld",{Part0 = MainPart,Part1 = chara["Right Arm"],C1 = CFrame.new(0, -1.00135803e-005, -0.000197172165, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
165 | Emit2Part = New("Part",RightArm,"Emit2Part",{BrickColor = BrickColor.new("Hot pink"),Material = Enum.Material.Neon,Transparency = 1,Transparency = 1,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(0.5, 2.10001373, -3.5001967, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0, 0.74902),}) | |
166 | Mesh = New("SpecialMesh",Emit2Part,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,}) | |
167 | Weld = New("ManualWeld",Emit2Part,"Weld",{Part0 = Emit2Part,Part1 = MainPart,C1 = CFrame.new(0, -0.899994135, 4.76837158e-007, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
168 | LeftArm = New("Model",chara,"LeftArm",{}) | |
169 | MainPart = New("Part",LeftArm,"MainPart",{Transparency = 1,Transparency = 1,Size = Vector3.new(1, 2, 1),CFrame = CFrame.new(-2.50000024, 3.00000787, -3.50019717, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
170 | Weld = New("ManualWeld",MainPart,"Weld",{Part0 = MainPart,Part1 = chara["Left Arm"],C1 = CFrame.new(-2.38418579e-007, -1.00135803e-005, -0.000197172165, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
171 | EmitPart = New("Part",LeftArm,"EmitPart",{BrickColor = BrickColor.new("Hot pink"),Material = Enum.Material.Neon,Transparency = 1,Transparency = 1,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-2.5, 2.10001373, -3.5001967, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0, 0.74902),}) | |
172 | Mesh = New("SpecialMesh",EmitPart,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,}) | |
173 | Weld = New("ManualWeld",EmitPart,"Weld",{Part0 = EmitPart,Part1 = MainPart,C1 = CFrame.new(2.38418579e-007, -0.899994135, 4.76837158e-007, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
174 | ||
175 | lach = LeftArm:GetChildren() | |
176 | rach = RightArm:GetChildren() | |
177 | ch = chara:GetChildren() | |
178 | ||
179 | ScreenGui = New("ScreenGui",player.PlayerGui,"ScreenGui",{}) | |
180 | Frame = New("Frame",ScreenGui,"Frame",{BackgroundColor3 = Color3.new(.7,.7,.7),BorderColor3 = Color3.new(.5,.5,.5),BorderSizePixel = 3,Position = UDim2.new(0,700,0,100),Size = UDim2.new(0,200,0,400),Draggable = true}) | |
181 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,0),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "SciFi",Text = "BDD-41",TextColor3 = Color3.new(1,1,1)}) | |
182 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,20),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "SciFi",Text = "M - Mute/Unmute Music",TextColor3 = Color3.new(1,1,1)}) | |
183 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,40),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "SciFi",Text = "Z - Swing",TextColor3 = Color3.new(1,1,1)}) | |
184 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,60),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "SciFi",Text = "X - Kick",TextColor3 = Color3.new(1,1,1)}) | |
185 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,80),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "SciFi",Text = "C - Barrel Explode",TextColor3 = Color3.new(1,1,1)}) | |
186 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,100),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "SciFi",Text = "Q - Select Target",TextColor3 = Color3.new(1,1,1)}) | |
187 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,120),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "SciFi",Text = "E - Block",TextColor3 = Color3.new(1,1,1)}) | |
188 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,140),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "SciFi",Text = "SAX - Ballista Revolver",TextColor3 = Color3.new(1,1,1)}) | |
189 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,160),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "SciFi",Text = "SSX - Hagar",TextColor3 = Color3.new(1,1,1)}) | |
190 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,180),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "SciFi",Text = "DSDC - From Above",TextColor3 = Color3.new(1,1,1)}) | |
191 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,200),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "SciFi",Text = "SSQ - Evade",TextColor3 = Color3.new(1,1,1)}) | |
192 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,220),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "SciFi",Text = "ADDQ - Grab",TextColor3 = Color3.new(1,1,1)}) | |
193 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,240),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "SciFi",Text = "Target Moves:",TextColor3 = Color3.new(1,1,1)}) | |
194 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,260),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "SciFi",Text = "SDQ - Alpha Blast",TextColor3 = Color3.new(1,1,1)}) | |
195 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,280),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "SciFi",Text = "SSDDQ - Summon Ferir",TextColor3 = Color3.new(1,1,1)}) | |
196 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,300),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "SciFi",Text = "DASDQ - Rocket Barrage",TextColor3 = Color3.new(1,1,1)}) | |
197 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,320),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "SciFi",Text = "DSASQ - Ray Overdrive",TextColor3 = Color3.new(1,1,1)}) | |
198 | OpenButton = New("TextButton",ScreenGui,"OpenButton",{BackgroundColor3 = Color3.new(.7,.7,.7),BorderColor3 = Color3.new(.5,.5,.5),BorderSizePixel = 3,Position = UDim2.new(0,700,0,500),Size = UDim2.new(0,50,0,20),FontSize = "Size14",Font = "SciFi",Text = "Close",TextColor3 = Color3.new(1,1,1)}) | |
199 | ||
200 | OpenButton.MouseButton1Click:connect(function() | |
201 | if Frame.Visible == true then | |
202 | Frame.Visible = false | |
203 | OpenButton.Text = "Open" | |
204 | elseif Frame.Visible == false then | |
205 | Frame.Visible = true | |
206 | OpenButton.Text = "Close" | |
207 | end | |
208 | end) | |
209 | ||
210 | crosshair = Instance.new("BillboardGui",chara) | |
211 | crosshair.Size = UDim2.new(10,0,10,0) | |
212 | crosshair.Enabled = false | |
213 | imgl = Instance.new("ImageLabel",crosshair) | |
214 | imgl.Position = UDim2.new(0,0,0,0) | |
215 | imgl.Size = UDim2.new(1,0,1,0) | |
216 | imgl.Image = "rbxassetid://233522684" | |
217 | imgl.BackgroundTransparency = 1 | |
218 | imgl.ImageColor3 = Color3.new(1,1,0) | |
219 | ||
220 | --Sounds-- | |
221 | function LoadSnd(id,loop,vol,pit) | |
222 | local snd = New("Sound",chara,"Sound",{SoundId = "rbxassetid://"..id,Looped = loop,Volume = vol,Pitch = pit}) | |
223 | return snd | |
224 | end | |
225 | Music = LoadSnd(575330378,true,1,1) | |
226 | StartUpSnd = LoadSnd(153092315,false,1,.8) | |
227 | SwingSnd = LoadSnd(158037267,false,1,1) | |
228 | Swing2Snd = LoadSnd(12222208,false,1,1) | |
229 | HitSnd = LoadSnd(153092274,false,1,1) | |
230 | HitPunchSnd = LoadSnd(153092227,false,1,1) | |
231 | DodgeSnd = LoadSnd(232210079,false,1,1) | |
232 | ExpSnd = LoadSnd(142070127,false,1,1) | |
233 | FlySnd = LoadSnd(169445602,false,1,1) | |
234 | BExpSnd = LoadSnd(258057783,false,5,1) | |
235 | ClawDashSnd = LoadSnd(62339698,false,1,.5) | |
236 | deathmus = LoadSnd(395580552,true,5,1) | |
237 | deathex = LoadSnd(258057783,false,5,1) | |
238 | --Grunt1Snd = LoadSnd(159882486,false,1,1.1) | |
239 | --Grunt2Snd = LoadSnd(159882466,false,1,1.1) | |
240 | --Grunt3Snd = LoadSnd(159972643,false,1,1.1) | |
241 | --Grunt4Snd = LoadSnd(159882584,false,1,1.1) | |
242 | --YouIdiotSnd = LoadSnd(160212768,false,1,1.1) | |
243 | --DieSnd = LoadSnd(159882598,false,1,1.1) | |
244 | --Laugh1Snd = LoadSnd(160212549,false,1,1.1) | |
245 | --Laugh2Snd = LoadSnd(159882561,false,1,1.1) | |
246 | --Laugh3Snd = LoadSnd(160212812,false,1,1.1) | |
247 | ChargeSnd = LoadSnd(137463716,false,1,1) | |
248 | LasSnd = LoadSnd(162246701,false,1,1) | |
249 | LasLoopSnd = LoadSnd(162246683,true,1,1) | |
250 | RStompSnd = LoadSnd(2760979,false,1,1) | |
251 | GunFlameSnd = LoadSnd(2691586,false,1,1) | |
252 | OrbSnd = LoadSnd(233091161,false,1,1) | |
253 | ElectricSnd = LoadSnd(231917975,false,1,1) | |
254 | LightsOutSnd = LoadSnd(231917794,false,1,1) | |
255 | SkyBeamSnd = LoadSnd(260433522,false,1,1) | |
256 | TargetSnd = LoadSnd(613361563,false,1,1) | |
257 | SV1Snd = LoadSnd(28144425,false,1,.265) | |
258 | SV2Snd = LoadSnd(2697431,false,1,.3) | |
259 | SVHitSnd = LoadSnd(62339698,false,1,.3) | |
260 | IceBreakSnd = LoadSnd(357568316,false,1,1) | |
261 | FreezeSnd = LoadSnd(203936153,false,1,1) | |
262 | IceBreak2Snd = LoadSnd(87015121,false,1,1) | |
263 | BlockedSnd = LoadSnd(357622136,false,1,1) | |
264 | BulletGSnd = LoadSnd(131072992,false,1,2) | |
265 | MinigunSnd = LoadSnd(146830867,false,1,1) | |
266 | MiniStopSnd = LoadSnd(295843191,false,1,1) | |
267 | BulletLSnd = LoadSnd(144884872,false,1,1) | |
268 | MissileSnd = LoadSnd(137991337,false,1,1) | |
269 | Music:Play() | |
270 | ||
271 | --Play Sound in Part-- | |
272 | function PlaySnd(snd,part) | |
273 | local sound = snd:Clone() | |
274 | sound.PlayOnRemove = true | |
275 | sound.Parent = part | |
276 | sound:Destroy() | |
277 | end | |
278 | ||
279 | --Target Select-- | |
280 | function TargetSelect(person) | |
281 | local dd=coroutine.wrap(function() | |
282 | if targetted ~= person then | |
283 | targetted = person | |
284 | for i = 0,30,10 do | |
285 | wait(.05) | |
286 | crosshair.Size = UDim2.new(40-i,0,40-i,0) | |
287 | end | |
288 | end | |
289 | end) | |
290 | dd() | |
291 | end | |
292 | ||
293 | --Damage Function-- | |
294 | function dealdmg(dude,damage,env,toim,kby,kbx) | |
295 | hurt = coroutine.wrap(function(dude2,damage2,env2,toim2) | |
296 | if dude ~= chara and dude:FindFirstChild("IsHit") == nil then | |
297 | TargetSelect(dude) | |
298 | dude.Humanoid.MaxHealth = 100 | |
299 | finaldmg = damage + math.random(-env,env) | |
300 | if berserkmode == true then | |
301 | finaldmg = finaldmg * 1.5 | |
302 | end | |
303 | dude.Humanoid.Health = dude.Humanoid.Health - finaldmg | |
304 | local vall = Instance.new("ObjectValue",dude) | |
305 | vall.Name = "IsHit" | |
306 | debby:AddItem(vall,toim) | |
307 | local bfos = Instance.new("BodyVelocity",dude.Head) | |
308 | bfos.P = 20000 | |
309 | bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P) | |
310 | bfos.Velocity = Vector3.new(0,kby,0) + chara.HumanoidRootPart.CFrame.lookVector * kbx | |
311 | debby:AddItem(bfos,.1) | |
312 | local naeeym2 = Instance.new("BillboardGui",dude) | |
313 | naeeym2.Size = UDim2.new(0,100,0,40) | |
314 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
315 | naeeym2.Adornee = dude.Head | |
316 | naeeym2.Name = "TalkingBillBoard" | |
317 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
318 | tecks2.BackgroundTransparency = 1 | |
319 | tecks2.BorderSizePixel = 0 | |
320 | tecks2.Text = "-"..finaldmg | |
321 | tecks2.Font = "SciFi" | |
322 | tecks2.FontSize = "Size24" | |
323 | tecks2.TextStrokeTransparency = 0 | |
324 | tecks2.TextColor3 = Color3.new(1,0.6,0) | |
325 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
326 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
327 | for i = 1, 5 do | |
328 | wait(.1) | |
329 | tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0) | |
330 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2 | |
331 | tecks2.TextTransparency = tecks2.TextTransparency + .2 | |
332 | end | |
333 | naeeym2:Destroy() | |
334 | end | |
335 | end) | |
336 | hurt(dude,damage,env,toim) | |
337 | end | |
338 | ||
339 | --Explode Hitbox-- | |
340 | function ExHitbox(rad,pos,damage,env,toim,kby,kbx) | |
341 | local E = Instance.new("Explosion") | |
342 | E.Position = pos | |
343 | E.Parent = game.Workspace | |
344 | E.BlastRadius = rad | |
345 | E.BlastPressure = 0 | |
346 | E.Visible = false | |
347 | E.Hit:connect(function(hit) | |
348 | if hit.Parent:FindFirstChild("Humanoid")~=nil then | |
349 | dealdmg(hit.Parent,damage,env,toim,kby,kbx) | |
350 | end | |
351 | end) | |
352 | end | |
353 | ||
354 | --Chat Function-- | |
355 | function chatfunc(text) | |
356 | local chat = coroutine.wrap(function() | |
357 | if chara:FindFirstChild("TalkingBillBoard")~= nil then | |
358 | chara:FindFirstChild("TalkingBillBoard"):destroy() | |
359 | end | |
360 | local naeeym2 = Instance.new("BillboardGui",chara) | |
361 | naeeym2.Size = UDim2.new(0,100,0,40) | |
362 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
363 | naeeym2.Adornee = chara.Head | |
364 | naeeym2.Name = "TalkingBillBoard" | |
365 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
366 | tecks2.BackgroundTransparency = 1 | |
367 | tecks2.BorderSizePixel = 0 | |
368 | tecks2.Text = "" | |
369 | tecks2.Font = "Fantasy" | |
370 | tecks2.FontSize = "Size24" | |
371 | tecks2.TextStrokeTransparency = 0 | |
372 | tecks2.TextColor3 = Color3.new(1,1,1) | |
373 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
374 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
375 | if berserkmode == true then | |
376 | tecks2.TextColor3 = Color3.new(1,0,0) | |
377 | tecks2.TextStrokeColor3 = Color3.new(1,1,0) | |
378 | end | |
379 | for i = 1,string.len(text),1 do | |
380 | tecks2.Text = string.sub(text,1,i) | |
381 | wait(0.01) | |
382 | end | |
383 | wait(1) | |
384 | for i = 1, 5 do | |
385 | wait(.01) | |
386 | tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0) | |
387 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2 | |
388 | tecks2.TextTransparency = tecks2.TextTransparency + .2 | |
389 | end | |
390 | naeeym2:Destroy() | |
391 | end) | |
392 | chat() | |
393 | end | |
394 | ||
395 | function onChatted(msg) | |
396 | chatfunc(msg) | |
397 | end | |
398 | player.Chatted:connect(onChatted) | |
399 | ||
400 | --Punch Hit Effect-- | |
401 | function PunchEff(pos) | |
402 | local p = Instance.new("Part",game.Workspace) | |
403 | p.Size = Vector3.new(0,0,0) | |
404 | p.BrickColor = BrickColor.new("White") | |
405 | p.Material = "Neon" | |
406 | p.Anchored = true | |
407 | p.CanCollide = false | |
408 | p.CFrame = pos | |
409 | local pm = Instance.new("SpecialMesh",p) | |
410 | pm.MeshType = "Sphere" | |
411 | local disp = coroutine.wrap(function() | |
412 | for i = 1, 4 do | |
413 | wait(.01) | |
414 | p.Transparency = p.Transparency + .2 | |
415 | pm.Scale = pm.Scale + Vector3.new(2,2,2) | |
416 | end | |
417 | wait(.01) | |
418 | p:Destroy() | |
419 | end) | |
420 | disp() | |
421 | end | |
422 | ||
423 | --Blade Hit Effect-- | |
424 | function SlashEff(pos) | |
425 | local p = Instance.new("Part",game.Workspace) | |
426 | p.Size = Vector3.new(0,0,0) | |
427 | p.BrickColor = BrickColor.new("White") | |
428 | p.Material = "Neon" | |
429 | p.Anchored = true | |
430 | p.CanCollide = false | |
431 | p.CFrame = pos * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359))) | |
432 | local pm = Instance.new("SpecialMesh",p) | |
433 | pm.MeshType = "Sphere" | |
434 | pm.Scale = Vector3.new(2.5,0,2.5) | |
435 | local disp = coroutine.wrap(function() | |
436 | for i = 1, 4 do | |
437 | wait(.01) | |
438 | p.Transparency = p.Transparency + .2 | |
439 | pm.Scale = pm.Scale + Vector3.new(0,30,0) | |
440 | end | |
441 | wait(.01) | |
442 | p:Destroy() | |
443 | end) | |
444 | disp() | |
445 | end | |
446 | ||
447 | --Super Pause-- | |
448 | function SuperPause() | |
449 | StartUpSnd:Play() | |
450 | local p = Instance.new("Part",game.Workspace) | |
451 | p.Size = Vector3.new(0,0,0) | |
452 | p.BrickColor = BrickColor.new("White") | |
453 | p.Material = "Neon" | |
454 | p.Anchored = true | |
455 | p.CanCollide = false | |
456 | p.CFrame = chara.Torso.CFrame | |
457 | local pm = Instance.new("SpecialMesh",p) | |
458 | pm.MeshType = "Sphere" | |
459 | local disp = coroutine.wrap(function() | |
460 | for i = 1, 4 do | |
461 | wait(.01) | |
462 | p.Transparency = p.Transparency + .2 | |
463 | pm.Scale = pm.Scale + Vector3.new(20,20,20) | |
464 | end | |
465 | wait(.01) | |
466 | p:Destroy() | |
467 | end) | |
468 | disp() | |
469 | end | |
470 | ||
471 | --Punch Touch-- | |
472 | dela = .5 | |
473 | punchactive = false | |
474 | function punchhit(hit) | |
475 | if punchactive == true then | |
476 | if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then | |
477 | dealdmg(hit.Parent,9,2,dela,0,25) | |
478 | PlaySnd(HitPunchSnd,hit.Parent.Head) | |
479 | PunchEff(Hitbox1.CFrame) | |
480 | end | |
481 | end | |
482 | end | |
483 | Hitbox1.Touched:connect(punchhit) | |
484 | ||
485 | --Kick Touch-- | |
486 | kickactive = false | |
487 | dkickactive = false | |
488 | skickactive = false | |
489 | didskick = false | |
490 | lkickactive = false | |
491 | function kickhit(hit) | |
492 | if kickactive == true then | |
493 | if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then | |
494 | dealdmg(hit.Parent,10,2,dela,0,35) | |
495 | PlaySnd(HitPunchSnd,hit.Parent.Head) | |
496 | PunchEff(hit.CFrame) | |
497 | if dkickactive == true then | |
498 | hit.Parent.Humanoid.PlatformStand = true | |
499 | hit.Parent.Head.CFrame = chara["Right Leg"].CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) | |
500 | wait(3) | |
501 | hit.Parent.Humanoid.PlatformStand = false | |
502 | end | |
503 | if skickactive == true then | |
504 | local bodpf = Instance.new("BodyPosition",hit.Parent.Head) | |
505 | bodpf.MaxForce = Vector3.new(10000,10000,10000) | |
506 | bodpf.Position = chara.HumanoidRootPart.Position + Vector3.new(0,30,0) + (chara.HumanoidRootPart.CFrame.lookVector*3) | |
507 | debby:AddItem(bodpf,3.5) | |
508 | didskick = true | |
509 | end | |
510 | if lkickactive == true then | |
511 | if hit.Parent.Head:FindFirstChild("BodyPosition") ~= nil then | |
512 | hit.Parent.Head:FindFirstChild("BodyPosition"):Destroy() | |
513 | end | |
514 | local bfos = Instance.new("BodyVelocity",hit.Parent.Head) | |
515 | bfos.P = 20000 | |
516 | bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P) | |
517 | bfos.Velocity = chara.HumanoidRootPart.CFrame.lookVector * 20 + Vector3.new(0,30,0) | |
518 | debby:AddItem(bfos,.3) | |
519 | end | |
520 | end | |
521 | end | |
522 | end | |
523 | chara["Left Leg"].Touched:connect(kickhit) | |
524 | chara["Right Leg"].Touched:connect(kickhit) | |
525 | ||
526 | --Grab Touch-- | |
527 | weldd = nil | |
528 | function grabhit(hit) | |
529 | if exeact == true and exed == false then | |
530 | if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then | |
531 | dealdmg(hit.Parent,9,2,dela,0,0) | |
532 | PlaySnd(HitPunchSnd,hit.Parent.Head) | |
533 | PunchEff(hit.CFrame) | |
534 | weldd = Instance.new("Weld",hit.Parent) | |
535 | weldd.Part0 = hit.Parent.Head | |
536 | weldd.Part1 = BulletSpawn2 | |
537 | exed = true | |
538 | end | |
539 | end | |
540 | end | |
541 | Hitbox2.Touched:connect(grabhit) | |
542 | ||
543 | function CasingDrop(no) | |
544 | local hitpt = Instance.new("Part",game.Workspace) | |
545 | hitpt.Size = Vector3.new(0,0,1) | |
546 | hitpt.TopSurface = 0 | |
547 | hitpt.BottomSurface = 0 | |
548 | local bf = Instance.new("BodyVelocity",hitpt) | |
549 | bf.P = 10000 | |
550 | bf.MaxForce = Vector3.new(bf.P,bf.P,bf.P) | |
551 | debby:AddItem(bf,.1) | |
552 | if no == "Right" then | |
553 | hitpt.Position = Hitbox1.Position | |
554 | hitpt.CFrame = Hitbox1.CFrame | |
555 | bf.Velocity = Vector3.new(0,5,0) + Hitbox1.CFrame.rightVector*10 | |
556 | elseif no == "Left" then | |
557 | hitpt.Position = Hitbox2.Position | |
558 | hitpt.CFrame = Hitbox2.CFrame | |
559 | bf.Velocity = Vector3.new(0,5,0) + Hitbox1.CFrame.rightVector*-10 | |
560 | end | |
561 | local hitm = Instance.new("SpecialMesh",hitpt) | |
562 | hitm.MeshId = "http://www.roblox.com/asset/?id=94295100" | |
563 | hitm.TextureId = "http://www.roblox.com/asset/?id=94287792" | |
564 | hitm.Scale = Vector3.new(6,6,7) | |
565 | debby:AddItem(hitpt,3) | |
566 | end | |
567 | ||
568 | function GunPlode() | |
569 | PlaySnd(GunFlameSnd,chara) | |
570 | PlaySnd(ExpSnd,chara) | |
571 | PlaySnd(BulletGSnd,chara) | |
572 | CasingDrop("Right") | |
573 | CasingDrop("Left") | |
574 | local hitpt = Instance.new("Part",game.Workspace) | |
575 | hitpt.Size = Vector3.new(1,1,1) | |
576 | hitpt.Anchored = true | |
577 | hitpt.CanCollide = false | |
578 | hitpt.BrickColor = BrickColor.new("Bright yellow") | |
579 | hitpt.CFrame = BulletSpawn1.CFrame * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359))) | |
580 | local hitb = Instance.new("Part",game.Workspace) | |
581 | hitb.Size = Vector3.new(1,1,1) | |
582 | hitb.Anchored = true | |
583 | hitb.CanCollide = false | |
584 | hitb.BrickColor = BrickColor.new("Bright yellow") | |
585 | hitb.Material = "Neon" | |
586 | hitb.CFrame = CFrame.new(hitpt.Position.x,hitpt.Position.y,hitpt.Position.z) * CFrame.fromEulerAnglesXYZ(math.random(math.rad(-30),math.rad(30)),math.random(math.rad(-30),math.rad(30)),math.random(math.rad(-30),math.rad(30))) | |
587 | local hitpt2 = hitpt:Clone() | |
588 | hitpt2.Parent = game.Workspace | |
589 | hitpt.CFrame = BulletSpawn2.CFrame * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359))) | |
590 | local hitb2 = hitb:Clone() | |
591 | hitb2.Parent = game.Workspace | |
592 | hitb.CFrame = CFrame.new(hitpt.Position.x,hitpt.Position.y,hitpt.Position.z) * CFrame.fromEulerAnglesXYZ(math.random(math.rad(-30),math.rad(30)),math.random(math.rad(-30),math.rad(30)),math.random(math.rad(-30),math.rad(30))) | |
593 | local hitbm = Instance.new("SpecialMesh",hitb) | |
594 | hitbm.MeshType = "Sphere" | |
595 | hitbm.Scale = Vector3.new(1,1,1) | |
596 | local hitm = Instance.new("SpecialMesh",hitpt) | |
597 | hitm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
598 | local hitbm2 = hitbm:Clone() | |
599 | hitbm2.Parent = hitb2 | |
600 | local hitm2 = hitm:Clone() | |
601 | hitm2.Parent = hitpt2 | |
602 | local hpt = coroutine.wrap(function() | |
603 | for i = 1, 9 do | |
604 | wait(.05) | |
605 | hitpt.Transparency = hitpt.Transparency + .1 | |
606 | hitm.Scale = hitm.Scale + Vector3.new(.5,.5,.5) | |
607 | hitb.Transparency = hitb.Transparency + .1 | |
608 | hitbm.Scale = hitbm.Scale + Vector3.new(.5,.5,.5) | |
609 | hitpt2.Transparency = hitpt2.Transparency + .1 | |
610 | hitm2.Scale = hitm2.Scale + Vector3.new(.5,.5,.5) | |
611 | hitb2.Transparency = hitb2.Transparency + .1 | |
612 | hitbm2.Scale = hitbm2.Scale + Vector3.new(.5,.5,.5) | |
613 | end | |
614 | hitpt:Destroy() | |
615 | hitb:Destroy() | |
616 | hitpt2:Destroy() | |
617 | hitb2:Destroy() | |
618 | end) | |
619 | hpt() | |
620 | ExHitbox(5,BulletSpawn1.Position,12,2,.1,0,-50) | |
621 | ExHitbox(5,BulletSpawn2.Position,12,2,.1,0,50) | |
622 | end | |
623 | ||
624 | function Laser(Partt,Targ) | |
625 | local EffectPart = Instance.new("Part",game.Workspace) | |
626 | EffectPart.Size = Vector3.new(1,1,1) | |
627 | EffectPart.Anchored = true | |
628 | EffectPart.BrickColor = BrickColor.new("Bright yellow") | |
629 | EffectPart.Material = "Neon" | |
630 | EffectPart.Position = Targ.Position | |
631 | EffectPart.CFrame = CFrame.new(Targ.Position.x,Targ.Position.y,Targ.Position.z) | |
632 | local mehs1 = Instance.new("SpecialMesh",EffectPart) | |
633 | mehs1.MeshType = "Sphere" | |
634 | mehs1.Scale = Vector3.new(2,2,2) | |
635 | local P = Instance.new("Part") | |
636 | local Place0 = Partt.CFrame | |
637 | local Place1 = EffectPart.CFrame | |
638 | local meshla = Instance.new("BlockMesh", P) | |
639 | meshla.Scale = Vector3.new(1,1,1) | |
640 | P.formFactor = 0 | |
641 | P.Size = Vector3.new(1,1,(Place0.p - Place1.p).magnitude) | |
642 | P.Name = "Laser" | |
643 | P.CFrame = CFrame.new((Place0.p + Place1.p)/2,Place0.p) | |
644 | P.Parent = game.Workspace | |
645 | P.BrickColor = BrickColor.new("Bright yellow") | |
646 | P.Material = "Neon" | |
647 | P.Anchored = true | |
648 | P.CanCollide = false | |
649 | P.Locked = true | |
650 | P.BottomSurface = "Smooth" | |
651 | P.TopSurface = "Smooth" | |
652 | ExHitbox(5,Place1.p,20,2,.1,0,5) | |
653 | local fu = coroutine.wrap(function() | |
654 | for i = 1, 10 do | |
655 | wait(.01) | |
656 | mehs1.Scale = mehs1.Scale + Vector3.new(.5,.5,.5) | |
657 | meshla.Scale = meshla.Scale + Vector3.new(.25,.25,0) | |
658 | EffectPart.Transparency = EffectPart.Transparency + .1 | |
659 | P.Transparency = P.Transparency + .1 | |
660 | end | |
661 | ---- | |
662 | P:Destroy() | |
663 | EffectPart:Destroy() | |
664 | end) | |
665 | fu() | |
666 | end | |
667 | ||
668 | --Material Return-- | |
669 | gprop = {} | |
670 | function materialhit(hit) | |
671 | if hit.Parent ~= chara and hit.Parent.Parent ~= chara and hit.Name ~= "Trace" and hit.Parent:FindFirstChild("Humanoid") == nil then | |
672 | gprop = {hit.BrickColor,hit.Material} | |
673 | end | |
674 | end | |
675 | chara["Left Leg"].Touched:connect(materialhit) | |
676 | chara["Right Leg"].Touched:connect(materialhit) | |
677 | ||
678 | --Clerp Animations-- | |
679 | TC = chara.HumanoidRootPart.RootJoint | |
680 | HC = chara.Torso.Neck | |
681 | RAC = chara.Torso["Right Shoulder"] | |
682 | LAC = chara.Torso["Left Shoulder"] | |
683 | RLC = chara.Torso["Right Hip"] | |
684 | LLC = chara.Torso["Left Hip"] | |
685 | TCF = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0) | |
686 | HCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0) | |
687 | RACF = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0) | |
688 | LACF = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
689 | RLCF = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0) | |
690 | LLCF = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
691 | RWF = CFrame.new(-1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
692 | LWF = CFrame.new(1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
693 | RLWF = CFrame.new(-.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
694 | LLWF = CFrame.new(.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
695 | RW = Instance.new("Weld",HC.Parent) | |
696 | RW.Part1 = HC.Parent | |
697 | RW.Part0 = chara["Right Arm"] | |
698 | RW.C0 = RWF | |
699 | LW = Instance.new("Weld",HC.Parent) | |
700 | LW.Part1 = HC.Parent | |
701 | LW.Part0 = chara["Left Arm"] | |
702 | LW.C0 = LWF | |
703 | RLW = nil | |
704 | LLW = nil | |
705 | ||
706 | function AddLegWelds() | |
707 | RLW = Instance.new("Weld",chara["Right Leg"]) | |
708 | RLW.Part1 = HC.Parent | |
709 | RLW.Part0 = chara["Right Leg"] | |
710 | RLW.C0 = RLWF | |
711 | LLW = Instance.new("Weld",chara["Left Leg"]) | |
712 | LLW.Part1 = HC.Parent | |
713 | LLW.Part0 = chara["Left Leg"] | |
714 | LLW.C0 = LLWF | |
715 | end | |
716 | ||
717 | function DestroyLegWelds() | |
718 | RLC = New("Motor6D",chara.Torso,"Right Hip",{Part0 = chara.Torso,Part1 = chara["Right Leg"],C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),}) | |
719 | LLC = New("Motor6D",chara.Torso,"Left Hip",{Part0 = chara.Torso,Part1 = chara["Left Leg"],C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),}) | |
720 | RLW:Destroy() | |
721 | LLW:Destroy() | |
722 | end | |
723 | ||
724 | function clerp(a,b,c) | |
725 | return a:lerp(b,c) | |
726 | end | |
727 | ||
728 | --TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
729 | --HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50)) | |
730 | --RW.C0 = (RWF + Vector3.new(1,2,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
731 | --LW.C0 = LWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(2)) | |
732 | ||
733 | TC.C0 = TCF | |
734 | HC.C0 = HCF | |
735 | RW.C0 = RWF | |
736 | LW.C0 = LWF | |
737 | ||
738 | --Idle Clerp-- | |
739 | ITCF = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(70)) | |
740 | IHCF = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-70)) | |
741 | IRWF = (RWF - Vector3.new(-.5,.5,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(-70),0) | |
742 | ILWF = (LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0) | |
743 | ||
744 | TC.C0 = ITCF | |
745 | HC.C0 = IHCF | |
746 | RW.C0 = IRWF | |
747 | LW.C0 = ILWF | |
748 | ||
749 | ||
750 | --Punch-- | |
751 | function Punch() | |
752 | del = true | |
753 | atkd = true | |
754 | chara.Humanoid.WalkSpeed = 0 | |
755 | punchactive = true | |
756 | wait(.01) | |
757 | SwingSnd:Play() | |
758 | wait(.01) | |
759 | for i = 0,.75,.25 do | |
760 | wait(.01) | |
761 | TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-180)),TCF,.4+i) | |
762 | HC.C0 = clerp(IHCF,HCF,.4+i) | |
763 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
764 | end | |
765 | wait(.1) | |
766 | bladeactive = false | |
767 | for i = 0,.6,.2 do | |
768 | wait(.01) | |
769 | TC.C0 = clerp(ITCF,TCF,.6-i) | |
770 | HC.C0 = clerp(IHCF,HCF,.6-i) | |
771 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
772 | end | |
773 | chara.Humanoid.WalkSpeed = 32 | |
774 | punchactive = false | |
775 | del = false | |
776 | atkdd = true | |
777 | end | |
778 | ||
779 | --Kick Atk-- | |
780 | function KickAtk() | |
781 | del = true | |
782 | atkd = true | |
783 | chara.Humanoid.WalkSpeed = 0 | |
784 | kickactive = true | |
785 | AddLegWelds() | |
786 | local bfos = Instance.new("BodyVelocity",chara.Torso) | |
787 | bfos.P = 10000 | |
788 | bfos.MaxForce = Vector3.new(bfos.P,0,bfos.P) | |
789 | bfos.Velocity = chara.HumanoidRootPart.CFrame.lookVector * 200 | |
790 | debby:AddItem(bfos,.1) | |
791 | for i = 0,.75,.25 do | |
792 | wait(.05) | |
793 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(math.rad(-30),0,math.rad(-85)),.4+i) | |
794 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(85)),.4+i) | |
795 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,.3,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-30)),.4+i) | |
796 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.2,.2,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),.4+i) | |
797 | LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(1,0,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(45)),.4+i) | |
798 | RLW.C0 = clerp(RLWF,(RLWF - Vector3.new(-1,0,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-45)),.4+i) | |
799 | end | |
800 | for i = 0,.75,.25 do | |
801 | wait(.05) | |
802 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(math.rad(-30),0,math.rad(-85)),.6-i) | |
803 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(85)),.6-i) | |
804 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,.3,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-30)),.6-i) | |
805 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.2,.2,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),.6-i) | |
806 | LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(1,0,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(45)),.6-i) | |
807 | RLW.C0 = clerp(RLWF,(RLWF - Vector3.new(-1,0,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-45)),.6-i) | |
808 | end | |
809 | DestroyLegWelds() | |
810 | kickactive = false | |
811 | chara.Humanoid.WalkSpeed = 24 | |
812 | del = false | |
813 | atkdd = true | |
814 | end | |
815 | ||
816 | --Explod-- | |
817 | function ExplodPunch() | |
818 | del = true | |
819 | atkd = true | |
820 | chara.Humanoid.WalkSpeed = 0 | |
821 | wait(.01) | |
822 | for i = 0,.6,.2 do | |
823 | wait(.001) | |
824 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
825 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
826 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
827 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
828 | end | |
829 | GunPlode() | |
830 | wait(.5) | |
831 | for i = 0,.6,.2 do | |
832 | wait(.001) | |
833 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
834 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i) | |
835 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
836 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i) | |
837 | end | |
838 | chara.Humanoid.WalkSpeed = 24 | |
839 | atkdd = true | |
840 | del = false | |
841 | end | |
842 | ||
843 | --Bandit Revolver-- | |
844 | function BanditRevolver() | |
845 | del = true | |
846 | atkd = true | |
847 | chara.Humanoid.WalkSpeed = 0 | |
848 | kickactive = true | |
849 | dkickactive = true | |
850 | chatfunc("Bandit Revolver!") | |
851 | AddLegWelds() | |
852 | local bfos = Instance.new("BodyVelocity",chara.Torso) | |
853 | bfos.P = 10000 | |
854 | bfos.MaxForce = Vector3.new(bfos.P,0,bfos.P) | |
855 | bfos.Velocity = chara.HumanoidRootPart.CFrame.lookVector * 40 | |
856 | for i = 0,.6,.2 do | |
857 | wait(.01) | |
858 | TC.C0 = clerp(ITCF,(TCF + Vector3.new(0,1,0)),.4+i) | |
859 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,math.rad(20),math.rad(90)),.4+i) | |
860 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50)),.4+i) | |
861 | LW.C0 = clerp(ILWF,(LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(50)),.4+i) | |
862 | RLW.C0 = clerp(RLWF,(RLWF - Vector3.new(0,1,1.2)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),.4+i) | |
863 | end | |
864 | SwingSnd:Play() | |
865 | for i = 0,1,.25 do | |
866 | wait(.0001) | |
867 | TC.C0 = clerp((TCF + Vector3.new(0,1,0)),(TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(180)),i) | |
868 | end | |
869 | for i = 0,1,.25 do | |
870 | wait(.0001) | |
871 | TC.C0 = clerp((TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(180)),(TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(360)),i) | |
872 | end | |
873 | for i = 0,1,.25 do | |
874 | wait(.01) | |
875 | TC.C0 = clerp((TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(270)),ITCF,i) | |
876 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(0,math.rad(20),math.rad(90)),IHCF,i) | |
877 | RW.C0 = clerp((RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50)),IRWF,i) | |
878 | LW.C0 = clerp((LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(50)),ILWF,i) | |
879 | RLW.C0 = clerp((RLWF - Vector3.new(0,1,1.2)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),RLWF,i) | |
880 | end | |
881 | DestroyLegWelds() | |
882 | dkickactive = false | |
883 | kickactive = false | |
884 | chara.Humanoid.WalkSpeed = 24 | |
885 | bfos:Destroy() | |
886 | del = false | |
887 | atkdd = true | |
888 | end | |
889 | ||
890 | --Freezer Kick-- | |
891 | function FlipKickEffect(pos) | |
892 | local p = Instance.new("Part",game.Workspace) | |
893 | p.Size = Vector3.new(0,0,0) | |
894 | p.BrickColor = BrickColor.new("Bright yellow") | |
895 | p.Material = "Neon" | |
896 | p.Anchored = true | |
897 | p.CanCollide = false | |
898 | p.CFrame = pos * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359))) | |
899 | local pm = Instance.new("BlockMesh",p) | |
900 | local disp = coroutine.wrap(function() | |
901 | for i = 1, 4 do | |
902 | wait(.01) | |
903 | p.Transparency = p.Transparency + .2 | |
904 | pm.Scale = pm.Scale + Vector3.new(2,2,2) | |
905 | end | |
906 | wait(.01) | |
907 | p:Destroy() | |
908 | end) | |
909 | disp() | |
910 | end | |
911 | function FlipKick() | |
912 | del = true | |
913 | atkd = true | |
914 | chatfunc("Hagar!") | |
915 | AddLegWelds() | |
916 | kickactive = true | |
917 | lkickactive = true | |
918 | local bfos = Instance.new("BodyVelocity",chara.Torso) | |
919 | bfos.P = 10000 | |
920 | bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P) | |
921 | bfos.Velocity = Vector3.new(0,10,0) + chara.HumanoidRootPart.CFrame.lookVector * 50 | |
922 | Swing2Snd:Play() | |
923 | for i = 0,.6,.2 do | |
924 | wait(.001) | |
925 | TC.C0 = clerp(ITCF,(TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),.4+i) | |
926 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),.4+i) | |
927 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50)),.4+i) | |
928 | LW.C0 = clerp(ILWF,(LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(50)),.4+i) | |
929 | RLW.C0 = clerp(RLWF,(RLWF - Vector3.new(0,1,1.2)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),.4+i) | |
930 | FlipKickEffect(chara["Right Leg"].CFrame - chara["Right Leg"].CFrame.upVector*1.5) | |
931 | end | |
932 | for i = 1, 3 do | |
933 | wait(.001) | |
934 | FlipKickEffect(chara["Right Leg"].CFrame - chara["Right Leg"].CFrame.upVector*1.5) | |
935 | end | |
936 | bfos:Destroy() | |
937 | kickactive = false | |
938 | lkickactive = false | |
939 | wait(.25) | |
940 | for i = 0,1,.25 do | |
941 | wait(.001) | |
942 | TC.C0 = clerp((TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),ITCF,.4+i) | |
943 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),IHCF,.4+i) | |
944 | RW.C0 = clerp((RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50)),IRWF,.4+i) | |
945 | LW.C0 = clerp((LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(50)),ILWF,.4+i) | |
946 | RLW.C0 = clerp((RLWF - Vector3.new(0,1,1.2)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),RLWF,.4+i) | |
947 | end | |
948 | DestroyLegWelds() | |
949 | del = false | |
950 | end | |
951 | ||
952 | --Alpha Blast-- | |
953 | function ABlast() | |
954 | del = true | |
955 | atkd = true | |
956 | chatfunc("Alpha Blast!") | |
957 | for i = 0,.6,.2 do | |
958 | wait(.001) | |
959 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
960 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
961 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
962 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
963 | end | |
964 | TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
965 | HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
966 | RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
967 | LW.C0 = (LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
968 | for i = 1, 2 do | |
969 | GunFlameSnd:Play() | |
970 | BulletGSnd:Play() | |
971 | CasingDrop("Left") | |
972 | local missile = Instance.new("Part",game.Workspace) | |
973 | missile.Size = Vector3.new(0,0,0) | |
974 | missile.Name = "Blast" | |
975 | missile.Transparency = 1 | |
976 | missile.Position = BulletSpawn2.Position | |
977 | missile.CFrame = BulletSpawn2.CFrame | |
978 | missile.Velocity = ((targetted.Head.Position - Vector3.new(0,2,0)) - chara.HumanoidRootPart.Position).unit*200 | |
979 | local force = Instance.new("BodyForce") | |
980 | force.force = Vector3.new(0,missile:GetMass()*game.Workspace.Gravity,0) | |
981 | force.Parent = missile | |
982 | local p1mit = Instance.new("ParticleEmitter",missile) | |
983 | p1mit.Texture = "rbxasset://textures/particles/smoke_main.dds" | |
984 | p1mit.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new("Bright yellow").Color),ColorSequenceKeypoint.new(1,BrickColor.new("Bright orange").Color)}) | |
985 | p1mit.LightEmission = 1 | |
986 | p1mit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)}) | |
987 | p1mit.Lifetime = NumberRange.new(1) | |
988 | p1mit.Rate = 10000 | |
989 | p1mit.Rotation = NumberRange.new(0,359) | |
990 | p1mit.RotSpeed = NumberRange.new(100) | |
991 | p1mit.Speed = NumberRange.new(0) | |
992 | missile.Touched:connect(function(hit) | |
993 | if (hit.Parent.Parent ~= chara and hit.Parent ~= chara and hit.Name ~= "Blast" and force ~= nil) then | |
994 | force:Destroy() | |
995 | force = nil | |
996 | ExHitbox(3,missile.Position,12,1,.1,0,5) | |
997 | PlaySnd(BulletLSnd,hit) | |
998 | p1mit.Enabled = false | |
999 | wait(2) | |
1000 | missile:Destroy() | |
1001 | end | |
1002 | end) | |
1003 | wait(.1) | |
1004 | for i = 0,.6,.2 do | |
1005 | wait(.001) | |
1006 | TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
1007 | end | |
1008 | TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
1009 | HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
1010 | RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
1011 | LW.C0 = (LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
1012 | debby:AddItem(missile,10) | |
1013 | GunFlameSnd:Play() | |
1014 | BulletGSnd:Play() | |
1015 | CasingDrop("Right") | |
1016 | local missile = Instance.new("Part",game.Workspace) | |
1017 | missile.Size = Vector3.new(0,0,0) | |
1018 | missile.Name = "Blast" | |
1019 | missile.Transparency = 1 | |
1020 | missile.Position = BulletSpawn1.Position | |
1021 | missile.CFrame = BulletSpawn1.CFrame | |
1022 | missile.Velocity = ((targetted.Head.Position - Vector3.new(0,2,0)) - chara.HumanoidRootPart.Position).unit*200 | |
1023 | local force = Instance.new("BodyForce") | |
1024 | force.force = Vector3.new(0,missile:GetMass()*game.Workspace.Gravity,0) | |
1025 | force.Parent = missile | |
1026 | local p1mit = Instance.new("ParticleEmitter",missile) | |
1027 | p1mit.Texture = "rbxasset://textures/particles/smoke_main.dds" | |
1028 | p1mit.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new("Bright yellow").Color),ColorSequenceKeypoint.new(1,BrickColor.new("Bright orange").Color)}) | |
1029 | p1mit.LightEmission = 1 | |
1030 | p1mit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)}) | |
1031 | p1mit.Lifetime = NumberRange.new(1) | |
1032 | p1mit.Rate = 10000 | |
1033 | p1mit.Rotation = NumberRange.new(0,359) | |
1034 | p1mit.RotSpeed = NumberRange.new(100) | |
1035 | p1mit.Speed = NumberRange.new(0) | |
1036 | missile.Touched:connect(function(hit) | |
1037 | if (hit.Parent.Parent ~= chara and hit.Parent ~= chara and hit.Name ~= "Blast" and force ~= nil) then | |
1038 | force:Destroy() | |
1039 | force = nil | |
1040 | ExHitbox(3,missile.Position,12,1,.1,0,5) | |
1041 | PlaySnd(BulletLSnd,hit) | |
1042 | p1mit.Enabled = false | |
1043 | wait(2) | |
1044 | missile:Destroy() | |
1045 | end | |
1046 | end) | |
1047 | debby:AddItem(missile,10) | |
1048 | wait(.1) | |
1049 | for i = 0,.6,.2 do | |
1050 | wait(.001) | |
1051 | TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
1052 | end | |
1053 | TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
1054 | HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
1055 | RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
1056 | LW.C0 = (LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
1057 | end | |
1058 | GunFlameSnd:Play() | |
1059 | BulletGSnd:Play() | |
1060 | CasingDrop("Left") | |
1061 | local missile = Instance.new("Part",game.Workspace) | |
1062 | missile.Size = Vector3.new(0,0,0) | |
1063 | missile.Name = "Blast" | |
1064 | missile.Transparency = 1 | |
1065 | missile.Position = BulletSpawn2.Position | |
1066 | missile.CFrame = BulletSpawn2.CFrame | |
1067 | missile.Velocity = ((targetted.Head.Position - Vector3.new(0,2,0)) - chara.HumanoidRootPart.Position).unit*200 | |
1068 | local force = Instance.new("BodyForce") | |
1069 | force.force = Vector3.new(0,missile:GetMass()*game.Workspace.Gravity,0) | |
1070 | force.Parent = missile | |
1071 | local p1mit = Instance.new("ParticleEmitter",missile) | |
1072 | p1mit.Texture = "rbxasset://textures/particles/smoke_main.dds" | |
1073 | p1mit.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new("Bright yellow").Color),ColorSequenceKeypoint.new(1,BrickColor.new("Bright orange").Color)}) | |
1074 | p1mit.LightEmission = 1 | |
1075 | p1mit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)}) | |
1076 | p1mit.Lifetime = NumberRange.new(1) | |
1077 | p1mit.Rate = 10000 | |
1078 | p1mit.Rotation = NumberRange.new(0,359) | |
1079 | p1mit.RotSpeed = NumberRange.new(100) | |
1080 | p1mit.Speed = NumberRange.new(0) | |
1081 | missile.Touched:connect(function(hit) | |
1082 | if (hit.Parent.Parent ~= chara and hit.Parent ~= chara and hit.Name ~= "Blast" and force ~= nil) then | |
1083 | force:Destroy() | |
1084 | force = nil | |
1085 | ExHitbox(3,missile.Position,12,1,.1,0,5) | |
1086 | PlaySnd(BulletLSnd,hit) | |
1087 | p1mit.Enabled = false | |
1088 | wait(2) | |
1089 | missile:Destroy() | |
1090 | end | |
1091 | end) | |
1092 | wait(.1) | |
1093 | for i = 0,.6,.2 do | |
1094 | wait(.001) | |
1095 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
1096 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
1097 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
1098 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
1099 | end | |
1100 | del = false | |
1101 | atkdd = true | |
1102 | end | |
1103 | ||
1104 | --Decapitator-- | |
1105 | function Decapitator() | |
1106 | del = true | |
1107 | atkd = true | |
1108 | chatfunc("From Above!") | |
1109 | chara.Humanoid.WalkSpeed = 0 | |
1110 | for i = 0,.6,.2 do | |
1111 | wait(.0001) | |
1112 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,math.rad(90),0),.4+i) | |
1113 | HC.C0 = clerp(IHCF,HCF,.4+i) | |
1114 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
1115 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
1116 | end | |
1117 | RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
1118 | LW.C0 = (LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
1119 | local bf = Instance.new("BodyVelocity",chara.Torso) | |
1120 | bf.P = 10000 | |
1121 | bf.MaxForce = Vector3.new(bf.P,bf.P,bf.P) | |
1122 | bf.Velocity = Vector3.new(0,20,0) + chara.HumanoidRootPart.CFrame.lookVector*50 | |
1123 | for i = 0,1,.25 do | |
1124 | wait(.0001) | |
1125 | RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
1126 | LW.C0 = (LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
1127 | TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,math.rad(90),0),TCF * CFrame.fromEulerAnglesXYZ(0,math.rad(90),math.rad(180)),i) | |
1128 | HC.C0 = HCF | |
1129 | GunPlode() | |
1130 | end | |
1131 | bf.Velocity = Vector3.new(0,-20,0) + chara.HumanoidRootPart.CFrame.lookVector*50 | |
1132 | for i = 0,1,.25 do | |
1133 | wait(.0001) | |
1134 | TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,math.rad(90),math.rad(180)),TCF * CFrame.fromEulerAnglesXYZ(0,math.rad(90),math.rad(360)),i) | |
1135 | HC.C0 = HCF | |
1136 | RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
1137 | LW.C0 = (LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
1138 | GunPlode() | |
1139 | end | |
1140 | bf:Destroy() | |
1141 | for i = 0,.6,.2 do | |
1142 | wait(.0001) | |
1143 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,math.rad(90),0),.6-i) | |
1144 | HC.C0 = clerp(IHCF,HCF,.6-i) | |
1145 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
1146 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i) | |
1147 | end | |
1148 | atkdd = true | |
1149 | chara.Humanoid.WalkSpeed = 24 | |
1150 | del = false | |
1151 | end | |
1152 | ||
1153 | --Back Explosion-- | |
1154 | function BackEx() | |
1155 | del = true | |
1156 | atkd = true | |
1157 | chatfunc("Evade!") | |
1158 | chara.Humanoid.WalkSpeed = 0 | |
1159 | for i = 0,.6,.2 do | |
1160 | wait(.001) | |
1161 | TC.C0 = clerp(ITCF,TCF,.4+i) | |
1162 | end | |
1163 | TC.C0 = TCF | |
1164 | HC.C0 = HCF | |
1165 | local bfos = Instance.new("BodyVelocity",chara.Torso) | |
1166 | bfos.P = 10000 | |
1167 | bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P) | |
1168 | bfos.Velocity = Vector3.new(0,200,0) | |
1169 | for i = 0,.6,.2 do | |
1170 | wait(.001) | |
1171 | TC.C0 = clerp(TCF,(TCF + Vector3.new(0,1,0)),.4+i) | |
1172 | HC.C0 = clerp(HCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(40)),.4+i) | |
1173 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),.4+i) | |
1174 | LW.C0 = ILWF | |
1175 | end | |
1176 | SwingSnd:Play() | |
1177 | for i = 0,1,.25 do | |
1178 | wait(.001) | |
1179 | TC.C0 = clerp((TCF + Vector3.new(0,1,0)),(TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),i) | |
1180 | RW.C0 = (RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0) | |
1181 | LW.C0 = ILWF | |
1182 | end | |
1183 | GunPlode() | |
1184 | bfos.Velocity = Vector3.new(0,200,0)+chara.HumanoidRootPart.CFrame.lookVector * -100 | |
1185 | for i = 0,1,.25 do | |
1186 | wait(.001) | |
1187 | TC.C0 = clerp((TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),(TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(360),0,0),i) | |
1188 | RW.C0 = (RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0) | |
1189 | LW.C0 = ILWF | |
1190 | end | |
1191 | bfos:Destroy() | |
1192 | for i = 0,1,.25 do | |
1193 | wait(.001) | |
1194 | TC.C0 = clerp((TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(360),0,0),ITCF,i) | |
1195 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(0,math.rad(20),math.rad(90)),IHCF,i) | |
1196 | RW.C0 = clerp((RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),IRWF,i) | |
1197 | end | |
1198 | del = false | |
1199 | atkdd = true | |
1200 | chara.Humanoid.WalkSpeed = 24 | |
1201 | end | |
1202 | ||
1203 | --Grab Move-- | |
1204 | function GrabMove() | |
1205 | del = true | |
1206 | atkd = true | |
1207 | chara.Humanoid.WalkSpeed = 0 | |
1208 | chatfunc("Have this.") | |
1209 | exeact = true | |
1210 | wait(.01) | |
1211 | SwingSnd:Play() | |
1212 | local bfos = Instance.new("BodyVelocity",chara.Torso) | |
1213 | bfos.P = 10000 | |
1214 | bfos.MaxForce = Vector3.new(bfos.P,0,bfos.P) | |
1215 | bfos.Velocity = chara.HumanoidRootPart.CFrame.lookVector * 500 | |
1216 | debby:AddItem(bfos,.1) | |
1217 | for i = 0,.6,.2 do | |
1218 | wait(.001) | |
1219 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
1220 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
1221 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
1222 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
1223 | end | |
1224 | wait(.5) | |
1225 | if exed == true then | |
1226 | exeact = false | |
1227 | for i = 0,.6,.2 do | |
1228 | wait(.001) | |
1229 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),HCF * CFrame.fromEulerAnglesXYZ(0,math.rad(-60),math.rad(90)),.4+i) | |
1230 | LW.C0 = clerp((LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(150)),.4+i) | |
1231 | end | |
1232 | wait(.5) | |
1233 | PlaySnd(GunFlameSnd,chara) | |
1234 | PlaySnd(ExpSnd,chara) | |
1235 | PlaySnd(BulletGSnd,chara) | |
1236 | CasingDrop("Left") | |
1237 | local hitpt = Instance.new("Part",game.Workspace) | |
1238 | hitpt.Size = Vector3.new(1,1,1) | |
1239 | hitpt.Anchored = true | |
1240 | hitpt.CanCollide = false | |
1241 | hitpt.BrickColor = BrickColor.new("Bright yellow") | |
1242 | hitpt.CFrame = BulletSpawn2.CFrame * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359))) | |
1243 | local hitb = Instance.new("Part",game.Workspace) | |
1244 | hitb.Size = Vector3.new(1,1,1) | |
1245 | hitb.Anchored = true | |
1246 | hitb.CanCollide = false | |
1247 | hitb.BrickColor = BrickColor.new("Bright yellow") | |
1248 | hitb.Material = "Neon" | |
1249 | hitb.CFrame = CFrame.new(hitpt.Position.x,hitpt.Position.y,hitpt.Position.z) * CFrame.fromEulerAnglesXYZ(math.random(math.rad(-30),math.rad(30)),math.random(math.rad(-30),math.rad(30)),math.random(math.rad(-30),math.rad(30))) | |
1250 | local hitbm = Instance.new("SpecialMesh",hitb) | |
1251 | hitbm.MeshType = "Sphere" | |
1252 | hitbm.Scale = Vector3.new(1,1,1) | |
1253 | local hitm = Instance.new("SpecialMesh",hitpt) | |
1254 | hitm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1255 | local hpt = coroutine.wrap(function() | |
1256 | for i = 1, 9 do | |
1257 | wait(.05) | |
1258 | hitpt.Transparency = hitpt.Transparency + .1 | |
1259 | hitm.Scale = hitm.Scale + Vector3.new(.5,.5,.5) | |
1260 | hitb.Transparency = hitb.Transparency + .1 | |
1261 | hitbm.Scale = hitbm.Scale + Vector3.new(.5,.5,.5) | |
1262 | end | |
1263 | hitpt:Destroy() | |
1264 | hitb:Destroy() | |
1265 | end) | |
1266 | hpt() | |
1267 | exed = false | |
1268 | weldd:Destroy() | |
1269 | ExHitbox(5,BulletSpawn2.Position,24,2,.1,50,50) | |
1270 | wait(1) | |
1271 | for i = 0,.6,.2 do | |
1272 | wait(.001) | |
1273 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
1274 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,math.rad(-60),math.rad(90)),.6-i) | |
1275 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-150)),.6-i) | |
1276 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i) | |
1277 | end | |
1278 | elseif exed == false then | |
1279 | exeact = false | |
1280 | for i = 0,.6,.2 do | |
1281 | wait(.001) | |
1282 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
1283 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i) | |
1284 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
1285 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i) | |
1286 | end | |
1287 | end | |
1288 | chara.Humanoid.WalkSpeed = 24 | |
1289 | atkdd = true | |
1290 | del = false | |
1291 | end | |
1292 | ||
1293 | --Ray Overdrive-- | |
1294 | function RayOver() | |
1295 | del = true | |
1296 | atkd = true | |
1297 | chara.Humanoid.WalkSpeed = 0 | |
1298 | chatfunc("Ray Overdrive!") | |
1299 | SuperPause() | |
1300 | for i = 0,.6,.2 do | |
1301 | wait(.001) | |
1302 | TC.C0 = clerp(ITCF,TCF,.4+i) | |
1303 | HC.C0 = clerp(IHCF,HCF,.4+i) | |
1304 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
1305 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
1306 | end | |
1307 | TC.C0 = TCF | |
1308 | HC.C0 = HCF | |
1309 | RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
1310 | LW.C0 = (LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
1311 | wait(.5) | |
1312 | GunFlameSnd.Pitch = .7 | |
1313 | for i = 0,.6,.2 do | |
1314 | wait(.001) | |
1315 | TC.C0 = clerp(TCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
1316 | end | |
1317 | TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
1318 | HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
1319 | RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
1320 | LW.C0 = (LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
1321 | GunFlameSnd:Play() | |
1322 | BulletGSnd:Play() | |
1323 | CasingDrop("Left") | |
1324 | Laser(Hitbox2,targetted.Head) | |
1325 | wait(.5) | |
1326 | for i = 0,.6,.2 do | |
1327 | wait(.001) | |
1328 | TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
1329 | end | |
1330 | TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
1331 | HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
1332 | RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
1333 | LW.C0 = (LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
1334 | GunFlameSnd:Play() | |
1335 | BulletGSnd:Play() | |
1336 | CasingDrop("Right") | |
1337 | Laser(Hitbox1,targetted.Head) | |
1338 | wait(.5) | |
1339 | for i = 0,.6,.2 do | |
1340 | wait(.001) | |
1341 | TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),TCF,.4+i) | |
1342 | end | |
1343 | TC.C0 = TCF | |
1344 | HC.C0 = HCF | |
1345 | local bfos = Instance.new("BodyVelocity",chara.Torso) | |
1346 | bfos.P = 10000 | |
1347 | bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P) | |
1348 | bfos.Velocity = Vector3.new(0,600,0)+chara.HumanoidRootPart.CFrame.lookVector * -300 | |
1349 | for i = 0,.6,.2 do | |
1350 | wait(.001) | |
1351 | TC.C0 = clerp(TCF,(TCF + Vector3.new(0,1,0)),.4+i) | |
1352 | HC.C0 = clerp(HCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(40)),.4+i) | |
1353 | RW.C0 = clerp((RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),.4+i) | |
1354 | LW.C0 = clerp((LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),ILWF,.4+i) | |
1355 | end | |
1356 | SwingSnd:Play() | |
1357 | for i = 0,1,.25 do | |
1358 | wait(.001) | |
1359 | TC.C0 = clerp((TCF + Vector3.new(0,1,0)),(TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),i) | |
1360 | RW.C0 = (RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0) | |
1361 | LW.C0 = ILWF | |
1362 | end | |
1363 | PlaySnd(GunFlameSnd,chara) | |
1364 | PlaySnd(BulletGSnd,chara) | |
1365 | CasingDrop("Right") | |
1366 | Laser(Hitbox1,targetted.Head) | |
1367 | PlaySnd(GunFlameSnd,chara) | |
1368 | PlaySnd(BulletGSnd,chara) | |
1369 | CasingDrop("Left") | |
1370 | Laser(Hitbox2,targetted.Head) | |
1371 | bfos:Destroy() | |
1372 | GunFlameSnd.Pitch = 1 | |
1373 | for i = 0,1,.25 do | |
1374 | wait(.001) | |
1375 | TC.C0 = clerp((TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),(TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(360),0,0),i) | |
1376 | RW.C0 = (RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0) | |
1377 | LW.C0 = ILWF | |
1378 | end | |
1379 | for i = 0,1,.25 do | |
1380 | wait(.001) | |
1381 | TC.C0 = clerp((TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(360),0,0),ITCF,i) | |
1382 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(0,math.rad(20),math.rad(90)),IHCF,i) | |
1383 | RW.C0 = clerp((RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),IRWF,i) | |
1384 | end | |
1385 | del = false | |
1386 | atkdd = true | |
1387 | chara.Humanoid.WalkSpeed = 24 | |
1388 | end | |
1389 | ||
1390 | --Minigun-- | |
1391 | function Minigun() | |
1392 | del = true | |
1393 | atkd = true | |
1394 | chatfunc("Summon Arsenal: Ferir Zero!") | |
1395 | SuperPause() | |
1396 | for i = 0,.6,.2 do | |
1397 | wait(.001) | |
1398 | TC.C0 = clerp(ITCF,TCF,.4+i) | |
1399 | HC.C0 = clerp(IHCF,HCF,.4+i) | |
1400 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
1401 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
1402 | end | |
1403 | TC.C0 = TCF | |
1404 | HC.C0 = HCF | |
1405 | RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
1406 | LW.C0 = (LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
1407 | for a = .1,1,.1 do | |
1408 | local gch1 = Gun1:GetChildren() | |
1409 | local gch2 = Gun2:GetChildren() | |
1410 | wait(.001) | |
1411 | for i = 1, #gch1 do | |
1412 | if gch1[i] ~= Handle1 and gch1[i] ~= Hitbox1 then | |
1413 | gch1[i].Transparency = a | |
1414 | end | |
1415 | end | |
1416 | for i = 1, #gch2 do | |
1417 | if gch2[i] ~= Handle2 and gch2[i] ~= Hitbox2 then | |
1418 | gch2[i].Transparency = a | |
1419 | end | |
1420 | end | |
1421 | end | |
1422 | for i = 0,.6,.2 do | |
1423 | wait(.001) | |
1424 | TC.C0 = clerp(TCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
1425 | HC.C0 = clerp(HCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
1426 | RW.C0 = clerp((RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),RWF * CFrame.fromEulerAnglesXYZ(math.rad(-45),0,0),.4+i) | |
1427 | LW.C0 = clerp((LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),LWF * CFrame.fromEulerAnglesXYZ(math.rad(-45),0,0),.4+i) | |
1428 | end | |
1429 | RW.C0 = RWF * CFrame.fromEulerAnglesXYZ(math.rad(-45),0,0) | |
1430 | local Minigun = New("Part",chara,"Minigun",{Transparency = 1,Transparency = 1,Size = Vector3.new(1, 8, 2),CFrame = CFrame.new(26.999979, 1.6000222, 45.0999527, 1.81951127e-05, 1, -1.16825559e-05, 2.54704446e-06, 1.16825104e-05, 1, 1, -1.81952728e-05, -2.54687802e-06),}) | |
1431 | local Mesh = New("SpecialMesh",Minigun,"Mesh",{Scale = Vector3.new(2, 2, 2),MeshId = "http://www.roblox.com/asset?id=71947307",TextureId = "http://www.roblox.com/asset?id=71947249",MeshType = Enum.MeshType.FileMesh,}) | |
1432 | local Weld = New("ManualWeld",Minigun,"Weld",{Part0 = Minigun,Part1 = chara["Right Arm"],C0 = CFrame.new(0, 0, 0, 1.81951127e-05, 2.54704446e-06, 1, 1, 1.16825104e-05, -1.81952728e-05, -1.16825559e-05, 1, -2.54687802e-06),C1 = CFrame.new(-3.49995232, -1.06061363, 0.35357666, -1, 0, 0, 0, 0.707106829, -0.707106829, 0, -0.707106829, -0.707106829),}) | |
1433 | for i = .1,1,.1 do | |
1434 | wait(.001) | |
1435 | Minigun.Transparency = 1 - i | |
1436 | end | |
1437 | for i = 1, 20 do | |
1438 | wait(.001) | |
1439 | PlaySnd(MinigunSnd,chara) | |
1440 | local Targ = targetted.Head | |
1441 | local Partt = Minigun | |
1442 | local EffectPart = Instance.new("Part",game.Workspace) | |
1443 | EffectPart.Size = Vector3.new(1,1,1) | |
1444 | EffectPart.Anchored = true | |
1445 | EffectPart.BrickColor = BrickColor.new("Bright yellow") | |
1446 | EffectPart.Material = "Neon" | |
1447 | EffectPart.Position = Targ.Position | |
1448 | EffectPart.CFrame = CFrame.new(Targ.Position.x,Targ.Position.y,Targ.Position.z) | |
1449 | local mehs1 = Instance.new("SpecialMesh",EffectPart) | |
1450 | mehs1.MeshType = "Sphere" | |
1451 | mehs1.Scale = Vector3.new(.1,.1,.1) | |
1452 | local P = Instance.new("Part") | |
1453 | local Place0 = Partt.CFrame + Partt.CFrame.upVector*4 | |
1454 | local Place1 = EffectPart.CFrame | |
1455 | local meshla = Instance.new("BlockMesh", P) | |
1456 | meshla.Scale = Vector3.new(.1,.1,1) | |
1457 | P.formFactor = 0 | |
1458 | P.Size = Vector3.new(1,1,(Place0.p - Place1.p).magnitude) | |
1459 | P.Name = "Laser" | |
1460 | P.CFrame = CFrame.new((Place0.p + Place1.p)/2,Place0.p) | |
1461 | P.Parent = game.Workspace | |
1462 | P.BrickColor = BrickColor.new("Bright yellow") | |
1463 | P.Material = "Neon" | |
1464 | P.Anchored = true | |
1465 | P.CanCollide = false | |
1466 | P.Locked = true | |
1467 | P.BottomSurface = "Smooth" | |
1468 | P.TopSurface = "Smooth" | |
1469 | ExHitbox(3,Place1.p,3,1,.05,10,2) | |
1470 | local fu = coroutine.wrap(function() | |
1471 | for i = 1, 10 do | |
1472 | wait(.001) | |
1473 | mehs1.Scale = mehs1.Scale + Vector3.new(.1,.1,.1) | |
1474 | meshla.Scale = meshla.Scale + Vector3.new(.05,.05,0) | |
1475 | EffectPart.Transparency = EffectPart.Transparency + .1 | |
1476 | P.Transparency = P.Transparency + .1 | |
1477 | end | |
1478 | ---- | |
1479 | P:Destroy() | |
1480 | EffectPart:Destroy() | |
1481 | end) | |
1482 | fu() | |
1483 | end | |
1484 | MiniStopSnd:Play() | |
1485 | wait(.5) | |
1486 | for i = .1,1,.1 do | |
1487 | wait(.001) | |
1488 | Minigun.Transparency = i | |
1489 | end | |
1490 | Minigun:Destroy() | |
1491 | for i = 0,.6,.2 do | |
1492 | wait(.001) | |
1493 | TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),ITCF,.4+i) | |
1494 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),IHCF,.4+i) | |
1495 | RW.C0 = clerp(RWF * CFrame.fromEulerAnglesXYZ(math.rad(-45),0,0),IRWF,.4+i) | |
1496 | LW.C0 = clerp(LWF * CFrame.fromEulerAnglesXYZ(math.rad(-45),0,0),ILWF,.4+i) | |
1497 | end | |
1498 | for a = .1,1,.1 do | |
1499 | local gch1 = Gun1:GetChildren() | |
1500 | local gch2 = Gun2:GetChildren() | |
1501 | wait(.001) | |
1502 | for i = 1, #gch1 do | |
1503 | if gch1[i] ~= Handle1 and gch1[i] ~= Hitbox1 then | |
1504 | gch1[i].Transparency = 1-a | |
1505 | end | |
1506 | end | |
1507 | for i = 1, #gch2 do | |
1508 | if gch2[i] ~= Handle2 and gch2[i] ~= Hitbox2 then | |
1509 | gch2[i].Transparency = 1-a | |
1510 | end | |
1511 | end | |
1512 | end | |
1513 | atkdd = true | |
1514 | del = false | |
1515 | end | |
1516 | ||
1517 | function RocketBlast() | |
1518 | del = true | |
1519 | atkd = true | |
1520 | chatfunc("Rocket Barrage!") | |
1521 | SuperPause() | |
1522 | for i = 0,.6,.2 do | |
1523 | wait(.001) | |
1524 | TC.C0 = clerp(ITCF,TCF,.4+i) | |
1525 | HC.C0 = clerp(IHCF,HCF,.4+i) | |
1526 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
1527 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
1528 | end | |
1529 | TC.C0 = TCF | |
1530 | HC.C0 = HCF | |
1531 | RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
1532 | LW.C0 = (LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
1533 | local bpos = Instance.new("BodyPosition",chara.Torso) | |
1534 | bpos.Position = chara.Torso.Position + Vector3.new(0,20,0) | |
1535 | bpos.MaxForce = Vector3.new(10000,10000,10000) | |
1536 | wait(1) | |
1537 | for i = 1,3 do | |
1538 | RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
1539 | LW.C0 = (LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
1540 | MissileSnd:Play() | |
1541 | local missile = Instance.new("Part",game.Workspace) | |
1542 | missile.Size = Vector3.new(0,0,1.2) | |
1543 | missile.Name = "Blast" | |
1544 | missile.TopSurface = 0 | |
1545 | missile.BottomSurface = 0 | |
1546 | missile.Position = BulletSpawn1.Position | |
1547 | missile.CFrame = BulletSpawn1.CFrame | |
1548 | missile.Velocity = BulletSpawn1.CFrame.lookVector*100 | |
1549 | missile.CFrame = CFrame.new(BulletSpawn1.Position,BulletSpawn1.Position + BulletSpawn1.CFrame.upVector*2) | |
1550 | local p1mit = Instance.new("ParticleEmitter",missile) | |
1551 | p1mit.Texture = "rbxasset://textures/particles/smoke_main.dds" | |
1552 | p1mit.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new("Bright orange").Color),ColorSequenceKeypoint.new(1,BrickColor.new("Bright yellow").Color)}) | |
1553 | p1mit.LightEmission = 1 | |
1554 | p1mit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)}) | |
1555 | p1mit.Lifetime = NumberRange.new(1) | |
1556 | p1mit.Rate = 10000 | |
1557 | p1mit.Rotation = NumberRange.new(0,359) | |
1558 | p1mit.RotSpeed = NumberRange.new(100) | |
1559 | p1mit.Speed = NumberRange.new(0) | |
1560 | local mesh1 = Instance.new("SpecialMesh",missile) | |
1561 | mesh1.MeshId = "http://www.roblox.com/asset/?id=111879014" | |
1562 | mesh1.TextureId = "http://www.roblox.com/asset/?id=111878985" | |
1563 | mesh1.Scale = Vector3.new(1.2,1.2,1.2) | |
1564 | local force = Instance.new("BodyForce") | |
1565 | force.force = Vector3.new(0,missile:GetMass()*game.Workspace.Gravity,0) | |
1566 | force.Parent = missile | |
1567 | local bf = Instance.new("BodyVelocity",missile) | |
1568 | bf.P = 10000 | |
1569 | bf.MaxForce = Vector3.new(bf.P,bf.P,bf.P) | |
1570 | bf.Velocity = BulletSpawn1.CFrame.upVector*100 | |
1571 | local gy = Instance.new("BodyGyro",missile) | |
1572 | gy.MaxTorque = Vector3.new(0,0,0) | |
1573 | local chase = coroutine.wrap(function() | |
1574 | wait(.3) | |
1575 | while wait() do | |
1576 | if targetted ~= nil then | |
1577 | local torsy = targetted:FindFirstChild("Torso") or targetted:FindFirstChild("UpperTorso") | |
1578 | bf.Velocity = (torsy.Position - missile.Position).unit*100 | |
1579 | gy.CFrame = CFrame.new(missile.Position, targetted.Head.Position) | |
1580 | gy.maxTorque = Vector3.new(9000,9000,9000) | |
1581 | end | |
1582 | end | |
1583 | end) | |
1584 | chase() | |
1585 | missile.Touched:connect(function(hit) | |
1586 | if (hit.Parent.Parent ~= chara and hit.Parent ~= chara and hit.Name ~= "Blast" and missile.Anchored == false) then | |
1587 | missile.Anchored = true | |
1588 | PlaySnd(ExpSnd,missile) | |
1589 | p1mit.Enabled = false | |
1590 | mesh1.MeshId = "http://www.roblox.com/asset/?id=1290033" | |
1591 | mesh1.TextureId = "http://www.roblox.com/asset/?id=3126553" | |
1592 | ExHitbox(8,missile.Position,15,3,.05,30,50) | |
1593 | wait(0.1) | |
1594 | missile.Transparency = .25 | |
1595 | missile.Mesh.Scale = Vector3.new(2,2,2) | |
1596 | wait(0.1) | |
1597 | missile.Transparency = .5 | |
1598 | missile.Mesh.Scale = Vector3.new(4,4,4) | |
1599 | wait(0.1) | |
1600 | missile.Transparency = .75 | |
1601 | missile.Mesh.Scale = Vector3.new(6,6,6) | |
1602 | wait(0.1) | |
1603 | missile:Destroy() | |
1604 | end | |
1605 | end) | |
1606 | wait(.1) | |
1607 | debby:AddItem(missile,10) | |
1608 | MissileSnd:Play() | |
1609 | local missile2 = Instance.new("Part",game.Workspace) | |
1610 | missile2.Size = Vector3.new(0,0,1.2) | |
1611 | missile2.Name = "Blast" | |
1612 | missile2.TopSurface = 0 | |
1613 | missile2.BottomSurface = 0 | |
1614 | missile2.Position = BulletSpawn2.Position | |
1615 | missile2.CFrame = BulletSpawn2.CFrame | |
1616 | missile2.Velocity = BulletSpawn2.CFrame.lookVector*100 | |
1617 | missile2.CFrame = CFrame.new(BulletSpawn2.Position,BulletSpawn2.Position + BulletSpawn2.CFrame.upVector*2) | |
1618 | local p2mit = Instance.new("ParticleEmitter",missile2) | |
1619 | p2mit.Texture = "rbxasset://textures/particles/smoke_main.dds" | |
1620 | p2mit.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new("Bright orange").Color),ColorSequenceKeypoint.new(1,BrickColor.new("Bright yellow").Color)}) | |
1621 | p2mit.LightEmission = 1 | |
1622 | p2mit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)}) | |
1623 | p2mit.Lifetime = NumberRange.new(1) | |
1624 | p2mit.Rate = 10000 | |
1625 | p2mit.Rotation = NumberRange.new(0,359) | |
1626 | p2mit.RotSpeed = NumberRange.new(100) | |
1627 | p2mit.Speed = NumberRange.new(0) | |
1628 | local mesh2 = Instance.new("SpecialMesh",missile2) | |
1629 | mesh2.MeshId = "http://www.roblox.com/asset/?id=111879014" | |
1630 | mesh2.TextureId = "http://www.roblox.com/asset/?id=111878985" | |
1631 | mesh2.Scale = Vector3.new(1.2,1.2,1.2) | |
1632 | local force2 = Instance.new("BodyForce") | |
1633 | force2.force = Vector3.new(0,missile:GetMass()*game.Workspace.Gravity,0) | |
1634 | force2.Parent = missile2 | |
1635 | local bf2 = Instance.new("BodyVelocity",missile2) | |
1636 | bf2.P = 10000 | |
1637 | bf2.MaxForce = Vector3.new(bf2.P,bf2.P,bf2.P) | |
1638 | bf2.Velocity = BulletSpawn2.CFrame.upVector*100 | |
1639 | local gy2 = Instance.new("BodyGyro",missile2) | |
1640 | gy2.MaxTorque = Vector3.new(0,0,0) | |
1641 | local chase2 = coroutine.wrap(function() | |
1642 | wait(.3) | |
1643 | while wait() do | |
1644 | if targetted ~= nil then | |
1645 | local torsy = targetted:FindFirstChild("Torso") or targetted:FindFirstChild("UpperTorso") | |
1646 | bf2.Velocity = (torsy.Position - missile2.Position).unit*100 | |
1647 | gy2.CFrame = CFrame.new(missile2.Position, targetted.Head.Position) | |
1648 | gy2.maxTorque = Vector3.new(9000,9000,9000) | |
1649 | end | |
1650 | end | |
1651 | end) | |
1652 | chase2() | |
1653 | missile2.Touched:connect(function(hit) | |
1654 | if (hit.Parent.Parent ~= chara and hit.Parent ~= chara and hit.Name ~= "Blast" and missile2.Anchored == false) then | |
1655 | missile2.Anchored = true | |
1656 | PlaySnd(ExpSnd,missile2) | |
1657 | p2mit.Enabled = false | |
1658 | mesh2.MeshId = "http://www.roblox.com/asset/?id=1290033" | |
1659 | mesh2.TextureId = "http://www.roblox.com/asset/?id=3126553" | |
1660 | ExHitbox(8,missile2.Position,15,3,.05,30,50) | |
1661 | wait(0.1) | |
1662 | missile2.Transparency = .25 | |
1663 | missile2.Mesh.Scale = Vector3.new(2,2,2) | |
1664 | wait(0.1) | |
1665 | missile2.Transparency = .5 | |
1666 | missile2.Mesh.Scale = Vector3.new(4,4,4) | |
1667 | wait(0.1) | |
1668 | missile2.Transparency = .75 | |
1669 | missile2.Mesh.Scale = Vector3.new(6,6,6) | |
1670 | wait(0.1) | |
1671 | missile2:Destroy() | |
1672 | end | |
1673 | end) | |
1674 | debby:AddItem(missile2,10) | |
1675 | wait(.1) | |
1676 | end | |
1677 | for i = 0,.6,.2 do | |
1678 | wait(.001) | |
1679 | TC.C0 = clerp(ITCF,TCF,.6-i) | |
1680 | HC.C0 = clerp(IHCF,HCF,.6-i) | |
1681 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
1682 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i) | |
1683 | end | |
1684 | bpos:Destroy() | |
1685 | atkdd = true | |
1686 | del = false | |
1687 | end | |
1688 | ||
1689 | --Lock On-- | |
1690 | function LockOn() | |
1691 | if Mouse.Target.Parent ~= chara and Mouse.Target.Parent.Parent ~= chara and Mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then | |
1692 | TargetSelect(Mouse.Target.Parent) | |
1693 | TargetSnd:Play() | |
1694 | wait(.05) | |
1695 | TargetSnd:Play() | |
1696 | else end | |
1697 | end | |
1698 | ||
1699 | --Block-- | |
1700 | blockval = false | |
1701 | healthlock = 0 | |
1702 | effeff = nil | |
1703 | function ToggleBlock() | |
1704 | if blockval == false then | |
1705 | del = true | |
1706 | blockval = true | |
1707 | SwingSnd:Play() | |
1708 | healthlock = chara.Humanoid.Health | |
1709 | effeff = Instance.new("ForceField",chara) | |
1710 | effeff.Name = "FawsFeeld" | |
1711 | effeff.Visible = false | |
1712 | for i = 0,.75,.25 do | |
1713 | wait(.0001) | |
1714 | TC.C0 = clerp(ITCF,TCF,.4+i) | |
1715 | HC.C0 = clerp(IHCF,HCF,.4+i) | |
1716 | LW.C0 = clerp(ILWF,(LWF + Vector3.new(-.5,1,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),.4+i) | |
1717 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),.4+i) | |
1718 | end | |
1719 | elseif blockval == true then | |
1720 | SwingSnd:Play() | |
1721 | effeff:Destroy() | |
1722 | blockval = false | |
1723 | for i = 0,.6,.2 do | |
1724 | wait(.0001) | |
1725 | TC.C0 = clerp(ITCF,TCF,.6-i) | |
1726 | HC.C0 = clerp(IHCF,HCF,.6-i) | |
1727 | LW.C0 = clerp(ILWF,(LWF + Vector3.new(-.5,1,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),.6-i) | |
1728 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),.6-i) | |
1729 | end | |
1730 | del = false | |
1731 | atkdd = true | |
1732 | end | |
1733 | end | |
1734 | ||
1735 | --Mouse Functions-- | |
1736 | orbpushactive = false | |
1737 | del = false | |
1738 | input = "" | |
1739 | letterd = 0 | |
1740 | ltoim = 0 | |
1741 | function onKeyDown(key) | |
1742 | if key == "e" then | |
1743 | ToggleBlock() | |
1744 | elseif del == false then | |
1745 | if key == "q" then | |
1746 | if input == "sd" and targetted ~= nil then | |
1747 | ABlast() | |
1748 | elseif input == "dsas" and targetted ~= nil then | |
1749 | RayOver() | |
1750 | elseif input == "ssdd" and targetted ~= nil then | |
1751 | Minigun() | |
1752 | elseif input == "dasd" and targetted ~= nil then | |
1753 | RocketBlast() | |
1754 | elseif input == "ss" then | |
1755 | BackEx() | |
1756 | elseif input == "add" then | |
1757 | GrabMove() | |
1758 | else LockOn() end | |
1759 | input = "" | |
1760 | letterd = 0 | |
1761 | ltoim = 0 | |
1762 | elseif key == "z" then | |
1763 | Punch() | |
1764 | input = "" | |
1765 | letterd = 0 | |
1766 | ltoim = 0 | |
1767 | elseif key == "x" then | |
1768 | if input == "sa" then | |
1769 | BanditRevolver() | |
1770 | elseif input == "ss" then | |
1771 | FlipKick() | |
1772 | else KickAtk() end | |
1773 | input = "" | |
1774 | letterd = 0 | |
1775 | ltoim = 0 | |
1776 | elseif key == "c" then | |
1777 | if input == "dsd" then | |
1778 | Decapitator() | |
1779 | else ExplodPunch() end | |
1780 | input = "" | |
1781 | letterd = 0 | |
1782 | ltoim = 0 | |
1783 | elseif (key == "w" or key == "a" or key == "s" or key == "d") then | |
1784 | input=input..key | |
1785 | print(input) | |
1786 | letterd = letterd + 1 | |
1787 | ltoim = ltoim + 10 | |
1788 | if letterd > 5 then | |
1789 | input = "" | |
1790 | letterd = 0 | |
1791 | ltoim = 0 | |
1792 | end | |
1793 | elseif key == "m" then | |
1794 | if Music.IsPlaying == true then | |
1795 | Music:Stop() | |
1796 | elseif Music.IsPlaying == false then | |
1797 | Music:Play() | |
1798 | end | |
1799 | end | |
1800 | end | |
1801 | end | |
1802 | combo = 0 | |
1803 | ||
1804 | --Mouse Activation-- | |
1805 | if Mouse then | |
1806 | Mouse.KeyDown:connect(onKeyDown) | |
1807 | end | |
1808 | ||
1809 | --Loop Function-- | |
1810 | walking = false | |
1811 | toim = 0 | |
1812 | while true do | |
1813 | wait() | |
1814 | toim = toim + .1 | |
1815 | ltoim = ltoim - 1 | |
1816 | if ltoim < 1 then | |
1817 | input = "" | |
1818 | end | |
1819 | if blockval == true then | |
1820 | chara.Humanoid.Health = healthlock | |
1821 | end | |
1822 | if atkd == true then | |
1823 | TC.C0 = TCF | |
1824 | HC.C0 = HCF | |
1825 | RW.C0 = RWF | |
1826 | LW.C0 = LWF | |
1827 | atkd = false | |
1828 | end | |
1829 | if atkdd == true then | |
1830 | TC.C0 = ITCF | |
1831 | HC.C0 = IHCF | |
1832 | RW.C0 = IRWF | |
1833 | LW.C0 = ILWF | |
1834 | atkdd = false | |
1835 | end | |
1836 | torvel = (chara.HumanoidRootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
1837 | if torvel < 1 and walking == true and del == false and atkd == false then | |
1838 | for i = 0,1,.5 do | |
1839 | wait(.001) | |
1840 | if del == false then | |
1841 | TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),ITCF,i) | |
1842 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(-30),0,0),IHCF,i) | |
1843 | RW.C0 = IRWF | |
1844 | LW.C0 = clerp((LWF + Vector3.new(0,.2,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(20)),ILWF,i) | |
1845 | end | |
1846 | end | |
1847 | walking = false | |
1848 | elseif torvel > 1 and walking == false and del == false and atkd == false then | |
1849 | for i = 0,1,.5 do | |
1850 | wait(.001) | |
1851 | if del == false then | |
1852 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),i) | |
1853 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(-30),0,0),i) | |
1854 | RW.C0 = IRWF | |
1855 | LW.C0 = clerp(ILWF,(LWF + Vector3.new(0,.2,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(20)),i) | |
1856 | end | |
1857 | end | |
1858 | walking = true | |
1859 | else | |
1860 | end | |
1861 | imgl.Rotation = imgl.Rotation + 3 | |
1862 | if targetted ~= nil then | |
1863 | crosshair.Adornee = targetted:FindFirstChild("Torso") or targetted:FindFirstChild("UpperTorso") | |
1864 | crosshair.Enabled = true | |
1865 | elseif targetted == nil then | |
1866 | crosshair.Adornee = nil | |
1867 | crosshair.Enabled = false | |
1868 | end | |
1869 | end |