niggerfaggggggot

Untitled

May 12th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 191.98 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. print("FE Compatibility code V2 by Mokiros")
  7. local RealPlayer = RealPlayer
  8. script.Parent = RealPlayer.Character
  9.  
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local Disconnect_Function = function(this)
  12. this[1].Functions[this[2]] = nil
  13. end
  14. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  15. local FakeEvent_Metatable = {__index={
  16. Connect = function(this,f)
  17. local i = tostring(math.random(0,10000))
  18. while this.Functions[i] do
  19. i = tostring(math.random(0,10000))
  20. end
  21. this.Functions[i] = f
  22. return setmetatable({this,i},Disconnect_Metatable)
  23. end
  24. --[[NIGHTOWLACE_WEAPONRY]]--
  25. Effects = { }
  26. local Player = game.Players.localPlayer
  27. local Character = Player.Character
  28. local Humanoid = Character.Humanoid
  29. Humanoid.WalkSpeed = 25
  30. local mouse = Player:GetMouse()
  31. local m = Instance.new('Model', Character)
  32. m.Name = "WeaponModel"
  33. local LeftArm = Character["Left Arm"]
  34. local RightArm = Character["Right Arm"]
  35. local LeftLeg = Character["Left Leg"]
  36. local RightLeg = Character["Right Leg"]
  37. local Head = Character.Head
  38. local Torso = Character.Torso
  39. local cam = game.Workspace.CurrentCamera
  40. local RootPart = Character.HumanoidRootPart
  41. local RootJoint = RootPart.RootJoint
  42. local equipped = false
  43. local attack = false
  44. local Anim = 'Idle'
  45. local idle = 0
  46. local attacktype = 1
  47. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  48. local velocity = RootPart.Velocity.y
  49. local sine = 0
  50. local change = 1
  51. local grabbed = false
  52. local cn = CFrame.new
  53. local mr = math.rad
  54. local angles = CFrame.Angles
  55. local ud = UDim2.new
  56. local c3 = Color3.new
  57.  
  58. local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  59.  
  60. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  61. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  62. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  63.  
  64. function clerp(a, b, t)
  65. return a:lerp(b, t)
  66. end
  67.  
  68. --[[Credits to SazErenos for his Artificial Heartbeat]]--
  69.  
  70. ArtificialHB = Instance.new("BindableEvent", script)
  71. ArtificialHB.Name = "Heartbeat"
  72.  
  73. script:WaitForChild("Heartbeat")
  74.  
  75. frame = 1 / 30
  76. tf = 0
  77. allowframeloss = false
  78. tossremainder = false
  79. lastframe = tick()
  80. script.Heartbeat:Fire()
  81.  
  82. game:GetService("RunService").Heartbeat:connect(function(s, p)
  83. tf = tf + s
  84. if tf >= frame then
  85. if allowframeloss then
  86. script.Heartbeat:Fire()
  87. lastframe = tick()
  88. else
  89. for i = 1, math.floor(tf / frame) do
  90. script.Heartbeat:Fire()
  91. end
  92. lastframe = tick()
  93. end
  94. if tossremainder then
  95. tf = 0
  96. else
  97. tf = tf - frame * math.floor(tf / frame)
  98. end
  99. end
  100. end)
  101.  
  102. function swait(num)
  103. if num == 0 or num == nil then
  104. ArtificialHB.Event:wait()
  105. else
  106. for i = 0, num do
  107. ArtificialHB.Event:wait()
  108. end
  109. end
  110. end
  111.  
  112. local RbxUtility = LoadLibrary("RbxUtility")
  113. local Create = RbxUtility.Create
  114.  
  115. --[[ Credits to Fenrier for Outline-Remover, Part, Mesh, Weld, Raycase and Sound Creation functions ]]--
  116.  
  117. function RemoveOutlines(part)
  118. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  119. end
  120.  
  121. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  122. local Part = Create("Part"){
  123. Parent = Parent,
  124. Reflectance = Reflectance,
  125. Transparency = Transparency,
  126. CanCollide = false,
  127. Locked = true,
  128. BrickColor = BrickColor.new(tostring(BColor)),
  129. Name = Name,
  130. Size = Size,
  131. Material = Material,
  132. }
  133. RemoveOutlines(Part)
  134. return Part
  135. end
  136.  
  137. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  138. local Msh = Create(Mesh){
  139. Parent = Part,
  140. Offset = OffSet,
  141. Scale = Scale,
  142. }
  143. if Mesh == "SpecialMesh" then
  144. Msh.MeshType = MeshType
  145. Msh.MeshId = MeshId
  146. end
  147. return Msh
  148. end
  149.  
  150. function CreateWeld(Parent, Part0, Part1, C0, C1)
  151. local Weld = Create("Weld"){
  152. Parent = Parent,
  153. Part0 = Part0,
  154. Part1 = Part1,
  155. C0 = C0,
  156. C1 = C1,
  157. }
  158. return Weld
  159. end
  160.  
  161. function CreateBillBoardGui(Img, Pos, Siz) --returns a basic billboard gui object for further manipulation
  162. local billpar = Create("Part"){
  163. Transparency = 1,
  164. Size = Vector3.new(1, 1, 1),
  165. Anchored = true,
  166. CanCollide = false,
  167. CFrame = CFrame.new(Pos),
  168. Name = "BillboardGuiPart",
  169. }
  170. local bill = Create("BillboardGui"){
  171. Parent = billpar,
  172. Adornee = billpar,
  173. Size = UDim2.new(1, 0, 1, 0),
  174. SizeOffset = Vector2.new(Siz, Siz),
  175. }
  176. local d = Create("ImageLabel"){
  177. Parent = bill,
  178. BackgroundTransparency = 1,
  179. Size = UDim2.new(1, 0, 1, 0),
  180. Image = Img,
  181. }
  182. return billpar
  183. end
  184.  
  185. function rayCast(Position, Direction, Range, Ignore)
  186. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  187. end
  188.  
  189. function CreateSound(id, par, vol, pit)
  190. coroutine.resume(coroutine.create(function()
  191. local S = Create("Sound"){
  192. Volume = vol,
  193. Pitch = pit or 1,
  194. SoundId = id,
  195. Parent = par or workspace,
  196. }
  197. swait()
  198. S:play()
  199. game:GetService("Debris"):AddItem(S, 6)
  200. end))
  201. end
  202.  
  203. local function GetNearest(obj, distance)
  204. local last, lastx = distance + 1
  205. for i, v in pairs(workspace:GetChildren()) do
  206. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  207. local t = v.Torso
  208. local dist = (t.Position - obj.Position).magnitude
  209. if dist <= distance then
  210. if dist < last then
  211. last = dist
  212. lastx = v
  213. end
  214. end
  215. end
  216. end
  217. return lastx
  218. end
  219.  
  220. --[[ Credits to Kert109 (Ninja_Deer) for the Damage function. Fenrier for the Magnitude Damage ]]--
  221.  
  222. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  223. for i, v in pairs(hit:GetChildren()) do
  224. if v:IsA("Humanoid") and hit.Name ~= Character.Name then
  225. local find = v:FindFirstChild("DebounceHit")
  226. if not find then
  227. if v.Parent:findFirstChild("Head") then
  228. local BillG = Create("BillboardGui"){
  229. Parent = v.Parent.Head,
  230. Size = UDim2.new(1, 0, 1, 0),
  231. Adornee = v.Parent.Head,
  232. StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  233. }
  234. local TL = Create("TextLabel"){
  235. Parent = BillG,
  236. Size = UDim2.new(3, 3, 3, 3),
  237. BackgroundTransparency = 1,
  238. Text = tostring(damage).."-",
  239. TextColor3 = Color1.Color,
  240. TextStrokeColor3 = Color2.Color,
  241. TextStrokeTransparency = 0,
  242. TextXAlignment = Enum.TextXAlignment.Center,
  243. TextYAlignment = Enum.TextYAlignment.Center,
  244. FontSize = Enum.FontSize.Size18,
  245. Font = "ArialBold",
  246. }
  247. coroutine.resume(coroutine.create(function()
  248. swait(1)
  249. for i = 0, 1, .1 do
  250. swait(.1)
  251. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  252. end
  253. BillG:Destroy()
  254. end))
  255. end
  256. v.Health = v.Health - damage
  257. local bool = Create("BoolValue"){
  258. Parent = v,
  259. Name = "DebounceHit",
  260. }
  261. if HSound ~= nil and HPitch ~= nil then
  262. CreateSound(HSound, hit, 1, HPitch)
  263. end
  264. game:GetService("Debris"):AddItem(bool, cooldown)
  265. end
  266. end
  267. end
  268. end
  269.  
  270. function MagnitudeDamage(Part, magni, mindam, maxdam, Color1, Color2, HSound, HPitch)
  271. for _, c in pairs(workspace:children()) do
  272. local hum = c:findFirstChild("Humanoid")
  273. if hum ~= nil then
  274. local head = c:findFirstChild("Torso")
  275. if head ~= nil then
  276. local targ = head.Position - Part.Position
  277. local mag = targ.magnitude
  278. if mag <= magni and c.Name ~= Player.Name then
  279. Damage(head.Parent, math.random(mindam, maxdam), 0.5, Color1, Color2, HSound, HPitch)
  280. end
  281. end
  282. end
  283. end
  284. end
  285.  
  286. Handle = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "Handle", Vector3.new(3.20000005, 0.320000023, 0.200000003))
  287. HandleWeld = CreateWeld(m, Character["Torso"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.57640076, -0.105987549, -0.672006607, 0.866025388, 0.500000119, -8.94076351e-008, -0.500000119, 0.866025388, 1.49014454e-007, 1.51936518e-007, -8.43464605e-008, 1))
  288. CreateMesh("BlockMesh", Handle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.800000072))
  289. FakeHandle = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "FakeHandle", Vector3.new(1.92000008, 0.320000023, 0.200000003))
  290. FakeHandleWeld = CreateWeld(m, Handle, FakeHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012, 0, 0, 0, 1))
  291. BladeHitbox = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "BladeHitbox", Vector3.new(6.87999964, 1.28000009, 0.320000023))
  292. BladeHitboxWeld = CreateWeld(m, FakeHandle, BladeHitbox, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(5.83992767, 7.62939453e-006, 0.00178432465, 1.00000012, 0, 1.78815313e-007, 0, -1.00000012, 2.0861782e-007, 1.78815299e-007, -2.0861782e-007, -1))
  293. BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "BladePrt", Vector3.new(6.71999979, 0.640000045, 0.200000003))
  294. BladePrtWeld = CreateWeld(m, FakeHandle, BladePrt, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.75999451, 0.320018768, -9.53674316e-007, -1.00000012, 0, -6.70215812e-008, 0, -1.00000012, 3.87433118e-007, -6.70215812e-008, 3.87433118e-007, 1))
  295. CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.0104, 0.0104, 0.00800000038))
  296. BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "BladePrt", Vector3.new(4.96000051, 0.320000023, 0.480000019))
  297. BladePrtWeld = CreateWeld(m, FakeHandle, BladePrt, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.35999298, 0.176017761, -9.53674316e-007, -1.00000012, 0, -8.74827464e-008, 0, -1.00000012, 4.61938924e-007, -8.74827464e-008, 4.61938953e-007, 1))
  298. CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.00879999995, 0.00560000027, 0.0160000008))
  299. BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "BladePrt", Vector3.new(6.71999979, 0.320000023, 0.200000003))
  300. BladePrtWeld = CreateWeld(m, FakeHandle, BladePrt, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.75999451, 0.159992218, 9.53674316e-007, -1, 1.49011612e-007, -9.26303798e-008, 1.49011612e-007, 1, -4.17235356e-007, 9.26303159e-008, -4.17235412e-007, -1))
  301. CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.00960000046, 0.00520000001, 0.00960000046))
  302. BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "BladePrt", Vector3.new(6.71999979, 0.320000023, 0.200000003))
  303. BladePrtWeld = CreateWeld(m, FakeHandle, BladePrt, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.75999451, 0.160015106, 0, -1.00000012, 0, -8.7701622e-008, 0, -1.00000012, 3.87433118e-007, -8.7701622e-008, 3.87433118e-007, 1))
  304. CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.00960000046, 0.00520000001, 0.00960000046))
  305. BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "BladePrt", Vector3.new(4.32000065, 0.200000003, 0.480000019))
  306. BladePrtWeld = CreateWeld(m, FakeHandle, BladePrt, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.5599823, 0.0879821777, 0, -1.00000012, 0, -8.89660754e-008, 0, 1.00000012, -5.36444873e-007, 8.89660896e-008, -5.36444816e-007, -1))
  307. CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.0064000003, 0.00320000015, 0.0200000014))
  308. BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "BladePrt", Vector3.new(4.96000004, 0.320000023, 0.480000019))
  309. BladePrtWeld = CreateWeld(m, FakeHandle, BladePrt, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.36000061, 0.167987823, 9.53674316e-007, -1, 1.49011612e-007, -9.26303798e-008, 1.49011612e-007, 1, -4.17235356e-007, 9.26303159e-008, -4.17235412e-007, -1))
  310. CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.00879999995, 0.00560000027, 0.0160000008))
  311. BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "BladePrt", Vector3.new(6.71999979, 0.640000045, 0.200000003))
  312. BladePrtWeld = CreateWeld(m, FakeHandle, BladePrt, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.76000214, 0.319988251, -9.53674316e-007, -1.00000012, 2.68220901e-007, -1.42108547e-014, 2.68220901e-007, 1.00000012, -2.9802888e-007, -6.59472477e-014, -2.9802888e-007, -1))
  313. CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.0104, 0.0104, 0.00800000038))
  314. BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "BladePrt", Vector3.new(4.32000065, 0.200000003, 0.480000019))
  315. BladePrtWeld = CreateWeld(m, FakeHandle, BladePrt, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.5599823, 0.112014771, -9.53674316e-007, -1.00000012, 0, -8.74827464e-008, 0, -1.00000012, 4.61938924e-007, -8.74827464e-008, 4.61938953e-007, 1))
  316. CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.0064000003, 0.00320000015, 0.0200000014))
  317. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  318. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.59932709, 0.159358978, 1.23977661e-005, 1.00000012, 0, 0, 0, -1.00000012, 0, 0, 0, -1))
  319. CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(0.800000072, 0.800000072, 0.800000072))
  320. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.320000023, 0.200000003, 0.200000003))
  321. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.59998322, 0.0799942017, -9.53674316e-007, -1, 1.49011612e-007, -9.10118445e-007, 1.49011612e-007, 1, -5.66248389e-007, 9.10118445e-007, -5.66248559e-007, -1))
  322. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
  323. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  324. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.59931946, -0.160633087, 1.23977661e-005, 1.00000012, 0, 0, 0, -1.00000012, 0, 0, 0, -1))
  325. CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(0.800000072, 0.800000072, 0.800000072))
  326. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(3.20000005, 0.200000003, 0.200000003))
  327. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-7.62939453e-006, 0.079990387, 0, 1.00000012, 0, 0, 0, 1.00000012, 0, 0, 0, 1))
  328. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
  329. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.200000003, 0.960000038, 0.320000023))
  330. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.83992767, 1.14440918e-005, 0.00178432465, 1.00000012, 0, 1.78815313e-007, 0, -1.00000012, 2.0861782e-007, 1.78815299e-007, -2.0861782e-007, -1))
  331. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.800000072, 1, 1))
  332. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.320000023, 3.20000005, 0.200000003))
  333. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.160007477, 7.62939453e-006, 0, 0, -1.00000012, 0, -1.00000012, 0, 1.42108547e-014, -1.42108547e-014, 7.10542736e-015, -1))
  334. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.800000072))
  335. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(3.20000005, 0.200000003, 0.200000003))
  336. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.0800018311, 0, 1.00000012, 0, 0, 0, 1.00000012, 0, 0, 0, 1))
  337. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
  338. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.320000023, 0.200000003, 0.200000003))
  339. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.320007324, 1.6799469, -1.90734863e-006, -5.66244125e-007, -1, 5.23353265e-007, 1, -5.66244125e-007, 7.59964848e-007, -7.59964678e-007, 5.23353719e-007, 1))
  340. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
  341. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.320000023, 0.200000003, 0.200000003))
  342. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.59998322, -0.0799980164, -9.53674316e-007, -1, 1.49011612e-007, -9.10118445e-007, 1.49011612e-007, 1, -5.66248389e-007, 9.10118445e-007, -5.66248559e-007, -1))
  343. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
  344. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.320000023, 0.200000003, 0.200000003))
  345. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.319988251, 1.67993927, -1.90734863e-006, -5.66244125e-007, -1, 5.23353265e-007, 1, -5.66244125e-007, 7.59964848e-007, -7.59964678e-007, 5.23353719e-007, 1))
  346. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
  347. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.320000023, 3.20000005, 0.200000003))
  348. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.159992218, 1.52587891e-005, 0, 0, -1.00000012, 0, -1.00000012, 0, 1.42108547e-014, -1.42108547e-014, 7.10542736e-015, -1))
  349. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.800000072))
  350. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.320000023, 0.320000023, 0.320000023))
  351. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.480003357, -2.07992554, 0.00178527832, 3.87430191e-007, -1, 8.24703648e-007, -1, -3.87430191e-007, -7.15261194e-007, 7.15261535e-007, -8.2470342e-007, -1))
  352. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  353. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.320000023, 0.200000003, 0.320000023))
  354. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.480003357, -1.8399353, 0.00178527832, 3.87430191e-007, -1, 8.24703648e-007, -1, -3.87430191e-007, -7.15261194e-007, 7.15261535e-007, -8.2470342e-007, -1))
  355. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 1))
  356. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.320000023, 0.320000023, 0.320000023))
  357. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.479980469, -2.07992554, 0.00178527832, 3.87430191e-007, -1, 8.24703648e-007, -1, -3.87430191e-007, -7.15261194e-007, 7.15261535e-007, -8.2470342e-007, -1))
  358. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  359. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.320000023, 0.960000038, 0.320000023))
  360. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.07992554, 1.52587891e-005, 0.00178432465, 1.00000012, 0, 1.78815313e-007, 0, -1.00000012, 2.0861782e-007, 1.78815299e-007, -2.0861782e-007, -1))
  361. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.320000023, 0.200000003, 0.320000023))
  362. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.480003357, -2.3199234, 0.00178527832, 3.87430191e-007, -1, 8.24703648e-007, -1, -3.87430191e-007, -7.15261194e-007, 7.15261535e-007, -8.2470342e-007, -1))
  363. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 1))
  364. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.200000003, 0.960000038, 0.320000023))
  365. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.31991577, 1.14440918e-005, 0.00178432465, 1.00000012, 0, 1.78815313e-007, 0, -1.00000012, 2.0861782e-007, 1.78815299e-007, -2.0861782e-007, -1))
  366. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.800000072, 1, 1))
  367. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.320000023, 0.200000003, 0.320000023))
  368. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.479984283, -1.8399353, 0.00178527832, 3.87430191e-007, -1, 8.24703648e-007, -1, -3.87430191e-007, -7.15261194e-007, 7.15261535e-007, -8.2470342e-007, -1))
  369. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 1))
  370. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.320000023, 0.200000003, 0.320000023))
  371. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.479980469, -2.3199234, 0.00178527832, 3.87430191e-007, -1, 8.24703648e-007, -1, -3.87430191e-007, -7.15261194e-007, 7.15261535e-007, -8.2470342e-007, -1))
  372. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 1))
  373. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.200000003, 0.640000045, 0.200000003))
  374. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.67993164, 7.62939453e-006, 0, 1.00000012, 0, 1.78815313e-007, 0, -1.00000012, 2.0861782e-007, 1.78815299e-007, -2.0861782e-007, -1))
  375. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.800000072, 1, 0.800000072))
  376. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.351999998, 0.200000003, 0.200000003))
  377. WedgeWeld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00178337097, 1.41417694, 1.52728844, -8.94076351e-008, 1.49014454e-007, 1, 0.707107067, -0.70710665, 1.68589878e-007, 0.70710665, 0.707107067, -4.21484252e-008))
  378. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
  379. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.351999998, 0.200000003, 0.200000003))
  380. WedgeWeld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00178337097, -1.52731323, -1.41415596, -8.94076351e-008, 1.49014454e-007, 1, -0.707106829, 0.707106829, -1.68589878e-007, -0.707106829, -0.707106829, 4.2148379e-008))
  381. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
  382. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(0.336000025, 0.200000003, 0.200000003))
  383. WedgeWeld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00178337097, -2.15991974, 0.0800132751, -8.94076351e-008, 1.49014454e-007, 1, -1.00000012, 0, -8.94076351e-008, 0, -1.00000012, 1.49014454e-007))
  384. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
  385. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(0.336000025, 0.200000003, 0.200000003))
  386. WedgeWeld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00178337097, -0.0800132751, -1.99993896, -8.94076351e-008, 1.49014454e-007, 1, 0, 1.00000012, -1.49014454e-007, -1.00000012, 0, -8.94076351e-008))
  387. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
  388. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(0.336000025, 0.200000003, 0.200000003))
  389. WedgeWeld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00178337097, -0.079990387, 2.15991974, -8.94076351e-008, 1.49014454e-007, 1, -1.49011612e-007, -1, 1.49014426e-007, 1, -1.49011612e-007, 8.94076493e-008))
  390. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
  391. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(0.336000025, 0.200000003, 0.200000003))
  392. WedgeWeld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00178337097, 1.99992371, 0.0799865723, -8.94076351e-008, 1.49014454e-007, 1, 1, -1.49011612e-007, 8.94076493e-008, 1.49011612e-007, 1, -1.49014426e-007))
  393. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
  394. CreateMesh("BlockMesh", FakeHandle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.800000072))
  395. HandleL = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "HandleL", Vector3.new(1, 2, 1.01999998))
  396. HandleLWeld = CreateWeld(m, Character["Left Arm"], HandleL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00849914551, 0.00999999046, 6.77108765e-005, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  397. EffectPrt1 = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0.30000001192093, "Really black", "EffectPrt1", Vector3.new(0.600000024, 0.600000024, 0.400000036))
  398. EffectPrt1Weld = CreateWeld(m, HandleL, EffectPrt1, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00999355316, -0.499996185, -0.509780884, 0, 0, 1, 0, 1, 0, -1, 0, 0))
  399. CreateMesh("SpecialMesh", EffectPrt1, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  400. EffectPrt2 = CreatePart(m, Enum.Material.SmoothPlastic, 0.30000001192093, 0, "Mid gray", "EffectPrt2", Vector3.new(0.600000024, 0.600000024, 0.400000036))
  401. EffectPrt2Weld = CreateWeld(m, HandleL, EffectPrt2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0100440979, 0.499996185, 0.509773254, 4.06801701e-005, 8.90720813e-008, 1, 2.13165718e-014, -1, 8.90720813e-008, 1, -3.60215091e-012, -4.06801701e-005))
  402. CreateMesh("SpecialMesh", EffectPrt2, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=18430887", Vector3.new(0, 0, 0), Vector3.new(0.379999906, 0.399999678, 2.21999955))
  403. HitboxL = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "HitboxL", Vector3.new(1.20000005, 1.39999998, 1.01999998))
  404. HitboxLWeld = CreateWeld(m, HandleL, HitboxL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0999908447, 0.699999809, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  405. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.75, 0.200000003, 0.200000003))
  406. PartWeld = CreateWeld(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.12071991, 0.312129974, -0.409996033, 0.965925872, 0.258819103, 0, -0.258819103, 0.965925872, 0, 0, 0, 1))
  407. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.200000003, 0.200000003, 1.01999998))
  408. PartWeld = CreateWeld(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.354278564, 0.31212616, 0, 0.965925872, 0.258819103, 0, -0.258819103, 0.965925872, 0, 0, 0, 1))
  409. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.600000024, 0.200000003, 1.01999998))
  410. PartWeld = CreateWeld(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.200004578, 0.899998903, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  411. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.75, 0.200000003, 0.200000003))
  412. PartWeld = CreateWeld(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.12071991, 0.312129974, 0.410003662, 0.965925872, 0.258819103, 0, -0.258819103, 0.965925872, 0, 0, 0, 1))
  413. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.200000003, 1.20000005, 1.00999999))
  414. PartWeld = CreateWeld(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.409751892, -0.412899256, 0.00154209137, -1, -5.71118512e-008, 0, -5.71118512e-008, 1, 1.6609139e-008, -9.48578645e-016, 1.6609139e-008, -1))
  415. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0.19999998807907, "Really black", "Part", Vector3.new(0.400000036, 0.400000036, 0.400000006))
  416. PartWeld = CreateWeld(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0105276108, -0.491856098, -0.509765625, 0, 0, 1, 0, 1, 0, -1, 0, 0))
  417. CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  418. ThunderHoleL = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "ThunderHoleL", Vector3.new(0.200000003, 1.05000007, 0.200000003))
  419. ThunderHoleLWeld = CreateWeld(m, HandleL, ThunderHoleL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.699999809, -0.000227928162, 0.228645325, 0, -1, 0, 0, 0, -1, 1, -0, 0))
  420. CreateMesh("CylinderMesh", ThunderHoleL, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  421. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.800000012, 0.200000003))
  422. WedgeWeld = CreateWeld(m, HandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.21999836, 0.600001812, 0.62865448, 0, 0, -1, 0, 1, 0, 1, 0, 0))
  423. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  424. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.600000024, 0.200000003))
  425. WedgeWeld = CreateWeld(m, HandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.232361794, 0.0286483765, 1.10000181, -5.96046448e-008, 1.07931243e-007, 1, 1, 5.49689858e-008, 5.96046412e-008, -5.49689787e-008, 1, -1.07931243e-007))
  426. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  427. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.400000006, 0.200000003))
  428. WedgeWeld = CreateWeld(m, HandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.21999836, -0.528648376, 1.10000181, 0, 0, -1, -1, -5.96046377e-008, 0, -5.96046377e-008, 1, 0))
  429. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  430. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.600000024, 0.200000003))
  431. WedgeWeld = CreateWeld(m, HandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.21999836, 0.0286483765, 1.10000181, -5.96046448e-008, 1.07931243e-007, 1, 1, 5.49689858e-008, 5.96046412e-008, -5.49689787e-008, 1, -1.07931243e-007))
  432. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  433. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(1.01999998, 1.80999994, 0.619999945))
  434. WedgeWeld = CreateWeld(m, HandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.104995966, -0.199783325, 0, 0, 1, 0, 1, 0, -1, 0, 0))
  435. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  436. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(1.03999996, 1.00999999, 1.01999998))
  437. WedgeWeld = CreateWeld(m, HandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0.494999886, -0.018661499, 0, 0, 1, 0, 1, 0, -1, 0, 0))
  438. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  439. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.800000012, 0.200000003))
  440. WedgeWeld = CreateWeld(m, HandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.232361794, 0.600001812, 0.62865448, 0, 0, -1, 0, 1, 0, 1, 0, 0))
  441. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  442. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.400000006, 0.200000003))
  443. WedgeWeld = CreateWeld(m, HandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.232361794, -0.528648376, 1.10000181, 0, 0, -1, -1, -5.96046377e-008, 0, -5.96046377e-008, 1, 0))
  444. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  445. HandleR = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "HandleR", Vector3.new(1, 2, 1.01999998))
  446. HandleRWeld = CreateWeld(m, Character["Right Arm"], HandleR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00468444824, 0.0100209713, -0.00353145599, -1, -5.71118512e-008, 0, -5.71118512e-008, 1, 1.6609139e-008, -9.48578645e-016, 1.6609139e-008, -1))
  447. Barrel1 = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "Barrel1", Vector3.new(0.600000024, 1.20000005, 0.400000036))
  448. Barrel1Weld = CreateWeld(m, HandleR, Barrel1, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.299865723, 0.599565029, 0.718658447, -1.49011612e-007, -6.73397207e-015, -1, 0, 1, -7.10542736e-015, 1, 0, -1.49011612e-007))
  449. CreateMesh("SpecialMesh", Barrel1, Enum.MeshType.FileMesh, "rbxassetid://433397018", Vector3.new(0, 0, 0), Vector3.new(0.00999999978, 0.00999999978, 0.00999999978))
  450. Barrel2 = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "Barrel2", Vector3.new(0.600000024, 1.20000005, 0.400000036))
  451. Barrel2Weld = CreateWeld(m, HandleR, Barrel2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.300126076, 0.599565029, 0.718658447, -1.49011612e-007, -6.73397207e-015, -1, 0, 1, -7.10542736e-015, 1, 0, -1.49011612e-007))
  452. CreateMesh("SpecialMesh", Barrel2, Enum.MeshType.FileMesh, "rbxassetid://433397018", Vector3.new(0, 0, 0), Vector3.new(0.00999999978, 0.00999999978, 0.00999999978))
  453. Choke1 = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "Choke1", Vector3.new(0.600000024, 0.400000006, 0.400000036))
  454. Choke1Weld = CreateWeld(m, HandleR, Choke1, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.297118187, 1.39956522, 0.718673706, -1.49011612e-007, -6.73397207e-015, -1, 0, 1, -7.10542736e-015, 1, 0, -1.49011612e-007))
  455. CreateMesh("SpecialMesh", Choke1, Enum.MeshType.FileMesh, "rbxassetid://433397231", Vector3.new(0, 0, 0), Vector3.new(0.00999999978, 0.00999999978, 0.00999999978))
  456. Choke2 = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "Choke2", Vector3.new(0.600000024, 0.400000006, 0.400000036))
  457. Choke2Weld = CreateWeld(m, HandleR, Choke2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.303283691, 1.3995651, 0.718673706, -1.49011612e-007, -6.73397207e-015, -1, 0, 1, -7.10542736e-015, 1, 0, -1.49011612e-007))
  458. CreateMesh("SpecialMesh", Choke2, Enum.MeshType.FileMesh, "rbxassetid://433397231", Vector3.new(0, 0, 0), Vector3.new(0.00999999978, 0.00999999978, 0.00999999978))
  459. HitboxR = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "HitboxR", Vector3.new(1.20000005, 0.99999994, 1.01999998))
  460. HitboxRWeld = CreateWeld(m, HandleR, HitboxR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.100006104, 0.700003862, 0, 1, 0, 0, 0, 1, 5.41750795e-023, 0, 5.41750795e-023, 1))
  461. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.75, 0.200000003, 0.200000003))
  462. PartWeld = CreateWeld(m, HandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.120735168, 0.312120438, 0.40998745, 0.965925872, 0.258819222, -5.53058896e-008, -0.258819222, 0.965925872, 3.094436e-008, 6.14303701e-008, -1.55757274e-008, 1))
  463. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.400000006, 0.819999993, 1.01999998))
  464. PartWeld = CreateWeld(m, HandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.718658447, -0.4104321, -1.43051147e-005, 1, 0, 0, 0, 1, 5.41750795e-023, 0, 5.41750795e-023, 1))
  465. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.600000024, 0.200000003, 1.01999998))
  466. PartWeld = CreateWeld(m, HandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.199996948, 0.900001049, 0, 1, 0, 0, 0, 1, 5.41750795e-023, 0, 5.41750795e-023, 1))
  467. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.409999996, 2.01999998, 1.01999998))
  468. PartWeld = CreateWeld(m, HandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.313659668, -0.00999617577, 0, 1, 0, 0, 0, 1, 5.41750795e-023, 0, 5.41750795e-023, 1))
  469. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.75, 0.200000003, 0.200000003))
  470. PartWeld = CreateWeld(m, HandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.120735168, 0.312120438, -0.410010338, 0.965925872, 0.258819222, -5.53058896e-008, -0.258819222, 0.965925872, 3.094436e-008, 6.14303701e-008, -1.55757274e-008, 1))
  471. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.409999967, 0.200000003, 1.01999998))
  472. PartWeld = CreateWeld(m, HandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0863342285, -0.919991493, -3.05175781e-005, 1, 0, 0, 0, 1, 5.41750795e-023, 0, 5.41750795e-023, 1))
  473. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.200000003, 0.200000003, 1.01999998))
  474. PartWeld = CreateWeld(m, HandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.354248047, 0.312124252, -1.43051147e-005, 0.965925872, 0.258819222, -5.53058896e-008, -0.258819222, 0.965925872, 3.094436e-008, 6.14303701e-008, -1.55757274e-008, 1))
  475. ThunderHoleR = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "ThunderHoleR", Vector3.new(0.200000003, 1.05000007, 0.200000003))
  476. ThunderHoleRWeld = CreateWeld(m, HandleR, ThunderHoleR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.700005054, -0.000213623047, 0.228675842, -1.0658141e-014, -1, -1.0658141e-014, 9.48578222e-016, 1.0658141e-014, -1, 1, -1.0658141e-014, 9.48578116e-016))
  477. CreateMesh("CylinderMesh", ThunderHoleR, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  478. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.800000012, 0.200000003))
  479. WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.232376099, 0.600004911, 0.628646851, 9.48580657e-016, -3.19744231e-014, -1, 0, 1, -3.19744231e-014, 1, 0, 9.48580551e-016))
  480. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  481. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.600000024, 0.200000003))
  482. WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.219985962, 0.0286712646, 1.10000277, -3.12924385e-007, 1.07931264e-007, 1, 1, 5.49689787e-008, 3.12924385e-007, -5.49689467e-008, 1, -1.07931285e-007))
  483. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  484. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.400000006, 0.200000003))
  485. WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.232376099, -0.528656006, 1.100003, 9.48580657e-016, -3.19744231e-014, -1, -1, -5.9604659e-008, -9.48578539e-016, -5.9604659e-008, 1, -3.19744231e-014))
  486. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  487. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(1.01999998, 0.200000003, 0.400000006))
  488. WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.43051147e-005, -0.920844555, 0.718658447, 9.48580657e-016, -3.19744231e-014, -1, 0, 1, -3.19744231e-014, 1, 0, 9.48580551e-016))
  489. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  490. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(1.03999996, 1.00999999, 1.01999998))
  491. WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0.495002031, -0.0186691284, -9.48580657e-016, 3.19744231e-014, 1, 0, 1, -3.19744231e-014, -1, 0, -9.48580551e-016))
  492. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  493. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.600000024, 0.200000003))
  494. WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.232390404, 0.0286712646, 1.100003, -3.12924385e-007, 1.07931264e-007, 1, 1, 5.49689787e-008, 3.12924385e-007, -5.49689467e-008, 1, -1.07931285e-007))
  495. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  496. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.400000006, 0.200000003))
  497. WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.219985962, -0.528671265, 1.100003, 9.48580657e-016, -3.19744231e-014, -1, -1, -5.9604659e-008, -9.48578539e-016, -5.9604659e-008, 1, -3.19744231e-014))
  498. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  499. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(1.01999998, 0.200000003, 0.400000006))
  500. WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.43051147e-005, -0.100847006, 0.718658447, 2.45555211e-015, -5.96046306e-008, 1, -1.42108547e-014, -1, -5.96046306e-008, 1, -1.42108547e-014, -2.45555296e-015))
  501. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  502. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.800000012, 0.200000003))
  503. WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.220002174, 0.600004911, 0.628662109, 9.48580657e-016, -3.19744231e-014, -1, 0, 1, -3.19744231e-014, 1, 0, 9.48580551e-016))
  504. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  505. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(1.00999999, 0.410000026, 0.410000026))
  506. WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00409030914, 0.623651981, 0.0869140625, 7.5121838e-016, 3.45568019e-009, -1, -5.9604659e-008, -1, -3.45568019e-009, -1, 5.9604659e-008, -5.45243684e-016))
  507. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  508.  
  509. --[[ Credits to Fenrier for the Effect Functions. ]]--
  510.  
  511. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  512. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  513. prt.Anchored = true
  514. prt.CFrame = cframe
  515. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  516. game:GetService("Debris"):AddItem(prt, 10)
  517. if Type == 1 or Type == nil then
  518. table.insert(Effects, {
  519. prt,
  520. "Block1",
  521. delay,
  522. x3,
  523. y3,
  524. z3,
  525. msh
  526. })
  527. elseif Type == 2 then
  528. table.insert(Effects, {
  529. prt,
  530. "Block2",
  531. delay,
  532. x3,
  533. y3,
  534. z3,
  535. msh
  536. })
  537. end
  538. end
  539.  
  540. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  541. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  542. prt.Anchored = true
  543. prt.CFrame = cframe
  544. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  545. game:GetService("Debris"):AddItem(prt, 10)
  546. table.insert(Effects, {
  547. prt,
  548. "Cylinder",
  549. delay,
  550. x3,
  551. y3,
  552. z3,
  553. msh
  554. })
  555. end
  556.  
  557. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  558. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  559. prt.Anchored = true
  560. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  561. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  562. game:GetService("Debris"):AddItem(prt, 10)
  563. table.insert(Effects, {
  564. prt,
  565. "Cylinder",
  566. delay,
  567. x3,
  568. y3,
  569. z3,
  570. msh
  571. })
  572. end
  573.  
  574. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  575. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  576. prt.Anchored = true
  577. prt.CFrame = cframe
  578. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  579. game:GetService("Debris"):AddItem(prt, 10)
  580. table.insert(Effects, {
  581. prt,
  582. "Cylinder",
  583. delay,
  584. x3,
  585. y3,
  586. z3,
  587. msh
  588. })
  589. end
  590.  
  591. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  592. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  593. prt.Anchored = true
  594. prt.CFrame = cframe
  595. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  596. game:GetService("Debris"):AddItem(prt, 10)
  597. table.insert(Effects, {
  598. prt,
  599. "Cylinder",
  600. delay,
  601. x3,
  602. y3,
  603. z3,
  604. msh
  605. })
  606. end
  607.  
  608. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  609. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  610. prt.Anchored = true
  611. prt.CFrame = cframe
  612. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  613. game:GetService("Debris"):AddItem(prt, 10)
  614. table.insert(Effects, {
  615. prt,
  616. "Cylinder",
  617. delay,
  618. x3,
  619. y3,
  620. z3,
  621. msh
  622. })
  623. end
  624.  
  625. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  626. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  627. prt.Anchored = true
  628. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  629. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  630. local num = math.random(10, 50) / 1000
  631. game:GetService("Debris"):AddItem(prt, 10)
  632. table.insert(Effects, {
  633. prt,
  634. "Shatter",
  635. num,
  636. prt.CFrame,
  637. math.random() - math.random(),
  638. 0,
  639. math.random(50, 100) / 100
  640. })
  641. end
  642.  
  643. --[[ Attack Functions ]]--
  644.  
  645. local Mode = "Normal"
  646.  
  647. RSH = Torso["Right Shoulder"]
  648. LSH = Torso["Left Shoulder"]
  649. RH = Torso["Right Hip"]
  650. LH = Torso["Left Hip"]
  651. Animate = Character.Animate
  652. Animator = Humanoid.Animator
  653.  
  654. function Equip()
  655. attack = true
  656. equipped = true
  657. RSH.Parent = nil
  658. LSH.Parent = nil
  659. Animator.Parent = nil
  660. Animate.Disabled = true
  661. change = 3
  662. RW = Create("Weld"){
  663. Name = "Right Shoulder",
  664. Part0 = Torso ,
  665. C0 = CFrame.new(1.5, 0.5, 0),
  666. C1 = CFrame.new(0, 0.5, 0),
  667. Part1 = RightArm ,
  668. Parent = Torso ,
  669. }
  670. LW = Create("Weld"){
  671. Name = "Left Shoulder",
  672. Part0 = Torso ,
  673. C0 = CFrame.new(-1.5, 0.5, 0),
  674. C1 = CFrame.new(0, 0.5, 0) ,
  675. Part1 = LeftArm ,
  676. Parent = Torso ,
  677. }
  678. CreateSound("http://roblox.com/asset/?id=346134880", Torso, 1, 1)
  679. for i = 0, 1, 0.1 do
  680. swait()
  681. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), .2)
  682. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  683. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, -.5) * angles(math.rad(0), math.rad(170), math.rad(90)), .25)
  684. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.3, -.7) * angles(math.rad(0), math.rad(-170), math.rad(-110)), .25)
  685. if Torsovelocity < 1 then
  686. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(5)), .2)
  687. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(-5)), .2)
  688. elseif Torsovelocity > 2 then
  689. RH.C0 = clerp(RH.C0, cn(1, -.8 - 0.3 * math.cos(sine / 10) / 2, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3)
  690. LH.C0 = clerp(LH.C0, cn(-1, -.8 + 0.3 * math.cos(sine / 10) / 2, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3)
  691. end
  692. end
  693. CreateSound("http://roblox.com/asset/?id=346134880", Torso, 1, .9)
  694. for i = 0, 1, 0.1 do
  695. swait()
  696. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), .2)
  697. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  698. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, -.5) * angles(math.rad(0), math.rad(170), math.rad(95)), .34)
  699. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, -.7) * angles(math.rad(0), math.rad(-170), math.rad(-120)), .34)
  700. if Torsovelocity < 1 then
  701. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(5)), .2)
  702. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(-5)), .2)
  703. elseif Torsovelocity > 2 then
  704. RH.C0 = clerp(RH.C0, cn(1, -.8 - 0.3 * math.cos(sine / 10) / 2, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3)
  705. LH.C0 = clerp(LH.C0, cn(-1, -.8 + 0.3 * math.cos(sine / 10) / 2, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3)
  706. end
  707. end
  708. for i = 0, 1, 0.1 do
  709. swait()
  710. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), .2)
  711. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  712. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, -.7) * angles(math.rad(0), math.rad(170), math.rad(110)), .25)
  713. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.3, -.5) * angles(math.rad(0), math.rad(-170), math.rad(-90)), .25)
  714. if Torsovelocity < 1 then
  715. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(5)), .2)
  716. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(-5)), .2)
  717. elseif Torsovelocity > 2 then
  718. RH.C0 = clerp(RH.C0, cn(1, -.8 - 0.3 * math.cos(sine / 10) / 2, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3)
  719. LH.C0 = clerp(LH.C0, cn(-1, -.8 + 0.3 * math.cos(sine / 10) / 2, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3)
  720. end
  721. end
  722. for i = 0, 1, 0.1 do
  723. swait()
  724. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), .2)
  725. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  726. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, -.7) * angles(math.rad(0), math.rad(170), math.rad(120)), .34)
  727. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.3, -.7) * angles(math.rad(0), math.rad(-180), math.rad(-95)), .34)
  728. if Torsovelocity < 1 then
  729. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(5)), .2)
  730. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(-5)), .2)
  731. elseif Torsovelocity > 2 then
  732. RH.C0 = clerp(RH.C0, cn(1, -.8 - 0.3 * math.cos(sine / 10) / 2, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3)
  733. LH.C0 = clerp(LH.C0, cn(-1, -.8 + 0.3 * math.cos(sine / 10) / 2, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3)
  734. end
  735. end
  736. attack = false
  737. end
  738.  
  739. function Unequip()
  740. attack = true
  741. for i = 0, 1, 0.1 do
  742. swait()
  743. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  744. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  745. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  746. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  747. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  748. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  749. end
  750. equipped = false
  751. RW.Parent = nil
  752. LW.Parent = nil
  753. RSH.Parent = Torso
  754. LSH.Parent = Torso
  755. Torso.Neck.C0 = NeckCF
  756. RootJoint.C0 = RootCF
  757. Animator.Parent = Humanoid
  758. Animate.Disabled = false
  759. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  760. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  761. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  762. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  763. attack = false
  764. end
  765.  
  766. function attackone()
  767. attack = true
  768. local Con1 = HitboxL.Touched:connect(function(hit)
  769. Damage(hit.Parent, math.random(10, 45), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
  770. end)
  771. for i = 0, 1, 0.13 do
  772. swait()
  773. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.3) * angles(math.rad(0), math.rad(0), math.rad(70)), .3)
  774. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-70)), .3)
  775. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0, -.3) * angles(math.rad(180), math.rad(-20), math.rad(10)), .3)
  776. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.4, -.7) * angles(math.rad(0), math.rad(-150), math.rad(-90)), .3)
  777. RH.C0 = clerp(RH.C0, cn(1, -.8, 0) * RHCF * angles(math.rad(-4), math.rad(-40), math.rad(0)), .3)
  778. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-4), math.rad(-40), math.rad(30)), .3)
  779. end
  780. CreateSound("http://www.roblox.com/asset/?id=200632136", HitboxL, 1, 1)
  781. for i = 0, 1, 0.12 do
  782. swait()
  783. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.3) * angles(math.rad(20), math.rad(0), math.rad(-80)), .54)
  784. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-10), math.rad(-10), math.rad(80)), .54)
  785. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, .3) * angles(math.rad(50), math.rad(20), math.rad(0)), .54)
  786. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.7, -.3) * angles(math.rad(0), math.rad(-20), math.rad(-110)), .54)
  787. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-4), math.rad(40), math.rad(-10)), .54)
  788. LH.C0 = clerp(LH.C0, cn(-1, -.7, 0) * LHCF * angles(math.rad(-4), math.rad(40), math.rad(-20)), .54)
  789. end
  790. Con1:disconnect()
  791. attack = false
  792. end
  793.  
  794. function attacktwo()
  795. attack = true
  796. local Con1 = HitboxR.Touched:connect(function(hit)
  797. Damage(hit.Parent, math.random(10, 45), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
  798. end)
  799. for i = 0, 1, 0.13 do
  800. swait()
  801. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.4) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3)
  802. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(80)), .3)
  803. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(-90), math.rad(0)), .3)
  804. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.4) * angles(math.rad(120), math.rad(0), math.rad(10)), .3)
  805. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(-40)), .3)
  806. LH.C0 = clerp(LH.C0, cn(-1, -.7, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  807. end
  808. CreateSound("http://www.roblox.com/asset/?id=200632136", HitboxR, 1, 1.1)
  809. for i = 0, 1, 0.12 do
  810. swait()
  811. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0) * angles(math.rad(0), math.rad(0), math.rad(80)), .55)
  812. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-80)), .55)
  813. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.6, -.3) * angles(math.rad(180), math.rad(-20), math.rad(10)), .55)
  814. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(10)), .55)
  815. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .55)
  816. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .55)
  817. end
  818. Con1:disconnect()
  819. attack = false
  820. end
  821.  
  822. function attackthree()
  823. attack = true
  824. local Con1 = HitboxL.Touched:connect(function(hit)
  825. Damage(hit.Parent, math.random(10, 45), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
  826. end)
  827. local Con2 = HitboxR.Touched:connect(function(hit)
  828. Damage(hit.Parent, math.random(10, 45), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
  829. end)
  830. for i = 0, 1, 0.13 do
  831. swait()
  832. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), .3)
  833. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(0)), .3)
  834. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.5) * angles(math.rad(90), math.rad(50), math.rad(0)), .3)
  835. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0.5) * angles(math.rad(90), math.rad(-50), math.rad(0)), .3)
  836. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(-20)), .3)
  837. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(20)), .3)
  838. end
  839. CreateSound("http://www.roblox.com/asset/?id=200632136", Torso, 1, .8)
  840. Torso.Velocity = RootPart.CFrame.lookVector * 120
  841. for i = 0, 1, 0.13 do
  842. swait()
  843. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), .55)
  844. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-10), math.rad(0), math.rad(0)), .55)
  845. RW.C0 = clerp(RW.C0, CFrame.new(.8, 0.5, -.8) * angles(math.rad(120), math.rad(60), math.rad(0)), .55)
  846. LW.C0 = clerp(LW.C0, CFrame.new(-.8, 0.5, -.8) * angles(math.rad(120), math.rad(-60), math.rad(0)), .55)
  847. RH.C0 = clerp(RH.C0, cn(1, -.6, -.2) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(-20)), .3)
  848. LH.C0 = clerp(LH.C0, cn(-1, -.8, -.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(10)), .3)
  849. end
  850. Con1:disconnect()
  851. Con2:disconnect()
  852. attack = false
  853. end
  854.  
  855. function attackfour()
  856. attack = true
  857. Torso.Velocity = Vector3.new(0, 100, 0)
  858. Humanoid.Jump = true
  859. CreateSound("http://roblox.com/asset/?id=199145327", Torso, 1, .8)
  860. for i = 0, 1, 0.12 do
  861. swait()
  862. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(6 * i, math.rad(0), math.rad(0)), .3)
  863. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  864. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(-40)), .3)
  865. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(40)), .3)
  866. RH.C0 = clerp(RH.C0, cn(1, -.2, -.5) * RHCF * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  867. LH.C0 = clerp(LH.C0, cn(-1, -.1, -.5) * LHCF * angles(math.rad(0), math.rad(0), math.rad(20)), .3)
  868. end
  869. for i = 0, 1, 0.12 do
  870. swait()
  871. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10 * i), math.rad(0), math.rad(0)), .5)
  872. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(0)), .5)
  873. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(60)), .5)
  874. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-60)), .5)
  875. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(40)), .5)
  876. LH.C0 = clerp(LH.C0, cn(-1, 0, -.5) * LHCF * angles(math.rad(0), math.rad(0), math.rad(20)), .5)
  877. end
  878. local hitfloor = nil
  879. while hitfloor == nil do
  880. swait()
  881. hitfloor, posfloor = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 3, Character)
  882. end
  883. MagnitudeDamage(RootPart, 30, 20, 35, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
  884. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 6, Character)
  885. if hit ~= nil then
  886. local Color = hit.BrickColor
  887. local refpart = CreatePart(workspace, "SmoothPlastic", 0, 1, "Really black", "Effect", Vector3.new())
  888. refpart.Anchored = true
  889. refpart.CFrame = CFrame.new(pos)
  890. game:GetService("Debris"):AddItem(refpart, 1)
  891. CreateSound("http://www.roblox.com/asset/?id=199145477", refpart, .8, 1)
  892. for i = 1, 5 do
  893. local Color = hit.BrickColor
  894. local Materials = hit.Material
  895. local groundpart = CreatePart(workspace, "SmoothPlastic", 0, 0, Color, "Ground", Vector3.new(math.random(50, 100) / 100, math.random(50, 100) / 100, math.random(50, 100) / 100))
  896. groundpart.Anchored = false
  897. groundpart.Material = Materials
  898. groundpart.CanCollide = true
  899. groundpart.Friction = 0.1
  900. groundpart.Velocity = Vector3.new(math.random(-50, 50), math.random(25, 50), math.random(-50, 50))
  901. groundpart.CFrame = CFrame.new(pos) * CFrame.new(math.random(-250, 250) / 100, 0.5, math.random(-250, 250) / 100) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  902. game:GetService("Debris"):AddItem(groundpart, 10)
  903. end
  904. for i = 1, 6 do
  905. local Color = hit.BrickColor
  906. local Materials = hit.Material
  907. local actualgroundpart = CreatePart(workspace, "SmoothPlastic", 0, 0, Color, "Ground", Vector3.new(math.random(100, 200) / 100, math.random(100, 200) / 100, math.random(100, 200) / 100))
  908. actualgroundpart.Anchored = true
  909. actualgroundpart.Material = Materials
  910. actualgroundpart.CanCollide = true
  911. actualgroundpart.Friction = 1
  912. actualgroundpart.CFrame = CFrame.new(pos) * CFrame.new(math.random(-500, 500) / 100, 0, math.random(-500, 500) / 100) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  913. game:GetService("Debris"):AddItem(actualgroundpart, 10)
  914. end
  915. WaveEffect(hit.BrickColor, refpart.CFrame, .2, .2, .2, .5, .5, .5, .04)
  916. SphereEffect(hit.BrickColor, refpart.CFrame, .2, .2, .2, 3, 3, 3, .04)
  917. RingEffect(hit.BrickColor, refpart.CFrame * CFrame.Angles(math.random(5, 6), math.random(2, 7), math.random(3, 6)), .2, .2, .2, 1, 1, 1, .05)
  918. end
  919. attack = false
  920. end
  921.  
  922. function ShootCannon(asd)
  923. local MainPos = asd.Position
  924. local MainPos2 = mouse.Hit.p
  925. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  926. num = 100
  927. coroutine.resume(coroutine.create(function()
  928. repeat
  929. swait()
  930. local hit, pos = rayCast(MainPos, MouseLook.lookVector, 10, RootPart.Parent)
  931. local mag = (MainPos - pos).magnitude
  932. CylinderEffect(BrickColor.new("New Yeller"), CFrame.new((MainPos + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 3, mag * 5, 100, .1, 0, 1.5, 0.1)
  933. MainPos = MainPos + (MouseLook.lookVector * 10)
  934. num = num - 1
  935. if hit ~= nil then
  936. num = 0
  937. local ref = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new("New Yeller"), "Reference", Vector3.new())
  938. ref.Anchored = true
  939. ref.CFrame = CFrame.new(pos)
  940. BlockEffect(BrickColor.new("New Yeller"), CFrame.new(pos), 20, 20, 20, 5, 5, 5, 0.1)
  941. MagnitudeDamage(ref, 30, 25, 50, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
  942. game:GetService("Debris"):AddItem(ref, 1)
  943. end
  944. until num <= 0
  945. end))
  946. end
  947.  
  948. gun = false
  949.  
  950. shoot = false
  951.  
  952. gunidle = false
  953.  
  954. local Loaded = false
  955.  
  956. function GunStance()
  957. attack = true
  958. gun = true
  959. change = 3
  960. Barrel1.Transparency = 0
  961. Barrel2.Transparency = 0
  962. Choke1.Transparency = 0
  963. Choke2.Transparency = 0
  964. for i = 0, 1, 0.1 do
  965. swait()
  966. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .3)
  967. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-90)), .3)
  968. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .3)
  969. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  970. HandleWeld.C0 = clerp(HandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  971. if Torsovelocity < 1 then
  972. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .2)
  973. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .2)
  974. elseif Torsovelocity > 2 then
  975. RH.C0 = clerp(RH.C0, cn(1, -.8 - 0.3 * math.cos(sine / 10) / 2, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3)
  976. LH.C0 = clerp(LH.C0, cn(-1, -.8 + 0.3 * math.cos(sine / 10) / 2, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3)
  977. end
  978. end
  979. local offset = nil
  980. gunidle = true
  981. while gun == true do
  982. swait()
  983. local gunpos = Vector3.new(mouse.Hit.p.x, Head.Position.Y, mouse.Hit.p.z)
  984. offset = (Torso.Position.y - mouse.Hit.p.y) / 60
  985. local mag = (Torso.Position - mouse.Hit.p).magnitude / 80
  986. offset = offset / mag
  987. RW.C1 = clerp(RW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, offset), .5)
  988. if Torsovelocity < 1 then
  989. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .2)
  990. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .2)
  991. elseif Torsovelocity > 2 then
  992. RH.C0 = clerp(RH.C0, cn(1, -.8 - 0.3 * math.cos(sine / 10) / 2, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3)
  993. LH.C0 = clerp(LH.C0, cn(-1, -.8 + 0.3 * math.cos(sine / 10) / 2, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3)
  994. end
  995. end
  996. if shoot == true then
  997. gunidle = false
  998. CreateSound("rbxassetid://131632972", Torso, 1, 1.2)
  999. CreateSound("rbxassetid://131632972", Torso, 1, 1)
  1000. CreateSound("rbxassetid://131632972", Torso, 1, .7)
  1001. ShootCannon(Choke1)
  1002. ShootCannon(Choke2)
  1003. for i = 0, 1, 0.15 do
  1004. swait()
  1005. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .3)
  1006. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-90)), .3)
  1007. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.7, 0) * angles(math.rad(0), math.rad(0), math.rad(150)), .5)
  1008. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  1009. HandleWeld.C0 = clerp(HandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1010. if Torsovelocity < 1 then
  1011. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .2)
  1012. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .2)
  1013. elseif Torsovelocity > 2 then
  1014. RH.C0 = clerp(RH.C0, cn(1, -.8 - 0.3 * math.cos(sine / 10) / 2, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3)
  1015. LH.C0 = clerp(LH.C0, cn(-1, -.8 + 0.3 * math.cos(sine / 10) / 2, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3)
  1016. end
  1017. end
  1018. Loaded = false
  1019. end
  1020. RW.C1 = clerp(RW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), 1)
  1021. Barrel1.Transparency = 1
  1022. Barrel2.Transparency = 1
  1023. Choke1.Transparency = 1
  1024. Choke2.Transparency = 1
  1025. gun = false
  1026. gunidle = false
  1027. shoot = false
  1028. attack = false
  1029. end
  1030.  
  1031. function Disappear()
  1032. for _, i in pairs(m:children()) do
  1033. if i.Name == "BladePrt" then
  1034. coroutine.resume(coroutine.create(function(Part)
  1035. for i = 0, 1, 0.1 do
  1036. swait()
  1037. Part.Transparency = i
  1038. end
  1039. Part.Transparency = 1
  1040. end), i)
  1041. end
  1042. end
  1043. end
  1044.  
  1045.  
  1046. function Reappear()
  1047. for _, i in pairs(m:children()) do
  1048. if i.Name == "BladePrt" then
  1049. coroutine.resume(coroutine.create(function(Part)
  1050. for i = 0, 1, 0.1 do
  1051. swait()
  1052. Part.Transparency = i
  1053. end
  1054. Part.Transparency = 0
  1055. end), i)
  1056. end
  1057. end
  1058. end
  1059.  
  1060. function BladeEquip()
  1061. attack = true
  1062. for i = 0, 1, 0.15 do
  1063. swait()
  1064. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1065. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1066. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, 0) * angles(math.rad(210), math.rad(0), math.rad(30)), .5)
  1067. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)), .3)
  1068. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  1069. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  1070. end
  1071. CreateSound("http://roblox.com/asset/?id=199145327", FakeHandle, .6, 1)
  1072. HandleWeld:remove()
  1073. HandleWeld = CreateWeld(m, Character["Right Arm"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.032043457, 0.996201754, -0.111961365, 8.94076351e-008, 1.1920929e-007, 1, -1.49014454e-007, 1, -1.19209275e-007, -1, -1.4901444e-007, 8.94076564e-008))
  1074. for i = 0, 1, 0.1 do
  1075. swait()
  1076. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1077. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1078. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(80), math.rad(0), math.rad(70)), .3)
  1079. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)), .3)
  1080. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  1081. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  1082. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(90), math.rad(0), -6 * i), .3)
  1083. end
  1084. Reappear()
  1085. Mode = "Sword"
  1086. attack = false
  1087. end
  1088.  
  1089. function UnequipBlade()
  1090. attack = true
  1091. for i = 0, 1, 0.15 do
  1092. swait()
  1093. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1094. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1095. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, 0) * angles(math.rad(210), math.rad(0), math.rad(30)), .5)
  1096. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)), .3)
  1097. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  1098. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  1099. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(40), math.rad(-60)), .3)
  1100. end
  1101. Disappear()
  1102. HandleWeld:remove()
  1103. HandleWeld = CreateWeld(m, Character["Torso"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.57640076, -0.105987549, -0.672006607, 0.866025388, 0.500000119, -8.94076351e-008, -0.500000119, 0.866025388, 1.49014454e-007, 1.51936518e-007, -8.43464605e-008, 1))
  1104. Mode = "Normal"
  1105. attack = false
  1106. end
  1107.  
  1108. function BladeAttackOne()
  1109. attack = true
  1110. local Con1 = BladeHitbox.Touched:connect(function(hit)
  1111. Damage(hit.Parent, math.random(10, 45), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
  1112. end)
  1113. for i = 0, 1, 0.15 do
  1114. swait()
  1115. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(60)), .3)
  1116. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-60)), .3)
  1117. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, -.5) * angles(math.rad(0), math.rad(150), math.rad(120)), .3)
  1118. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -.7) * angles(math.rad(0), math.rad(70), math.rad(90)), .3)
  1119. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(-10), math.rad(30)), .3)
  1120. if Torsovelocity < 1 then
  1121. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(-30), math.rad(0)), .2)
  1122. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(-30), math.rad(0)), .2)
  1123. elseif Torsovelocity > 2 then
  1124. RH.C0 = clerp(RH.C0, cn(1, -1, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(-30), math.rad(0) - math.sin(sine / 10)), .3)
  1125. LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(-30), math.rad(0) - math.sin(sine / 10)), .3)
  1126. end
  1127. end
  1128. CreateSound("http://roblox.com/asset/?id=356430004", BladeHitbox, 1, .8)
  1129. for i = 0, 1, 0.15 do
  1130. swait()
  1131. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.1) * angles(math.rad(10), math.rad(0), math.rad(-60)), .4)
  1132. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-5), math.rad(-5), math.rad(60)), .4)
  1133. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, 0) * angles(math.rad(0), math.rad(70), math.rad(80)), .4)
  1134. LW.C0 = clerp(LW.C0, CFrame.new(-.4, 0.5, -1) * angles(math.rad(0), math.rad(20), math.rad(70)), .4)
  1135. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .4)
  1136. if Torsovelocity < 1 then
  1137. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(30), math.rad(0)), .2)
  1138. LH.C0 = clerp(LH.C0, cn(-1, -.9, 0) * LHCF * angles(math.rad(-5), math.rad(30), math.rad(-10)), .2)
  1139. elseif Torsovelocity > 2 then
  1140. RH.C0 = clerp(RH.C0, cn(1, -1, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(30), math.rad(0) - math.sin(sine / 10)), .3)
  1141. LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(30), math.rad(0) - math.sin(sine / 10)), .3)
  1142. end
  1143. end
  1144. Con1:disconnect()
  1145. attack = false
  1146. end
  1147.  
  1148. function BladeAttackTwo()
  1149. attack = true
  1150. local Con1 = BladeHitbox.Touched:connect(function(hit)
  1151. Damage(hit.Parent, math.random(10, 45), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
  1152. end)
  1153. for i = 0, 1, 0.15 do
  1154. swait()
  1155. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), .3)
  1156. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(60)), .3)
  1157. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.7) * angles(math.rad(0), math.rad(-70), math.rad(-90)), .3)
  1158. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, -.5) * angles(math.rad(0), math.rad(-150), math.rad(-120)), .3)
  1159. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(-10), math.rad(30)), .3)
  1160. if Torsovelocity < 1 then
  1161. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(30), math.rad(0)), .2)
  1162. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(30), math.rad(0)), .2)
  1163. elseif Torsovelocity > 2 then
  1164. RH.C0 = clerp(RH.C0, cn(1, -1, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(-0), math.rad(0) - math.sin(sine / 10)), .3)
  1165. LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(30), math.rad(0) - math.sin(sine / 10)), .3)
  1166. end
  1167. end
  1168. CreateSound("http://roblox.com/asset/?id=356430004", BladeHitbox, 1, 1)
  1169. for i = 0, 1, 0.15 do
  1170. swait()
  1171. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.1) * angles(math.rad(10), math.rad(0), math.rad(60)), .4)
  1172. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-5), math.rad(5), math.rad(-60)), .4)
  1173. RW.C0 = clerp(RW.C0, CFrame.new(.4, 0.5, -1) * angles(math.rad(0), math.rad(-20), math.rad(-70)), .4)
  1174. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.1, 0) * angles(math.rad(0), math.rad(-70), math.rad(-80)), .4)
  1175. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30), math.rad(80)), .4)
  1176. if Torsovelocity < 1 then
  1177. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(-30), math.rad(0)), .2)
  1178. LH.C0 = clerp(LH.C0, cn(-1, -.9, 0) * LHCF * angles(math.rad(-5), math.rad(-30), math.rad(-10)), .2)
  1179. elseif Torsovelocity > 2 then
  1180. RH.C0 = clerp(RH.C0, cn(1, -1, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(-30), math.rad(0) - math.sin(sine / 10)), .3)
  1181. LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(-30), math.rad(0) - math.sin(sine / 10)), .3)
  1182. end
  1183. end
  1184. Con1:disconnect()
  1185. attack = false
  1186. end
  1187.  
  1188. function BladeAttackThree()
  1189. attack = true
  1190. local Con1 = BladeHitbox.Touched:connect(function(hit)
  1191. Damage(hit.Parent, math.random(10, 45), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
  1192. end)
  1193. for i = 0, 1, 0.15 do
  1194. swait()
  1195. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), .34)
  1196. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .34)
  1197. RW.C0 = clerp(RW.C0, CFrame.new(1, 1, -.5) * angles(math.rad(120), math.rad(0), math.rad(-40)), .34)
  1198. LW.C0 = clerp(LW.C0, CFrame.new(-1, 1, -.5) * angles(math.rad(120), math.rad(0), math.rad(40)), .34)
  1199. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), .4)
  1200. if Torsovelocity < 1 then
  1201. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(-10)), .34)
  1202. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(10)), .34)
  1203. elseif Torsovelocity > 2 then
  1204. RH.C0 = clerp(RH.C0, cn(1, -1, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3)
  1205. LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3)
  1206. end
  1207. end
  1208. CreateSound("http://roblox.com/asset/?id=356430004", BladeHitbox, 1, .7)
  1209. for i = 0, 1, 0.13 do
  1210. swait()
  1211. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.3) * angles(math.rad(0), math.rad(0), math.rad(0)), .5)
  1212. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(0)), .5)
  1213. RW.C0 = clerp(RW.C0, CFrame.new(1, .3, -.3) * angles(math.rad(10), math.rad(0), math.rad(-40)), .5)
  1214. LW.C0 = clerp(LW.C0, CFrame.new(-1, .3, -.3) * angles(math.rad(10), math.rad(0), math.rad(40)), .5)
  1215. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(30)), .5)
  1216. if Torsovelocity < 1 then
  1217. RH.C0 = clerp(RH.C0, cn(1, -.8, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(-10)), .34)
  1218. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(10)), .34)
  1219. elseif Torsovelocity > 2 then
  1220. RH.C0 = clerp(RH.C0, cn(1, -.8, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3)
  1221. LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3)
  1222. end
  1223. end
  1224. Con1:disconnect()
  1225. attack = false
  1226. end
  1227.  
  1228. function BladeAttackFour()
  1229. attack = true
  1230. local Con1 = BladeHitbox.Touched:connect(function(hit)
  1231. Damage(hit.Parent, math.random(10, 45), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
  1232. end)
  1233. for i = 1,2 do
  1234. for i = 0, 1, 0.3 do
  1235. swait()
  1236. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(60)), .5)
  1237. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-60)), .5)
  1238. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, -.5) * angles(math.rad(0), math.rad(150), math.rad(120)), .5)
  1239. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -.7) * angles(math.rad(0), math.rad(70), math.rad(90)), .5)
  1240. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(-10), math.rad(30)), .5)
  1241. if Torsovelocity < 1 then
  1242. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(-30), math.rad(0)), .5)
  1243. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(-30), math.rad(0)), .5)
  1244. elseif Torsovelocity > 2 then
  1245. RH.C0 = clerp(RH.C0, cn(1, -1, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(-30), math.rad(0) - math.sin(sine / 10)), .5)
  1246. LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(-30), math.rad(0) - math.sin(sine / 10)), .5)
  1247. end
  1248. end
  1249. CreateSound("http://roblox.com/asset/?id=356430004", BladeHitbox, 1, 1)
  1250. for i = 0, 1, 0.3 do
  1251. swait()
  1252. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.1) * angles(math.rad(10), math.rad(0), math.rad(-60)), .4)
  1253. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-5), math.rad(-5), math.rad(60)), .4)
  1254. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, 0) * angles(math.rad(0), math.rad(70), math.rad(80)), .4)
  1255. LW.C0 = clerp(LW.C0, CFrame.new(-.4, 0.5, -1) * angles(math.rad(0), math.rad(20), math.rad(70)), .4)
  1256. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .4)
  1257. if Torsovelocity < 1 then
  1258. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(30), math.rad(0)), .2)
  1259. LH.C0 = clerp(LH.C0, cn(-1, -.9, 0) * LHCF * angles(math.rad(-5), math.rad(30), math.rad(-10)), .2)
  1260. elseif Torsovelocity > 2 then
  1261. RH.C0 = clerp(RH.C0, cn(1, -1, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(30), math.rad(0) - math.sin(sine / 10)), .3)
  1262. LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(30), math.rad(0) - math.sin(sine / 10)), .3)
  1263. end
  1264. end
  1265. for i = 0, 1, 0.3 do
  1266. swait()
  1267. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), .5)
  1268. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(60)), .5)
  1269. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.7) * angles(math.rad(0), math.rad(-70), math.rad(-110)), .5)
  1270. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, -.5) * angles(math.rad(0), math.rad(-150), math.rad(-120)), .5)
  1271. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(-10), math.rad(30)), .5)
  1272. if Torsovelocity < 1 then
  1273. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(30), math.rad(0)), .5)
  1274. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(30), math.rad(0)), .5)
  1275. elseif Torsovelocity > 2 then
  1276. RH.C0 = clerp(RH.C0, cn(1, -1, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(-0), math.rad(0) - math.sin(sine / 10)), .5)
  1277. LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(30), math.rad(0) - math.sin(sine / 10)), .5)
  1278. end
  1279. end
  1280. CreateSound("http://roblox.com/asset/?id=356430004", BladeHitbox, 1, .8)
  1281. for i = 0, 1, 0.3 do
  1282. swait()
  1283. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.1) * angles(math.rad(10), math.rad(0), math.rad(60)), .4)
  1284. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-5), math.rad(5), math.rad(-60)), .4)
  1285. RW.C0 = clerp(RW.C0, CFrame.new(.4, 0.5, -1) * angles(math.rad(0), math.rad(-20), math.rad(-70)), .4)
  1286. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.1, 0) * angles(math.rad(0), math.rad(-70), math.rad(-80)), .4)
  1287. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30), math.rad(80)), .4)
  1288. if Torsovelocity < 1 then
  1289. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(-30), math.rad(0)), .2)
  1290. LH.C0 = clerp(LH.C0, cn(-1, -.9, 0) * LHCF * angles(math.rad(-5), math.rad(-30), math.rad(-10)), .2)
  1291. elseif Torsovelocity > 2 then
  1292. RH.C0 = clerp(RH.C0, cn(1, -1, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(-30), math.rad(0) - math.sin(sine / 10)), .3)
  1293. LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(-30), math.rad(0) - math.sin(sine / 10)), .3)
  1294. end
  1295. end
  1296. end
  1297. Con1:disconnect()
  1298. attack = false
  1299. end
  1300.  
  1301. --[[Attacks]]--
  1302.  
  1303. mouse.Button1Down:connect(function()
  1304. if attack == false and attacktype == 1 and equipped == true and Mode == "Normal" then
  1305. attacktype = 2
  1306. attackone()
  1307. elseif attack == false and attacktype == 2 and equipped == true and Mode == "Normal" then
  1308. attacktype = 3
  1309. attacktwo()
  1310. elseif attack == false and attacktype == 3 and equipped == true and Mode == "Normal" then
  1311. attacktype = 4
  1312. attackthree()
  1313. elseif attack == false and attacktype == 4 and equipped == true and Mode == "Normal" then
  1314. attacktype = 1
  1315. attackfour()
  1316. end
  1317. if attack == false and attacktype == 1 and equipped == true and Mode == "Sword" then
  1318. attacktype = 2
  1319. BladeAttackOne()
  1320. elseif attack == false and attacktype == 2 and equipped == true and Mode == "Sword" then
  1321. attacktype = 3
  1322. BladeAttackTwo()
  1323. elseif attack == false and attacktype == 3 and equipped == true and Mode == "Sword" then
  1324. attacktype = 4
  1325. BladeAttackThree()
  1326. elseif attack == false and attacktype == 4 and equipped == true and Mode == "Sword" then
  1327. attacktype = 1
  1328. BladeAttackFour()
  1329. end
  1330. if gun == true and shoot == false and equipped == true then
  1331. shoot = true
  1332. gun = false
  1333. end
  1334. end)
  1335.  
  1336. mouse.KeyDown:connect(function(k)
  1337. k = k:lower()
  1338. if attack == false and equipped == false and k == 'f' and Mode == "Normal" then
  1339. Equip()
  1340. elseif attack == false and equipped == true and k == 'f' and Mode == "Normal" then
  1341. Unequip()
  1342. elseif attack == false and equipped == true and Mode == "Normal" and k == 'g' then
  1343. BladeEquip()
  1344. elseif attack == false and equipped == true and Mode == "Sword" and k == 'g' then
  1345. UnequipBlade()
  1346. elseif k == 'e' and gun == false and shoot == false and Mode == "Normal" and attack == false and equipped == true then
  1347. GunStance()
  1348. elseif k == 'e' and shoot == false and equipped == true and Mode == "Normal" then
  1349. if gun == true then
  1350. gun = false
  1351. end
  1352. end
  1353. end)
  1354.  
  1355. --[[ Credits to Fenrier for the Movement Detection and Effects table. ]]--
  1356.  
  1357. while true do
  1358. swait()
  1359. for i, v in pairs(Character:GetChildren()) do
  1360. if v:IsA("Part") then
  1361. v.Material = "SmoothPlastic"
  1362. elseif v:IsA("Hat") then
  1363. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1364. end
  1365. end
  1366. if gun == true then
  1367. local aim = CFrame.new(RootPart.Position, mouse.Hit.p)
  1368. local direction = aim.lookVector
  1369. local headingA = math.atan2(direction.x, direction.z)
  1370. headingA = math.deg(headingA)
  1371. Humanoid.AutoRotate = false
  1372. RootPart.CFrame = CFrame.new(RootPart.Position) * angles(math.rad(0), math.rad(headingA - 180), math.rad(0))
  1373. else
  1374. Humanoid.AutoRotate = true
  1375. end
  1376. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1377. velocity = RootPart.Velocity.y
  1378. sine = sine + change
  1379. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1380. if equipped == true then
  1381. if RootPart.Velocity.y > 1 and hit == nil then
  1382. Anim = "Jump"
  1383. if attack == false then
  1384. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1385. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-10), math.rad(0), math.rad(0)), .3)
  1386. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)), .3)
  1387. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), .3)
  1388. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(-20)), .3)
  1389. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(20)), .3)
  1390. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1391. end
  1392. elseif RootPart.Velocity.y < -1 and hit == nil then
  1393. Anim = "Fall"
  1394. if attack == false then
  1395. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1396. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(30), math.rad(0), math.rad(0)), .3)
  1397. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1398. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .3)
  1399. RH.C0 = clerp(RH.C0, cn(1, -.8, 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(20)), .3)
  1400. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(-20)), .3)
  1401. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1402. end
  1403. elseif Torsovelocity < 1 and hit ~= nil then
  1404. Anim = "Idle"
  1405. if attack == false and Mode == "Normal" then
  1406. change = 1
  1407. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.1 + .1 * math.sin(sine / 27)) * angles(math.rad(0), math.rad(0), math.rad(30)), .3)
  1408. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 + 3 * math.cos(sine / 23)), math.rad(-2 - 3 * math.cos(sine / 23)), math.rad(-30)), .3)
  1409. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.6 + .07 * math.cos(sine / 23), -.2) * angles(math.rad(110 + 2 * math.cos(sine / 24)), math.rad(35 + 3 * math.cos(sine / 23)), math.rad(-30)), .3)
  1410. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.6 + .07 * math.cos(sine / 23), -.5) * angles(math.rad(120 + 2 * math.cos(sine / 24)), math.rad(-40 + 3 * math.cos(sine / 23)), math.rad(40)), .3)
  1411. RH.C0 = clerp(RH.C0, cn(1, -.9 - .1 * math.sin(sine / 27), 0) * RHCF * angles(math.rad(-4 + 1 * math.cos(sine / 23)), math.rad(-30), math.rad(0)), .3)
  1412. LH.C0 = clerp(LH.C0, cn(-1, -.9 - .1 * math.sin(sine / 27), 0) * LHCF * angles(math.rad(-4 + 1 * math.cos(sine / 23)), math.rad(-30), math.rad(0)), .3)
  1413. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1414. elseif attack == false and Mode == "Sword" then
  1415. change = 1
  1416. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.1 + .1 * math.sin(sine / 27)) * angles(math.rad(0), math.rad(0), math.rad(-60)), .3)
  1417. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 + 3 * math.cos(sine / 23)), math.rad(-2 + 3 * math.cos(sine / 23)), math.rad(60)), .3)
  1418. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.6, 0) * angles(math.rad(150 + 3 * math.cos(sine / 23)), math.rad(0), math.rad(10)), 0.3)
  1419. LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.5, 0) * angles(math.rad(10 + 2 * math.cos(sine / 23)), math.rad(0), math.rad(-20 - 5 * math.cos(sine / 23))), 0.3)
  1420. RH.C0 = clerp(RH.C0, cn(1, -.9 - .1 * math.sin(sine / 27), 0) * RHCF * angles(math.rad(-4 + 1 * math.cos(sine / 23)), math.rad(20), math.rad(0)), .3)
  1421. LH.C0 = clerp(LH.C0, cn(-1, -.9 - .1 * math.sin(sine / 27), 0) * LHCF * angles(math.rad(-4 + 1 * math.cos(sine / 23)), math.rad(20), math.rad(0)), .3)
  1422. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), .3)
  1423. end
  1424. elseif Torsovelocity > 2 and hit ~= nil then
  1425. Anim = "Walk"
  1426. if attack == false and Mode == "Normal" then
  1427. change = 3
  1428. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.2) * angles(math.rad(30), math.rad(0), math.rad(5 * math.cos(sine / 10) / 2)), .3)
  1429. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-20), math.rad(0), math.rad(-5 * math.cos(sine / 10) / 2)), .3)
  1430. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.6 + .07 * math.cos(sine / 23), -.2) * angles(math.rad(110), math.rad(40), math.rad(-40)), .3)
  1431. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6 + .07 * math.cos(sine / 23), -.2) * angles(math.rad(110), math.rad(-40), math.rad(40)), .3)
  1432. RH.C0 = clerp(RH.C0, cn(1, -.8 - 0.3 * math.cos(sine / 8) / 2, -.05 + math.sin(sine / 8) / 2) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(10) - math.sin(sine / 8)), .3)
  1433. LH.C0 = clerp(LH.C0, cn(-1, -.8 + 0.3 * math.cos(sine / 8) / 2, -.05 - math.sin(sine / 8) / 2) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(-10) - math.sin(sine / 8)), .3)
  1434. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1435. elseif attack == false and Mode == "Sword" then
  1436. change = 3
  1437. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.1 + .1 * math.sin(sine / 27)) * angles(math.rad(15), math.rad(0), math.rad(-60 + 10 * math.cos(sine / 13))), .3)
  1438. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-5), math.rad(-5), math.rad(60 - 10 * math.cos(sine / 13))), .3)
  1439. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -.5) * angles(math.rad(150 + 3 * math.cos(sine / 23)), math.rad(0), math.rad(-20)), 0.3)
  1440. LW.C0 = clerp(LW.C0, CFrame.new(-.3, 0.7, -1) * angles(math.rad(150 + 2 * math.cos(sine / 23)), math.rad(0), math.rad(40)), 0.3)
  1441. RH.C0 = clerp(RH.C0, cn(1, -1 - 0.3 * math.cos(sine / 8) / 2, -.05 + math.sin(sine / 8) / 2) * RHCF * angles(math.rad(-4), math.rad(40), math.rad(10) - math.sin(sine / 8)), .3)
  1442. LH.C0 = clerp(LH.C0, cn(-1, -.8 + 0.3 * math.cos(sine / 8) / 2, -.05 - math.sin(sine / 8) / 2) * LHCF * angles(math.rad(-4), math.rad(40), math.rad(-10) - math.sin(sine / 8)), .3)
  1443. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), .3)
  1444. end
  1445. end
  1446. end
  1447. if #Effects > 0 then
  1448. for e = 1, #Effects do
  1449. if Effects[e] ~= nil then
  1450. local Thing = Effects[e]
  1451. if Thing ~= nil then
  1452. local Part = Thing[1]
  1453. local Mode = Thing[2]
  1454. local Delay = Thing[3]
  1455. local IncX = Thing[4]
  1456. local IncY = Thing[5]
  1457. local IncZ = Thing[6]
  1458. if Thing[1].Transparency <= 1 then
  1459. if Thing[2] == "Block1" then
  1460. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1461. Mesh = Thing[1].Mesh
  1462. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1463. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1464. elseif Thing[2] == "Block2" then
  1465. Thing[1].CFrame = Thing[1].CFrame
  1466. Mesh = Thing[7]
  1467. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1468. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1469. elseif Thing[2] == "Cylinder" then
  1470. Mesh = Thing[1].Mesh
  1471. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1472. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1473. elseif Thing[2] == "Blood" then
  1474. Mesh = Thing[7]
  1475. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
  1476. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1477. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1478. elseif Thing[2] == "Elec" then
  1479. Mesh = Thing[1].Mesh
  1480. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1481. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1482. elseif Thing[2] == "Disappear" then
  1483. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1484. elseif Thing[2] == "Shatter" then
  1485. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1486. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1487. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1488. Thing[6] = Thing[6] + Thing[5]
  1489. end
  1490. else
  1491. Part.Parent = nil
  1492. table.remove(Effects, e)
  1493. end
  1494. end
  1495. end
  1496. end
  1497. end
  1498. end
  1499. --[[NIGHTOWLACE_WEAPONRY]]--
  1500. wait(1 / 60)
  1501. Effects = { }
  1502. local Player = game.Players.localPlayer
  1503. local Character = Player.Character
  1504. local Humanoid = Character.Humanoid
  1505. Humanoid.WalkSpeed = 25
  1506. local mouse = Player:GetMouse()
  1507. local m = Instance.new('Model', Character)
  1508. m.Name = "WeaponModel"
  1509. local LeftArm = Character["Left Arm"]
  1510. local RightArm = Character["Right Arm"]
  1511. local LeftLeg = Character["Left Leg"]
  1512. local RightLeg = Character["Right Leg"]
  1513. local Head = Character.Head
  1514. local Torso = Character.Torso
  1515. local cam = game.Workspace.CurrentCamera
  1516. local RootPart = Character.HumanoidRootPart
  1517. local RootJoint = RootPart.RootJoint
  1518. local equipped = false
  1519. local attack = false
  1520. local Anim = 'Idle'
  1521. local idle = 0
  1522. local attacktype = 1
  1523. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1524. local velocity = RootPart.Velocity.y
  1525. local sine = 0
  1526. local change = 1
  1527. local grabbed = false
  1528. local cn = CFrame.new
  1529. local mr = math.rad
  1530. local angles = CFrame.Angles
  1531. local ud = UDim2.new
  1532. local c3 = Color3.new
  1533.  
  1534. local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1535.  
  1536. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  1537. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  1538. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  1539.  
  1540. function clerp(a, b, t)
  1541. return a:lerp(b, t)
  1542. end
  1543.  
  1544. --[[Credits to SazErenos for his Artificial Heartbeat]]--
  1545.  
  1546. ArtificialHB = Instance.new("BindableEvent", script)
  1547. ArtificialHB.Name = "Heartbeat"
  1548.  
  1549. script:WaitForChild("Heartbeat")
  1550.  
  1551. frame = 1 / 30
  1552. tf = 0
  1553. allowframeloss = false
  1554. tossremainder = false
  1555. lastframe = tick()
  1556. script.Heartbeat:Fire()
  1557.  
  1558. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1559. tf = tf + s
  1560. if tf >= frame then
  1561. if allowframeloss then
  1562. script.Heartbeat:Fire()
  1563. lastframe = tick()
  1564. else
  1565. for i = 1, math.floor(tf / frame) do
  1566. script.Heartbeat:Fire()
  1567. end
  1568. lastframe = tick()
  1569. end
  1570. if tossremainder then
  1571. tf = 0
  1572. else
  1573. tf = tf - frame * math.floor(tf / frame)
  1574. end
  1575. end
  1576. end)
  1577.  
  1578. function swait(num)
  1579. if num == 0 or num == nil then
  1580. ArtificialHB.Event:wait()
  1581. else
  1582. for i = 0, num do
  1583. ArtificialHB.Event:wait()
  1584. end
  1585. end
  1586. end
  1587.  
  1588. local RbxUtility = LoadLibrary("RbxUtility")
  1589. local Create = RbxUtility.Create
  1590.  
  1591. --[[ Credits to Fenrier for Outline-Remover, Part, Mesh, Weld, Raycase and Sound Creation functions ]]--
  1592.  
  1593. function RemoveOutlines(part)
  1594. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1595. end
  1596.  
  1597. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1598. local Part = Create("Part"){
  1599. Parent = Parent,
  1600. Reflectance = Reflectance,
  1601. Transparency = Transparency,
  1602. CanCollide = false,
  1603. Locked = true,
  1604. BrickColor = BrickColor.new(tostring(BColor)),
  1605. Name = Name,
  1606. Size = Size,
  1607. Material = Material,
  1608. }
  1609. RemoveOutlines(Part)
  1610. return Part
  1611. end
  1612.  
  1613. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1614. local Msh = Create(Mesh){
  1615. Parent = Part,
  1616. Offset = OffSet,
  1617. Scale = Scale,
  1618. }
  1619. if Mesh == "SpecialMesh" then
  1620. Msh.MeshType = MeshType
  1621. Msh.MeshId = MeshId
  1622. end
  1623. return Msh
  1624. end
  1625.  
  1626. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1627. local Weld = Create("Weld"){
  1628. Parent = Parent,
  1629. Part0 = Part0,
  1630. Part1 = Part1,
  1631. C0 = C0,
  1632. C1 = C1,
  1633. }
  1634. return Weld
  1635. end
  1636.  
  1637. function CreateBillBoardGui(Img, Pos, Siz) --returns a basic billboard gui object for further manipulation
  1638. local billpar = Create("Part"){
  1639. Transparency = 1,
  1640. Size = Vector3.new(1, 1, 1),
  1641. Anchored = true,
  1642. CanCollide = false,
  1643. CFrame = CFrame.new(Pos),
  1644. Name = "BillboardGuiPart",
  1645. }
  1646. local bill = Create("BillboardGui"){
  1647. Parent = billpar,
  1648. Adornee = billpar,
  1649. Size = UDim2.new(1, 0, 1, 0),
  1650. SizeOffset = Vector2.new(Siz, Siz),
  1651. }
  1652. local d = Create("ImageLabel"){
  1653. Parent = bill,
  1654. BackgroundTransparency = 1,
  1655. Size = UDim2.new(1, 0, 1, 0),
  1656. Image = Img,
  1657. }
  1658. return billpar
  1659. end
  1660.  
  1661. function rayCast(Position, Direction, Range, Ignore)
  1662. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  1663. end
  1664.  
  1665. function CreateSound(id, par, vol, pit)
  1666. coroutine.resume(coroutine.create(function()
  1667. local S = Create("Sound"){
  1668. Volume = vol,
  1669. Pitch = pit or 1,
  1670. SoundId = id,
  1671. Parent = par or workspace,
  1672. }
  1673. swait()
  1674. S:play()
  1675. game:GetService("Debris"):AddItem(S, 6)
  1676. end))
  1677. end
  1678.  
  1679. local function GetNearest(obj, distance)
  1680. local last, lastx = distance + 1
  1681. for i, v in pairs(workspace:GetChildren()) do
  1682. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  1683. local t = v.Torso
  1684. local dist = (t.Position - obj.Position).magnitude
  1685. if dist <= distance then
  1686. if dist < last then
  1687. last = dist
  1688. lastx = v
  1689. end
  1690. end
  1691. end
  1692. end
  1693. return lastx
  1694. end
  1695.  
  1696. --[[ Credits to Kert109 (Ninja_Deer) for the Damage function. Fenrier for the Magnitude Damage ]]--
  1697.  
  1698. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  1699. for i, v in pairs(hit:GetChildren()) do
  1700. if v:IsA("Humanoid") and hit.Name ~= Character.Name then
  1701. local find = v:FindFirstChild("DebounceHit")
  1702. if not find then
  1703. if v.Parent:findFirstChild("Head") then
  1704. local BillG = Create("BillboardGui"){
  1705. Parent = v.Parent.Head,
  1706. Size = UDim2.new(1, 0, 1, 0),
  1707. Adornee = v.Parent.Head,
  1708. StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  1709. }
  1710. local TL = Create("TextLabel"){
  1711. Parent = BillG,
  1712. Size = UDim2.new(3, 3, 3, 3),
  1713. BackgroundTransparency = 1,
  1714. Text = tostring(damage).."-",
  1715. TextColor3 = Color1.Color,
  1716. TextStrokeColor3 = Color2.Color,
  1717. TextStrokeTransparency = 0,
  1718. TextXAlignment = Enum.TextXAlignment.Center,
  1719. TextYAlignment = Enum.TextYAlignment.Center,
  1720. FontSize = Enum.FontSize.Size18,
  1721. Font = "ArialBold",
  1722. }
  1723. coroutine.resume(coroutine.create(function()
  1724. swait(1)
  1725. for i = 0, 1, .1 do
  1726. swait(.1)
  1727. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  1728. end
  1729. BillG:Destroy()
  1730. end))
  1731. end
  1732. v.Health = v.Health - damage
  1733. local bool = Create("BoolValue"){
  1734. Parent = v,
  1735. Name = "DebounceHit",
  1736. }
  1737. if HSound ~= nil and HPitch ~= nil then
  1738. CreateSound(HSound, hit, 1, HPitch)
  1739. end
  1740. game:GetService("Debris"):AddItem(bool, cooldown)
  1741. end
  1742. end
  1743. end
  1744. end
  1745.  
  1746. function MagnitudeDamage(Part, magni, mindam, maxdam, Color1, Color2, HSound, HPitch)
  1747. for _, c in pairs(workspace:children()) do
  1748. local hum = c:findFirstChild("Humanoid")
  1749. if hum ~= nil then
  1750. local head = c:findFirstChild("Torso")
  1751. if head ~= nil then
  1752. local targ = head.Position - Part.Position
  1753. local mag = targ.magnitude
  1754. if mag <= magni and c.Name ~= Player.Name then
  1755. Damage(head.Parent, math.random(mindam, maxdam), 0.5, Color1, Color2, HSound, HPitch)
  1756. end
  1757. end
  1758. end
  1759. end
  1760. end
  1761.  
  1762. Handle = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "Handle", Vector3.new(3.20000005, 0.320000023, 0.200000003))
  1763. HandleWeld = CreateWeld(m, Character["Torso"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.57640076, -0.105987549, -0.672006607, 0.866025388, 0.500000119, -8.94076351e-008, -0.500000119, 0.866025388, 1.49014454e-007, 1.51936518e-007, -8.43464605e-008, 1))
  1764. CreateMesh("BlockMesh", Handle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.800000072))
  1765. FakeHandle = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "FakeHandle", Vector3.new(1.92000008, 0.320000023, 0.200000003))
  1766. FakeHandleWeld = CreateWeld(m, Handle, FakeHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012, 0, 0, 0, 1))
  1767. BladeHitbox = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "BladeHitbox", Vector3.new(6.87999964, 1.28000009, 0.320000023))
  1768. BladeHitboxWeld = CreateWeld(m, FakeHandle, BladeHitbox, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(5.83992767, 7.62939453e-006, 0.00178432465, 1.00000012, 0, 1.78815313e-007, 0, -1.00000012, 2.0861782e-007, 1.78815299e-007, -2.0861782e-007, -1))
  1769. BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "BladePrt", Vector3.new(6.71999979, 0.640000045, 0.200000003))
  1770. BladePrtWeld = CreateWeld(m, FakeHandle, BladePrt, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.75999451, 0.320018768, -9.53674316e-007, -1.00000012, 0, -6.70215812e-008, 0, -1.00000012, 3.87433118e-007, -6.70215812e-008, 3.87433118e-007, 1))
  1771. CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.0104, 0.0104, 0.00800000038))
  1772. BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "BladePrt", Vector3.new(4.96000051, 0.320000023, 0.480000019))
  1773. BladePrtWeld = CreateWeld(m, FakeHandle, BladePrt, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.35999298, 0.176017761, -9.53674316e-007, -1.00000012, 0, -8.74827464e-008, 0, -1.00000012, 4.61938924e-007, -8.74827464e-008, 4.61938953e-007, 1))
  1774. CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.00879999995, 0.00560000027, 0.0160000008))
  1775. BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "BladePrt", Vector3.new(6.71999979, 0.320000023, 0.200000003))
  1776. BladePrtWeld = CreateWeld(m, FakeHandle, BladePrt, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.75999451, 0.159992218, 9.53674316e-007, -1, 1.49011612e-007, -9.26303798e-008, 1.49011612e-007, 1, -4.17235356e-007, 9.26303159e-008, -4.17235412e-007, -1))
  1777. CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.00960000046, 0.00520000001, 0.00960000046))
  1778. BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "BladePrt", Vector3.new(6.71999979, 0.320000023, 0.200000003))
  1779. BladePrtWeld = CreateWeld(m, FakeHandle, BladePrt, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.75999451, 0.160015106, 0, -1.00000012, 0, -8.7701622e-008, 0, -1.00000012, 3.87433118e-007, -8.7701622e-008, 3.87433118e-007, 1))
  1780. CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.00960000046, 0.00520000001, 0.00960000046))
  1781. BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "BladePrt", Vector3.new(4.32000065, 0.200000003, 0.480000019))
  1782. BladePrtWeld = CreateWeld(m, FakeHandle, BladePrt, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.5599823, 0.0879821777, 0, -1.00000012, 0, -8.89660754e-008, 0, 1.00000012, -5.36444873e-007, 8.89660896e-008, -5.36444816e-007, -1))
  1783. CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.0064000003, 0.00320000015, 0.0200000014))
  1784. BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "BladePrt", Vector3.new(4.96000004, 0.320000023, 0.480000019))
  1785. BladePrtWeld = CreateWeld(m, FakeHandle, BladePrt, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.36000061, 0.167987823, 9.53674316e-007, -1, 1.49011612e-007, -9.26303798e-008, 1.49011612e-007, 1, -4.17235356e-007, 9.26303159e-008, -4.17235412e-007, -1))
  1786. CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.00879999995, 0.00560000027, 0.0160000008))
  1787. BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "BladePrt", Vector3.new(6.71999979, 0.640000045, 0.200000003))
  1788. BladePrtWeld = CreateWeld(m, FakeHandle, BladePrt, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.76000214, 0.319988251, -9.53674316e-007, -1.00000012, 2.68220901e-007, -1.42108547e-014, 2.68220901e-007, 1.00000012, -2.9802888e-007, -6.59472477e-014, -2.9802888e-007, -1))
  1789. CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.0104, 0.0104, 0.00800000038))
  1790. BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "BladePrt", Vector3.new(4.32000065, 0.200000003, 0.480000019))
  1791. BladePrtWeld = CreateWeld(m, FakeHandle, BladePrt, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.5599823, 0.112014771, -9.53674316e-007, -1.00000012, 0, -8.74827464e-008, 0, -1.00000012, 4.61938924e-007, -8.74827464e-008, 4.61938953e-007, 1))
  1792. CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.0064000003, 0.00320000015, 0.0200000014))
  1793. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  1794. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.59932709, 0.159358978, 1.23977661e-005, 1.00000012, 0, 0, 0, -1.00000012, 0, 0, 0, -1))
  1795. CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(0.800000072, 0.800000072, 0.800000072))
  1796. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.320000023, 0.200000003, 0.200000003))
  1797. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.59998322, 0.0799942017, -9.53674316e-007, -1, 1.49011612e-007, -9.10118445e-007, 1.49011612e-007, 1, -5.66248389e-007, 9.10118445e-007, -5.66248559e-007, -1))
  1798. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
  1799. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  1800. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.59931946, -0.160633087, 1.23977661e-005, 1.00000012, 0, 0, 0, -1.00000012, 0, 0, 0, -1))
  1801. CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(0.800000072, 0.800000072, 0.800000072))
  1802. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(3.20000005, 0.200000003, 0.200000003))
  1803. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-7.62939453e-006, 0.079990387, 0, 1.00000012, 0, 0, 0, 1.00000012, 0, 0, 0, 1))
  1804. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
  1805. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.200000003, 0.960000038, 0.320000023))
  1806. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.83992767, 1.14440918e-005, 0.00178432465, 1.00000012, 0, 1.78815313e-007, 0, -1.00000012, 2.0861782e-007, 1.78815299e-007, -2.0861782e-007, -1))
  1807. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.800000072, 1, 1))
  1808. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.320000023, 3.20000005, 0.200000003))
  1809. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.160007477, 7.62939453e-006, 0, 0, -1.00000012, 0, -1.00000012, 0, 1.42108547e-014, -1.42108547e-014, 7.10542736e-015, -1))
  1810. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.800000072))
  1811. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(3.20000005, 0.200000003, 0.200000003))
  1812. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.0800018311, 0, 1.00000012, 0, 0, 0, 1.00000012, 0, 0, 0, 1))
  1813. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
  1814. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.320000023, 0.200000003, 0.200000003))
  1815. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.320007324, 1.6799469, -1.90734863e-006, -5.66244125e-007, -1, 5.23353265e-007, 1, -5.66244125e-007, 7.59964848e-007, -7.59964678e-007, 5.23353719e-007, 1))
  1816. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
  1817. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.320000023, 0.200000003, 0.200000003))
  1818. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.59998322, -0.0799980164, -9.53674316e-007, -1, 1.49011612e-007, -9.10118445e-007, 1.49011612e-007, 1, -5.66248389e-007, 9.10118445e-007, -5.66248559e-007, -1))
  1819. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
  1820. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.320000023, 0.200000003, 0.200000003))
  1821. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.319988251, 1.67993927, -1.90734863e-006, -5.66244125e-007, -1, 5.23353265e-007, 1, -5.66244125e-007, 7.59964848e-007, -7.59964678e-007, 5.23353719e-007, 1))
  1822. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
  1823. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.320000023, 3.20000005, 0.200000003))
  1824. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.159992218, 1.52587891e-005, 0, 0, -1.00000012, 0, -1.00000012, 0, 1.42108547e-014, -1.42108547e-014, 7.10542736e-015, -1))
  1825. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.800000072))
  1826. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.320000023, 0.320000023, 0.320000023))
  1827. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.480003357, -2.07992554, 0.00178527832, 3.87430191e-007, -1, 8.24703648e-007, -1, -3.87430191e-007, -7.15261194e-007, 7.15261535e-007, -8.2470342e-007, -1))
  1828. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1829. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.320000023, 0.200000003, 0.320000023))
  1830. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.480003357, -1.8399353, 0.00178527832, 3.87430191e-007, -1, 8.24703648e-007, -1, -3.87430191e-007, -7.15261194e-007, 7.15261535e-007, -8.2470342e-007, -1))
  1831. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 1))
  1832. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.320000023, 0.320000023, 0.320000023))
  1833. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.479980469, -2.07992554, 0.00178527832, 3.87430191e-007, -1, 8.24703648e-007, -1, -3.87430191e-007, -7.15261194e-007, 7.15261535e-007, -8.2470342e-007, -1))
  1834. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1835. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.320000023, 0.960000038, 0.320000023))
  1836. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.07992554, 1.52587891e-005, 0.00178432465, 1.00000012, 0, 1.78815313e-007, 0, -1.00000012, 2.0861782e-007, 1.78815299e-007, -2.0861782e-007, -1))
  1837. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.320000023, 0.200000003, 0.320000023))
  1838. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.480003357, -2.3199234, 0.00178527832, 3.87430191e-007, -1, 8.24703648e-007, -1, -3.87430191e-007, -7.15261194e-007, 7.15261535e-007, -8.2470342e-007, -1))
  1839. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 1))
  1840. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.200000003, 0.960000038, 0.320000023))
  1841. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.31991577, 1.14440918e-005, 0.00178432465, 1.00000012, 0, 1.78815313e-007, 0, -1.00000012, 2.0861782e-007, 1.78815299e-007, -2.0861782e-007, -1))
  1842. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.800000072, 1, 1))
  1843. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.320000023, 0.200000003, 0.320000023))
  1844. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.479984283, -1.8399353, 0.00178527832, 3.87430191e-007, -1, 8.24703648e-007, -1, -3.87430191e-007, -7.15261194e-007, 7.15261535e-007, -8.2470342e-007, -1))
  1845. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 1))
  1846. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.320000023, 0.200000003, 0.320000023))
  1847. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.479980469, -2.3199234, 0.00178527832, 3.87430191e-007, -1, 8.24703648e-007, -1, -3.87430191e-007, -7.15261194e-007, 7.15261535e-007, -8.2470342e-007, -1))
  1848. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 1))
  1849. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.200000003, 0.640000045, 0.200000003))
  1850. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.67993164, 7.62939453e-006, 0, 1.00000012, 0, 1.78815313e-007, 0, -1.00000012, 2.0861782e-007, 1.78815299e-007, -2.0861782e-007, -1))
  1851. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.800000072, 1, 0.800000072))
  1852. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.351999998, 0.200000003, 0.200000003))
  1853. WedgeWeld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00178337097, 1.41417694, 1.52728844, -8.94076351e-008, 1.49014454e-007, 1, 0.707107067, -0.70710665, 1.68589878e-007, 0.70710665, 0.707107067, -4.21484252e-008))
  1854. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
  1855. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.351999998, 0.200000003, 0.200000003))
  1856. WedgeWeld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00178337097, -1.52731323, -1.41415596, -8.94076351e-008, 1.49014454e-007, 1, -0.707106829, 0.707106829, -1.68589878e-007, -0.707106829, -0.707106829, 4.2148379e-008))
  1857. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
  1858. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(0.336000025, 0.200000003, 0.200000003))
  1859. WedgeWeld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00178337097, -2.15991974, 0.0800132751, -8.94076351e-008, 1.49014454e-007, 1, -1.00000012, 0, -8.94076351e-008, 0, -1.00000012, 1.49014454e-007))
  1860. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
  1861. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(0.336000025, 0.200000003, 0.200000003))
  1862. WedgeWeld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00178337097, -0.0800132751, -1.99993896, -8.94076351e-008, 1.49014454e-007, 1, 0, 1.00000012, -1.49014454e-007, -1.00000012, 0, -8.94076351e-008))
  1863. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
  1864. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(0.336000025, 0.200000003, 0.200000003))
  1865. WedgeWeld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00178337097, -0.079990387, 2.15991974, -8.94076351e-008, 1.49014454e-007, 1, -1.49011612e-007, -1, 1.49014426e-007, 1, -1.49011612e-007, 8.94076493e-008))
  1866. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
  1867. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(0.336000025, 0.200000003, 0.200000003))
  1868. WedgeWeld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00178337097, 1.99992371, 0.0799865723, -8.94076351e-008, 1.49014454e-007, 1, 1, -1.49011612e-007, 8.94076493e-008, 1.49011612e-007, 1, -1.49014426e-007))
  1869. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
  1870. CreateMesh("BlockMesh", FakeHandle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.800000072))
  1871. HandleL = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "HandleL", Vector3.new(1, 2, 1.01999998))
  1872. HandleLWeld = CreateWeld(m, Character["Left Arm"], HandleL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00849914551, 0.00999999046, 6.77108765e-005, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  1873. EffectPrt1 = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0.30000001192093, "Really black", "EffectPrt1", Vector3.new(0.600000024, 0.600000024, 0.400000036))
  1874. EffectPrt1Weld = CreateWeld(m, HandleL, EffectPrt1, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00999355316, -0.499996185, -0.509780884, 0, 0, 1, 0, 1, 0, -1, 0, 0))
  1875. CreateMesh("SpecialMesh", EffectPrt1, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1876. EffectPrt2 = CreatePart(m, Enum.Material.SmoothPlastic, 0.30000001192093, 0, "Mid gray", "EffectPrt2", Vector3.new(0.600000024, 0.600000024, 0.400000036))
  1877. EffectPrt2Weld = CreateWeld(m, HandleL, EffectPrt2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0100440979, 0.499996185, 0.509773254, 4.06801701e-005, 8.90720813e-008, 1, 2.13165718e-014, -1, 8.90720813e-008, 1, -3.60215091e-012, -4.06801701e-005))
  1878. CreateMesh("SpecialMesh", EffectPrt2, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=18430887", Vector3.new(0, 0, 0), Vector3.new(0.379999906, 0.399999678, 2.21999955))
  1879. HitboxL = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "HitboxL", Vector3.new(1.20000005, 1.39999998, 1.01999998))
  1880. HitboxLWeld = CreateWeld(m, HandleL, HitboxL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0999908447, 0.699999809, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  1881. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.75, 0.200000003, 0.200000003))
  1882. PartWeld = CreateWeld(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.12071991, 0.312129974, -0.409996033, 0.965925872, 0.258819103, 0, -0.258819103, 0.965925872, 0, 0, 0, 1))
  1883. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.200000003, 0.200000003, 1.01999998))
  1884. PartWeld = CreateWeld(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.354278564, 0.31212616, 0, 0.965925872, 0.258819103, 0, -0.258819103, 0.965925872, 0, 0, 0, 1))
  1885. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.600000024, 0.200000003, 1.01999998))
  1886. PartWeld = CreateWeld(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.200004578, 0.899998903, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  1887. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.75, 0.200000003, 0.200000003))
  1888. PartWeld = CreateWeld(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.12071991, 0.312129974, 0.410003662, 0.965925872, 0.258819103, 0, -0.258819103, 0.965925872, 0, 0, 0, 1))
  1889. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.200000003, 1.20000005, 1.00999999))
  1890. PartWeld = CreateWeld(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.409751892, -0.412899256, 0.00154209137, -1, -5.71118512e-008, 0, -5.71118512e-008, 1, 1.6609139e-008, -9.48578645e-016, 1.6609139e-008, -1))
  1891. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0.19999998807907, "Really black", "Part", Vector3.new(0.400000036, 0.400000036, 0.400000006))
  1892. PartWeld = CreateWeld(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0105276108, -0.491856098, -0.509765625, 0, 0, 1, 0, 1, 0, -1, 0, 0))
  1893. CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1894. ThunderHoleL = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "ThunderHoleL", Vector3.new(0.200000003, 1.05000007, 0.200000003))
  1895. ThunderHoleLWeld = CreateWeld(m, HandleL, ThunderHoleL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.699999809, -0.000227928162, 0.228645325, 0, -1, 0, 0, 0, -1, 1, -0, 0))
  1896. CreateMesh("CylinderMesh", ThunderHoleL, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1897. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.800000012, 0.200000003))
  1898. WedgeWeld = CreateWeld(m, HandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.21999836, 0.600001812, 0.62865448, 0, 0, -1, 0, 1, 0, 1, 0, 0))
  1899. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1900. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.600000024, 0.200000003))
  1901. WedgeWeld = CreateWeld(m, HandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.232361794, 0.0286483765, 1.10000181, -5.96046448e-008, 1.07931243e-007, 1, 1, 5.49689858e-008, 5.96046412e-008, -5.49689787e-008, 1, -1.07931243e-007))
  1902. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1903. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.400000006, 0.200000003))
  1904. WedgeWeld = CreateWeld(m, HandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.21999836, -0.528648376, 1.10000181, 0, 0, -1, -1, -5.96046377e-008, 0, -5.96046377e-008, 1, 0))
  1905. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1906. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.600000024, 0.200000003))
  1907. WedgeWeld = CreateWeld(m, HandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.21999836, 0.0286483765, 1.10000181, -5.96046448e-008, 1.07931243e-007, 1, 1, 5.49689858e-008, 5.96046412e-008, -5.49689787e-008, 1, -1.07931243e-007))
  1908. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1909. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(1.01999998, 1.80999994, 0.619999945))
  1910. WedgeWeld = CreateWeld(m, HandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.104995966, -0.199783325, 0, 0, 1, 0, 1, 0, -1, 0, 0))
  1911. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1912. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(1.03999996, 1.00999999, 1.01999998))
  1913. WedgeWeld = CreateWeld(m, HandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0.494999886, -0.018661499, 0, 0, 1, 0, 1, 0, -1, 0, 0))
  1914. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1915. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.800000012, 0.200000003))
  1916. WedgeWeld = CreateWeld(m, HandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.232361794, 0.600001812, 0.62865448, 0, 0, -1, 0, 1, 0, 1, 0, 0))
  1917. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1918. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.400000006, 0.200000003))
  1919. WedgeWeld = CreateWeld(m, HandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.232361794, -0.528648376, 1.10000181, 0, 0, -1, -1, -5.96046377e-008, 0, -5.96046377e-008, 1, 0))
  1920. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1921. HandleR = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "HandleR", Vector3.new(1, 2, 1.01999998))
  1922. HandleRWeld = CreateWeld(m, Character["Right Arm"], HandleR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00468444824, 0.0100209713, -0.00353145599, -1, -5.71118512e-008, 0, -5.71118512e-008, 1, 1.6609139e-008, -9.48578645e-016, 1.6609139e-008, -1))
  1923. Barrel1 = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "Barrel1", Vector3.new(0.600000024, 1.20000005, 0.400000036))
  1924. Barrel1Weld = CreateWeld(m, HandleR, Barrel1, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.299865723, 0.599565029, 0.718658447, -1.49011612e-007, -6.73397207e-015, -1, 0, 1, -7.10542736e-015, 1, 0, -1.49011612e-007))
  1925. CreateMesh("SpecialMesh", Barrel1, Enum.MeshType.FileMesh, "rbxassetid://433397018", Vector3.new(0, 0, 0), Vector3.new(0.00999999978, 0.00999999978, 0.00999999978))
  1926. Barrel2 = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "Barrel2", Vector3.new(0.600000024, 1.20000005, 0.400000036))
  1927. Barrel2Weld = CreateWeld(m, HandleR, Barrel2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.300126076, 0.599565029, 0.718658447, -1.49011612e-007, -6.73397207e-015, -1, 0, 1, -7.10542736e-015, 1, 0, -1.49011612e-007))
  1928. CreateMesh("SpecialMesh", Barrel2, Enum.MeshType.FileMesh, "rbxassetid://433397018", Vector3.new(0, 0, 0), Vector3.new(0.00999999978, 0.00999999978, 0.00999999978))
  1929. Choke1 = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "Choke1", Vector3.new(0.600000024, 0.400000006, 0.400000036))
  1930. Choke1Weld = CreateWeld(m, HandleR, Choke1, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.297118187, 1.39956522, 0.718673706, -1.49011612e-007, -6.73397207e-015, -1, 0, 1, -7.10542736e-015, 1, 0, -1.49011612e-007))
  1931. CreateMesh("SpecialMesh", Choke1, Enum.MeshType.FileMesh, "rbxassetid://433397231", Vector3.new(0, 0, 0), Vector3.new(0.00999999978, 0.00999999978, 0.00999999978))
  1932. Choke2 = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "Choke2", Vector3.new(0.600000024, 0.400000006, 0.400000036))
  1933. Choke2Weld = CreateWeld(m, HandleR, Choke2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.303283691, 1.3995651, 0.718673706, -1.49011612e-007, -6.73397207e-015, -1, 0, 1, -7.10542736e-015, 1, 0, -1.49011612e-007))
  1934. CreateMesh("SpecialMesh", Choke2, Enum.MeshType.FileMesh, "rbxassetid://433397231", Vector3.new(0, 0, 0), Vector3.new(0.00999999978, 0.00999999978, 0.00999999978))
  1935. HitboxR = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "HitboxR", Vector3.new(1.20000005, 0.99999994, 1.01999998))
  1936. HitboxRWeld = CreateWeld(m, HandleR, HitboxR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.100006104, 0.700003862, 0, 1, 0, 0, 0, 1, 5.41750795e-023, 0, 5.41750795e-023, 1))
  1937. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.75, 0.200000003, 0.200000003))
  1938. PartWeld = CreateWeld(m, HandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.120735168, 0.312120438, 0.40998745, 0.965925872, 0.258819222, -5.53058896e-008, -0.258819222, 0.965925872, 3.094436e-008, 6.14303701e-008, -1.55757274e-008, 1))
  1939. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.400000006, 0.819999993, 1.01999998))
  1940. PartWeld = CreateWeld(m, HandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.718658447, -0.4104321, -1.43051147e-005, 1, 0, 0, 0, 1, 5.41750795e-023, 0, 5.41750795e-023, 1))
  1941. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.600000024, 0.200000003, 1.01999998))
  1942. PartWeld = CreateWeld(m, HandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.199996948, 0.900001049, 0, 1, 0, 0, 0, 1, 5.41750795e-023, 0, 5.41750795e-023, 1))
  1943. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.409999996, 2.01999998, 1.01999998))
  1944. PartWeld = CreateWeld(m, HandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.313659668, -0.00999617577, 0, 1, 0, 0, 0, 1, 5.41750795e-023, 0, 5.41750795e-023, 1))
  1945. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.75, 0.200000003, 0.200000003))
  1946. PartWeld = CreateWeld(m, HandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.120735168, 0.312120438, -0.410010338, 0.965925872, 0.258819222, -5.53058896e-008, -0.258819222, 0.965925872, 3.094436e-008, 6.14303701e-008, -1.55757274e-008, 1))
  1947. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.409999967, 0.200000003, 1.01999998))
  1948. PartWeld = CreateWeld(m, HandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0863342285, -0.919991493, -3.05175781e-005, 1, 0, 0, 0, 1, 5.41750795e-023, 0, 5.41750795e-023, 1))
  1949. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.200000003, 0.200000003, 1.01999998))
  1950. PartWeld = CreateWeld(m, HandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.354248047, 0.312124252, -1.43051147e-005, 0.965925872, 0.258819222, -5.53058896e-008, -0.258819222, 0.965925872, 3.094436e-008, 6.14303701e-008, -1.55757274e-008, 1))
  1951. ThunderHoleR = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "ThunderHoleR", Vector3.new(0.200000003, 1.05000007, 0.200000003))
  1952. ThunderHoleRWeld = CreateWeld(m, HandleR, ThunderHoleR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.700005054, -0.000213623047, 0.228675842, -1.0658141e-014, -1, -1.0658141e-014, 9.48578222e-016, 1.0658141e-014, -1, 1, -1.0658141e-014, 9.48578116e-016))
  1953. CreateMesh("CylinderMesh", ThunderHoleR, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1954. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.800000012, 0.200000003))
  1955. WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.232376099, 0.600004911, 0.628646851, 9.48580657e-016, -3.19744231e-014, -1, 0, 1, -3.19744231e-014, 1, 0, 9.48580551e-016))
  1956. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1957. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.600000024, 0.200000003))
  1958. WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.219985962, 0.0286712646, 1.10000277, -3.12924385e-007, 1.07931264e-007, 1, 1, 5.49689787e-008, 3.12924385e-007, -5.49689467e-008, 1, -1.07931285e-007))
  1959. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1960. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.400000006, 0.200000003))
  1961. WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.232376099, -0.528656006, 1.100003, 9.48580657e-016, -3.19744231e-014, -1, -1, -5.9604659e-008, -9.48578539e-016, -5.9604659e-008, 1, -3.19744231e-014))
  1962. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1963. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(1.01999998, 0.200000003, 0.400000006))
  1964. WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.43051147e-005, -0.920844555, 0.718658447, 9.48580657e-016, -3.19744231e-014, -1, 0, 1, -3.19744231e-014, 1, 0, 9.48580551e-016))
  1965. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1966. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(1.03999996, 1.00999999, 1.01999998))
  1967. WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0.495002031, -0.0186691284, -9.48580657e-016, 3.19744231e-014, 1, 0, 1, -3.19744231e-014, -1, 0, -9.48580551e-016))
  1968. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1969. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.600000024, 0.200000003))
  1970. WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.232390404, 0.0286712646, 1.100003, -3.12924385e-007, 1.07931264e-007, 1, 1, 5.49689787e-008, 3.12924385e-007, -5.49689467e-008, 1, -1.07931285e-007))
  1971. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1972. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.400000006, 0.200000003))
  1973. WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.219985962, -0.528671265, 1.100003, 9.48580657e-016, -3.19744231e-014, -1, -1, -5.9604659e-008, -9.48578539e-016, -5.9604659e-008, 1, -3.19744231e-014))
  1974. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1975. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(1.01999998, 0.200000003, 0.400000006))
  1976. WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.43051147e-005, -0.100847006, 0.718658447, 2.45555211e-015, -5.96046306e-008, 1, -1.42108547e-014, -1, -5.96046306e-008, 1, -1.42108547e-014, -2.45555296e-015))
  1977. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1978. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.800000012, 0.200000003))
  1979. WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.220002174, 0.600004911, 0.628662109, 9.48580657e-016, -3.19744231e-014, -1, 0, 1, -3.19744231e-014, 1, 0, 9.48580551e-016))
  1980. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1981. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(1.00999999, 0.410000026, 0.410000026))
  1982. WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00409030914, 0.623651981, 0.0869140625, 7.5121838e-016, 3.45568019e-009, -1, -5.9604659e-008, -1, -3.45568019e-009, -1, 5.9604659e-008, -5.45243684e-016))
  1983. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1984.  
  1985. --[[ Credits to Fenrier for the Effect Functions. ]]--
  1986.  
  1987. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1988. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1989. prt.Anchored = true
  1990. prt.CFrame = cframe
  1991. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1992. game:GetService("Debris"):AddItem(prt, 10)
  1993. if Type == 1 or Type == nil then
  1994. table.insert(Effects, {
  1995. prt,
  1996. "Block1",
  1997. delay,
  1998. x3,
  1999. y3,
  2000. z3,
  2001. msh
  2002. })
  2003. elseif Type == 2 then
  2004. table.insert(Effects, {
  2005. prt,
  2006. "Block2",
  2007. delay,
  2008. x3,
  2009. y3,
  2010. z3,
  2011. msh
  2012. })
  2013. end
  2014. end
  2015.  
  2016. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2017. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  2018. prt.Anchored = true
  2019. prt.CFrame = cframe
  2020. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2021. game:GetService("Debris"):AddItem(prt, 10)
  2022. table.insert(Effects, {
  2023. prt,
  2024. "Cylinder",
  2025. delay,
  2026. x3,
  2027. y3,
  2028. z3,
  2029. msh
  2030. })
  2031. end
  2032.  
  2033. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2034. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  2035. prt.Anchored = true
  2036. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  2037. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2038. game:GetService("Debris"):AddItem(prt, 10)
  2039. table.insert(Effects, {
  2040. prt,
  2041. "Cylinder",
  2042. delay,
  2043. x3,
  2044. y3,
  2045. z3,
  2046. msh
  2047. })
  2048. end
  2049.  
  2050. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2051. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  2052. prt.Anchored = true
  2053. prt.CFrame = cframe
  2054. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2055. game:GetService("Debris"):AddItem(prt, 10)
  2056. table.insert(Effects, {
  2057. prt,
  2058. "Cylinder",
  2059. delay,
  2060. x3,
  2061. y3,
  2062. z3,
  2063. msh
  2064. })
  2065. end
  2066.  
  2067. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2068. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  2069. prt.Anchored = true
  2070. prt.CFrame = cframe
  2071. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2072. game:GetService("Debris"):AddItem(prt, 10)
  2073. table.insert(Effects, {
  2074. prt,
  2075. "Cylinder",
  2076. delay,
  2077. x3,
  2078. y3,
  2079. z3,
  2080. msh
  2081. })
  2082. end
  2083.  
  2084. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2085. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  2086. prt.Anchored = true
  2087. prt.CFrame = cframe
  2088. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2089. game:GetService("Debris"):AddItem(prt, 10)
  2090. table.insert(Effects, {
  2091. prt,
  2092. "Cylinder",
  2093. delay,
  2094. x3,
  2095. y3,
  2096. z3,
  2097. msh
  2098. })
  2099. end
  2100.  
  2101. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  2102. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  2103. prt.Anchored = true
  2104. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2105. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2106. local num = math.random(10, 50) / 1000
  2107. game:GetService("Debris"):AddItem(prt, 10)
  2108. table.insert(Effects, {
  2109. prt,
  2110. "Shatter",
  2111. num,
  2112. prt.CFrame,
  2113. math.random() - math.random(),
  2114. 0,
  2115. math.random(50, 100) / 100
  2116. })
  2117. end
  2118.  
  2119. --[[ Attack Functions ]]--
  2120.  
  2121. local Mode = "Normal"
  2122.  
  2123. RSH = Torso["Right Shoulder"]
  2124. LSH = Torso["Left Shoulder"]
  2125. RH = Torso["Right Hip"]
  2126. LH = Torso["Left Hip"]
  2127. Animate = Character.Animate
  2128. Animator = Humanoid.Animator
  2129.  
  2130. function Equip()
  2131. attack = true
  2132. equipped = true
  2133. RSH.Parent = nil
  2134. LSH.Parent = nil
  2135. Animator.Parent = nil
  2136. Animate.Disabled = true
  2137. change = 3
  2138. RW = Create("Weld"){
  2139. Name = "Right Shoulder",
  2140. Part0 = Torso ,
  2141. C0 = CFrame.new(1.5, 0.5, 0),
  2142. C1 = CFrame.new(0, 0.5, 0),
  2143. Part1 = RightArm ,
  2144. Parent = Torso ,
  2145. }
  2146. LW = Create("Weld"){
  2147. Name = "Left Shoulder",
  2148. Part0 = Torso ,
  2149. C0 = CFrame.new(-1.5, 0.5, 0),
  2150. C1 = CFrame.new(0, 0.5, 0) ,
  2151. Part1 = LeftArm ,
  2152. Parent = Torso ,
  2153. }
  2154. CreateSound("http://roblox.com/asset/?id=346134880", Torso, 1, 1)
  2155. for i = 0, 1, 0.1 do
  2156. swait()
  2157. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), .2)
  2158. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  2159. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, -.5) * angles(math.rad(0), math.rad(170), math.rad(90)), .25)
  2160. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.3, -.7) * angles(math.rad(0), math.rad(-170), math.rad(-110)), .25)
  2161. if Torsovelocity < 1 then
  2162. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(5)), .2)
  2163. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(-5)), .2)
  2164. elseif Torsovelocity > 2 then
  2165. RH.C0 = clerp(RH.C0, cn(1, -.8 - 0.3 * math.cos(sine / 10) / 2, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3)
  2166. LH.C0 = clerp(LH.C0, cn(-1, -.8 + 0.3 * math.cos(sine / 10) / 2, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3)
  2167. end
  2168. end
  2169. CreateSound("http://roblox.com/asset/?id=346134880", Torso, 1, .9)
  2170. for i = 0, 1, 0.1 do
  2171. swait()
  2172. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), .2)
  2173. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  2174. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, -.5) * angles(math.rad(0), math.rad(170), math.rad(95)), .34)
  2175. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, -.7) * angles(math.rad(0), math.rad(-170), math.rad(-120)), .34)
  2176. if Torsovelocity < 1 then
  2177. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(5)), .2)
  2178. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(-5)), .2)
  2179. elseif Torsovelocity > 2 then
  2180. RH.C0 = clerp(RH.C0, cn(1, -.8 - 0.3 * math.cos(sine / 10) / 2, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3)
  2181. LH.C0 = clerp(LH.C0, cn(-1, -.8 + 0.3 * math.cos(sine / 10) / 2, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3)
  2182. end
  2183. end
  2184. for i = 0, 1, 0.1 do
  2185. swait()
  2186. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), .2)
  2187. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  2188. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, -.7) * angles(math.rad(0), math.rad(170), math.rad(110)), .25)
  2189. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.3, -.5) * angles(math.rad(0), math.rad(-170), math.rad(-90)), .25)
  2190. if Torsovelocity < 1 then
  2191. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(5)), .2)
  2192. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(-5)), .2)
  2193. elseif Torsovelocity > 2 then
  2194. RH.C0 = clerp(RH.C0, cn(1, -.8 - 0.3 * math.cos(sine / 10) / 2, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3)
  2195. LH.C0 = clerp(LH.C0, cn(-1, -.8 + 0.3 * math.cos(sine / 10) / 2, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3)
  2196. end
  2197. end
  2198. for i = 0, 1, 0.1 do
  2199. swait()
  2200. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), .2)
  2201. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  2202. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, -.7) * angles(math.rad(0), math.rad(170), math.rad(120)), .34)
  2203. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.3, -.7) * angles(math.rad(0), math.rad(-180), math.rad(-95)), .34)
  2204. if Torsovelocity < 1 then
  2205. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(5)), .2)
  2206. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(-5)), .2)
  2207. elseif Torsovelocity > 2 then
  2208. RH.C0 = clerp(RH.C0, cn(1, -.8 - 0.3 * math.cos(sine / 10) / 2, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3)
  2209. LH.C0 = clerp(LH.C0, cn(-1, -.8 + 0.3 * math.cos(sine / 10) / 2, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3)
  2210. end
  2211. end
  2212. attack = false
  2213. end
  2214.  
  2215. function Unequip()
  2216. attack = true
  2217. for i = 0, 1, 0.1 do
  2218. swait()
  2219. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  2220. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  2221. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  2222. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  2223. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  2224. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  2225. end
  2226. equipped = false
  2227. RW.Parent = nil
  2228. LW.Parent = nil
  2229. RSH.Parent = Torso
  2230. LSH.Parent = Torso
  2231. Torso.Neck.C0 = NeckCF
  2232. RootJoint.C0 = RootCF
  2233. Animator.Parent = Humanoid
  2234. Animate.Disabled = false
  2235. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  2236. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  2237. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  2238. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  2239. attack = false
  2240. end
  2241.  
  2242. function attackone()
  2243. attack = true
  2244. local Con1 = HitboxL.Touched:connect(function(hit)
  2245. Damage(hit.Parent, math.random(10, 45), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
  2246. end)
  2247. for i = 0, 1, 0.13 do
  2248. swait()
  2249. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.3) * angles(math.rad(0), math.rad(0), math.rad(70)), .3)
  2250. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-70)), .3)
  2251. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0, -.3) * angles(math.rad(180), math.rad(-20), math.rad(10)), .3)
  2252. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.4, -.7) * angles(math.rad(0), math.rad(-150), math.rad(-90)), .3)
  2253. RH.C0 = clerp(RH.C0, cn(1, -.8, 0) * RHCF * angles(math.rad(-4), math.rad(-40), math.rad(0)), .3)
  2254. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-4), math.rad(-40), math.rad(30)), .3)
  2255. end
  2256. CreateSound("http://www.roblox.com/asset/?id=200632136", HitboxL, 1, 1)
  2257. for i = 0, 1, 0.12 do
  2258. swait()
  2259. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.3) * angles(math.rad(20), math.rad(0), math.rad(-80)), .54)
  2260. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-10), math.rad(-10), math.rad(80)), .54)
  2261. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, .3) * angles(math.rad(50), math.rad(20), math.rad(0)), .54)
  2262. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.7, -.3) * angles(math.rad(0), math.rad(-20), math.rad(-110)), .54)
  2263. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-4), math.rad(40), math.rad(-10)), .54)
  2264. LH.C0 = clerp(LH.C0, cn(-1, -.7, 0) * LHCF * angles(math.rad(-4), math.rad(40), math.rad(-20)), .54)
  2265. end
  2266. Con1:disconnect()
  2267. attack = false
  2268. end
  2269.  
  2270. function attacktwo()
  2271. attack = true
  2272. local Con1 = HitboxR.Touched:connect(function(hit)
  2273. Damage(hit.Parent, math.random(10, 45), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
  2274. end)
  2275. for i = 0, 1, 0.13 do
  2276. swait()
  2277. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.4) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3)
  2278. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(80)), .3)
  2279. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(-90), math.rad(0)), .3)
  2280. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.4) * angles(math.rad(120), math.rad(0), math.rad(10)), .3)
  2281. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(-40)), .3)
  2282. LH.C0 = clerp(LH.C0, cn(-1, -.7, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  2283. end
  2284. CreateSound("http://www.roblox.com/asset/?id=200632136", HitboxR, 1, 1.1)
  2285. for i = 0, 1, 0.12 do
  2286. swait()
  2287. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0) * angles(math.rad(0), math.rad(0), math.rad(80)), .55)
  2288. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-80)), .55)
  2289. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.6, -.3) * angles(math.rad(180), math.rad(-20), math.rad(10)), .55)
  2290. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(10)), .55)
  2291. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .55)
  2292. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .55)
  2293. end
  2294. Con1:disconnect()
  2295. attack = false
  2296. end
  2297.  
  2298. function attackthree()
  2299. attack = true
  2300. local Con1 = HitboxL.Touched:connect(function(hit)
  2301. Damage(hit.Parent, math.random(10, 45), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
  2302. end)
  2303. local Con2 = HitboxR.Touched:connect(function(hit)
  2304. Damage(hit.Parent, math.random(10, 45), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
  2305. end)
  2306. for i = 0, 1, 0.13 do
  2307. swait()
  2308. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), .3)
  2309. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(0)), .3)
  2310. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.5) * angles(math.rad(90), math.rad(50), math.rad(0)), .3)
  2311. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0.5) * angles(math.rad(90), math.rad(-50), math.rad(0)), .3)
  2312. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(-20)), .3)
  2313. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(20)), .3)
  2314. end
  2315. CreateSound("http://www.roblox.com/asset/?id=200632136", Torso, 1, .8)
  2316. Torso.Velocity = RootPart.CFrame.lookVector * 120
  2317. for i = 0, 1, 0.13 do
  2318. swait()
  2319. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), .55)
  2320. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-10), math.rad(0), math.rad(0)), .55)
  2321. RW.C0 = clerp(RW.C0, CFrame.new(.8, 0.5, -.8) * angles(math.rad(120), math.rad(60), math.rad(0)), .55)
  2322. LW.C0 = clerp(LW.C0, CFrame.new(-.8, 0.5, -.8) * angles(math.rad(120), math.rad(-60), math.rad(0)), .55)
  2323. RH.C0 = clerp(RH.C0, cn(1, -.6, -.2) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(-20)), .3)
  2324. LH.C0 = clerp(LH.C0, cn(-1, -.8, -.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(10)), .3)
  2325. end
  2326. Con1:disconnect()
  2327. Con2:disconnect()
  2328. attack = false
  2329. end
  2330.  
  2331. function attackfour()
  2332. attack = true
  2333. Torso.Velocity = Vector3.new(0, 100, 0)
  2334. Humanoid.Jump = true
  2335. CreateSound("http://roblox.com/asset/?id=199145327", Torso, 1, .8)
  2336. for i = 0, 1, 0.12 do
  2337. swait()
  2338. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(6 * i, math.rad(0), math.rad(0)), .3)
  2339. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  2340. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(-40)), .3)
  2341. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(40)), .3)
  2342. RH.C0 = clerp(RH.C0, cn(1, -.2, -.5) * RHCF * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  2343. LH.C0 = clerp(LH.C0, cn(-1, -.1, -.5) * LHCF * angles(math.rad(0), math.rad(0), math.rad(20)), .3)
  2344. end
  2345. for i = 0, 1, 0.12 do
  2346. swait()
  2347. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10 * i), math.rad(0), math.rad(0)), .5)
  2348. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(0)), .5)
  2349. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(60)), .5)
  2350. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-60)), .5)
  2351. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(40)), .5)
  2352. LH.C0 = clerp(LH.C0, cn(-1, 0, -.5) * LHCF * angles(math.rad(0), math.rad(0), math.rad(20)), .5)
  2353. end
  2354. local hitfloor = nil
  2355. while hitfloor == nil do
  2356. swait()
  2357. hitfloor, posfloor = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 3, Character)
  2358. end
  2359. MagnitudeDamage(RootPart, 30, 20, 35, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
  2360. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 6, Character)
  2361. if hit ~= nil then
  2362. local Color = hit.BrickColor
  2363. local refpart = CreatePart(workspace, "SmoothPlastic", 0, 1, "Really black", "Effect", Vector3.new())
  2364. refpart.Anchored = true
  2365. refpart.CFrame = CFrame.new(pos)
  2366. game:GetService("Debris"):AddItem(refpart, 1)
  2367. CreateSound("http://www.roblox.com/asset/?id=199145477", refpart, .8, 1)
  2368. for i = 1, 5 do
  2369. local Color = hit.BrickColor
  2370. local Materials = hit.Material
  2371. local groundpart = CreatePart(workspace, "SmoothPlastic", 0, 0, Color, "Ground", Vector3.new(math.random(50, 100) / 100, math.random(50, 100) / 100, math.random(50, 100) / 100))
  2372. groundpart.Anchored = false
  2373. groundpart.Material = Materials
  2374. groundpart.CanCollide = true
  2375. groundpart.Friction = 0.1
  2376. groundpart.Velocity = Vector3.new(math.random(-50, 50), math.random(25, 50), math.random(-50, 50))
  2377. groundpart.CFrame = CFrame.new(pos) * CFrame.new(math.random(-250, 250) / 100, 0.5, math.random(-250, 250) / 100) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2378. game:GetService("Debris"):AddItem(groundpart, 10)
  2379. end
  2380. for i = 1, 6 do
  2381. local Color = hit.BrickColor
  2382. local Materials = hit.Material
  2383. local actualgroundpart = CreatePart(workspace, "SmoothPlastic", 0, 0, Color, "Ground", Vector3.new(math.random(100, 200) / 100, math.random(100, 200) / 100, math.random(100, 200) / 100))
  2384. actualgroundpart.Anchored = true
  2385. actualgroundpart.Material = Materials
  2386. actualgroundpart.CanCollide = true
  2387. actualgroundpart.Friction = 1
  2388. actualgroundpart.CFrame = CFrame.new(pos) * CFrame.new(math.random(-500, 500) / 100, 0, math.random(-500, 500) / 100) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2389. game:GetService("Debris"):AddItem(actualgroundpart, 10)
  2390. end
  2391. WaveEffect(hit.BrickColor, refpart.CFrame, .2, .2, .2, .5, .5, .5, .04)
  2392. SphereEffect(hit.BrickColor, refpart.CFrame, .2, .2, .2, 3, 3, 3, .04)
  2393. RingEffect(hit.BrickColor, refpart.CFrame * CFrame.Angles(math.random(5, 6), math.random(2, 7), math.random(3, 6)), .2, .2, .2, 1, 1, 1, .05)
  2394. end
  2395. attack = false
  2396. end
  2397.  
  2398. function ShootCannon(asd)
  2399. local MainPos = asd.Position
  2400. local MainPos2 = mouse.Hit.p
  2401. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  2402. num = 100
  2403. coroutine.resume(coroutine.create(function()
  2404. repeat
  2405. swait()
  2406. local hit, pos = rayCast(MainPos, MouseLook.lookVector, 10, RootPart.Parent)
  2407. local mag = (MainPos - pos).magnitude
  2408. CylinderEffect(BrickColor.new("New Yeller"), CFrame.new((MainPos + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 3, mag * 5, 100, .1, 0, 1.5, 0.1)
  2409. MainPos = MainPos + (MouseLook.lookVector * 10)
  2410. num = num - 1
  2411. if hit ~= nil then
  2412. num = 0
  2413. local ref = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new("New Yeller"), "Reference", Vector3.new())
  2414. ref.Anchored = true
  2415. ref.CFrame = CFrame.new(pos)
  2416. BlockEffect(BrickColor.new("New Yeller"), CFrame.new(pos), 20, 20, 20, 5, 5, 5, 0.1)
  2417. MagnitudeDamage(ref, 30, 25, 50, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
  2418. game:GetService("Debris"):AddItem(ref, 1)
  2419. end
  2420. until num <= 0
  2421. end))
  2422. end
  2423.  
  2424. gun = false
  2425.  
  2426. shoot = false
  2427.  
  2428. gunidle = false
  2429.  
  2430. local Loaded = false
  2431.  
  2432. function GunStance()
  2433. attack = true
  2434. gun = true
  2435. change = 3
  2436. Barrel1.Transparency = 0
  2437. Barrel2.Transparency = 0
  2438. Choke1.Transparency = 0
  2439. Choke2.Transparency = 0
  2440. for i = 0, 1, 0.1 do
  2441. swait()
  2442. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .3)
  2443. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-90)), .3)
  2444. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .3)
  2445. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  2446. HandleWeld.C0 = clerp(HandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  2447. if Torsovelocity < 1 then
  2448. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .2)
  2449. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .2)
  2450. elseif Torsovelocity > 2 then
  2451. RH.C0 = clerp(RH.C0, cn(1, -.8 - 0.3 * math.cos(sine / 10) / 2, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3)
  2452. LH.C0 = clerp(LH.C0, cn(-1, -.8 + 0.3 * math.cos(sine / 10) / 2, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3)
  2453. end
  2454. end
  2455. local offset = nil
  2456. gunidle = true
  2457. while gun == true do
  2458. swait()
  2459. local gunpos = Vector3.new(mouse.Hit.p.x, Head.Position.Y, mouse.Hit.p.z)
  2460. offset = (Torso.Position.y - mouse.Hit.p.y) / 60
  2461. local mag = (Torso.Position - mouse.Hit.p).magnitude / 80
  2462. offset = offset / mag
  2463. RW.C1 = clerp(RW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, offset), .5)
  2464. if Torsovelocity < 1 then
  2465. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .2)
  2466. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .2)
  2467. elseif Torsovelocity > 2 then
  2468. RH.C0 = clerp(RH.C0, cn(1, -.8 - 0.3 * math.cos(sine / 10) / 2, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3)
  2469. LH.C0 = clerp(LH.C0, cn(-1, -.8 + 0.3 * math.cos(sine / 10) / 2, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3)
  2470. end
  2471. end
  2472. if shoot == true then
  2473. gunidle = false
  2474. CreateSound("rbxassetid://131632972", Torso, 1, 1.2)
  2475. CreateSound("rbxassetid://131632972", Torso, 1, 1)
  2476. CreateSound("rbxassetid://131632972", Torso, 1, .7)
  2477. ShootCannon(Choke1)
  2478. ShootCannon(Choke2)
  2479. for i = 0, 1, 0.15 do
  2480. swait()
  2481. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .3)
  2482. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-90)), .3)
  2483. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.7, 0) * angles(math.rad(0), math.rad(0), math.rad(150)), .5)
  2484. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  2485. HandleWeld.C0 = clerp(HandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  2486. if Torsovelocity < 1 then
  2487. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .2)
  2488. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .2)
  2489. elseif Torsovelocity > 2 then
  2490. RH.C0 = clerp(RH.C0, cn(1, -.8 - 0.3 * math.cos(sine / 10) / 2, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3)
  2491. LH.C0 = clerp(LH.C0, cn(-1, -.8 + 0.3 * math.cos(sine / 10) / 2, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3)
  2492. end
  2493. end
  2494. Loaded = false
  2495. end
  2496. RW.C1 = clerp(RW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), 1)
  2497. Barrel1.Transparency = 1
  2498. Barrel2.Transparency = 1
  2499. Choke1.Transparency = 1
  2500. Choke2.Transparency = 1
  2501. gun = false
  2502. gunidle = false
  2503. shoot = false
  2504. attack = false
  2505. end
  2506.  
  2507. function Disappear()
  2508. for _, i in pairs(m:children()) do
  2509. if i.Name == "BladePrt" then
  2510. coroutine.resume(coroutine.create(function(Part)
  2511. for i = 0, 1, 0.1 do
  2512. swait()
  2513. Part.Transparency = i
  2514. end
  2515. Part.Transparency = 1
  2516. end), i)
  2517. end
  2518. end
  2519. end
  2520.  
  2521.  
  2522. function Reappear()
  2523. for _, i in pairs(m:children()) do
  2524. if i.Name == "BladePrt" then
  2525. coroutine.resume(coroutine.create(function(Part)
  2526. for i = 0, 1, 0.1 do
  2527. swait()
  2528. Part.Transparency = i
  2529. end
  2530. Part.Transparency = 0
  2531. end), i)
  2532. end
  2533. end
  2534. end
  2535.  
  2536. function BladeEquip()
  2537. attack = true
  2538. for i = 0, 1, 0.15 do
  2539. swait()
  2540. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  2541. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  2542. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, 0) * angles(math.rad(210), math.rad(0), math.rad(30)), .5)
  2543. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)), .3)
  2544. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  2545. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  2546. end
  2547. CreateSound("http://roblox.com/asset/?id=199145327", FakeHandle, .6, 1)
  2548. HandleWeld:remove()
  2549. HandleWeld = CreateWeld(m, Character["Right Arm"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.032043457, 0.996201754, -0.111961365, 8.94076351e-008, 1.1920929e-007, 1, -1.49014454e-007, 1, -1.19209275e-007, -1, -1.4901444e-007, 8.94076564e-008))
  2550. for i = 0, 1, 0.1 do
  2551. swait()
  2552. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  2553. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  2554. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(80), math.rad(0), math.rad(70)), .3)
  2555. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)), .3)
  2556. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  2557. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  2558. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(90), math.rad(0), -6 * i), .3)
  2559. end
  2560. Reappear()
  2561. Mode = "Sword"
  2562. attack = false
  2563. end
  2564.  
  2565. function UnequipBlade()
  2566. attack = true
  2567. for i = 0, 1, 0.15 do
  2568. swait()
  2569. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  2570. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  2571. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, 0) * angles(math.rad(210), math.rad(0), math.rad(30)), .5)
  2572. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)), .3)
  2573. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  2574. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  2575. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(40), math.rad(-60)), .3)
  2576. end
  2577. Disappear()
  2578. HandleWeld:remove()
  2579. HandleWeld = CreateWeld(m, Character["Torso"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.57640076, -0.105987549, -0.672006607, 0.866025388, 0.500000119, -8.94076351e-008, -0.500000119, 0.866025388, 1.49014454e-007, 1.51936518e-007, -8.43464605e-008, 1))
  2580. Mode = "Normal"
  2581. attack = false
  2582. end
  2583.  
  2584. function BladeAttackOne()
  2585. attack = true
  2586. local Con1 = BladeHitbox.Touched:connect(function(hit)
  2587. Damage(hit.Parent, math.random(10, 45), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
  2588. end)
  2589. for i = 0, 1, 0.15 do
  2590. swait()
  2591. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(60)), .3)
  2592. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-60)), .3)
  2593. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, -.5) * angles(math.rad(0), math.rad(150), math.rad(120)), .3)
  2594. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -.7) * angles(math.rad(0), math.rad(70), math.rad(90)), .3)
  2595. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(-10), math.rad(30)), .3)
  2596. if Torsovelocity < 1 then
  2597. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(-30), math.rad(0)), .2)
  2598. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(-30), math.rad(0)), .2)
  2599. elseif Torsovelocity > 2 then
  2600. RH.C0 = clerp(RH.C0, cn(1, -1, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(-30), math.rad(0) - math.sin(sine / 10)), .3)
  2601. LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(-30), math.rad(0) - math.sin(sine / 10)), .3)
  2602. end
  2603. end
  2604. CreateSound("http://roblox.com/asset/?id=356430004", BladeHitbox, 1, .8)
  2605. for i = 0, 1, 0.15 do
  2606. swait()
  2607. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.1) * angles(math.rad(10), math.rad(0), math.rad(-60)), .4)
  2608. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-5), math.rad(-5), math.rad(60)), .4)
  2609. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, 0) * angles(math.rad(0), math.rad(70), math.rad(80)), .4)
  2610. LW.C0 = clerp(LW.C0, CFrame.new(-.4, 0.5, -1) * angles(math.rad(0), math.rad(20), math.rad(70)), .4)
  2611. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .4)
  2612. if Torsovelocity < 1 then
  2613. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(30), math.rad(0)), .2)
  2614. LH.C0 = clerp(LH.C0, cn(-1, -.9, 0) * LHCF * angles(math.rad(-5), math.rad(30), math.rad(-10)), .2)
  2615. elseif Torsovelocity > 2 then
  2616. RH.C0 = clerp(RH.C0, cn(1, -1, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(30), math.rad(0) - math.sin(sine / 10)), .3)
  2617. LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(30), math.rad(0) - math.sin(sine / 10)), .3)
  2618. end
  2619. end
  2620. Con1:disconnect()
  2621. attack = false
  2622. end
  2623.  
  2624. function BladeAttackTwo()
  2625. attack = true
  2626. local Con1 = BladeHitbox.Touched:connect(function(hit)
  2627. Damage(hit.Parent, math.random(10, 45), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
  2628. end)
  2629. for i = 0, 1, 0.15 do
  2630. swait()
  2631. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), .3)
  2632. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(60)), .3)
  2633. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.7) * angles(math.rad(0), math.rad(-70), math.rad(-90)), .3)
  2634. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, -.5) * angles(math.rad(0), math.rad(-150), math.rad(-120)), .3)
  2635. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(-10), math.rad(30)), .3)
  2636. if Torsovelocity < 1 then
  2637. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(30), math.rad(0)), .2)
  2638. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(30), math.rad(0)), .2)
  2639. elseif Torsovelocity > 2 then
  2640. RH.C0 = clerp(RH.C0, cn(1, -1, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(-0), math.rad(0) - math.sin(sine / 10)), .3)
  2641. LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(30), math.rad(0) - math.sin(sine / 10)), .3)
  2642. end
  2643. end
  2644. CreateSound("http://roblox.com/asset/?id=356430004", BladeHitbox, 1, 1)
  2645. for i = 0, 1, 0.15 do
  2646. swait()
  2647. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.1) * angles(math.rad(10), math.rad(0), math.rad(60)), .4)
  2648. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-5), math.rad(5), math.rad(-60)), .4)
  2649. RW.C0 = clerp(RW.C0, CFrame.new(.4, 0.5, -1) * angles(math.rad(0), math.rad(-20), math.rad(-70)), .4)
  2650. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.1, 0) * angles(math.rad(0), math.rad(-70), math.rad(-80)), .4)
  2651. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30), math.rad(80)), .4)
  2652. if Torsovelocity < 1 then
  2653. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(-30), math.rad(0)), .2)
  2654. LH.C0 = clerp(LH.C0, cn(-1, -.9, 0) * LHCF * angles(math.rad(-5), math.rad(-30), math.rad(-10)), .2)
  2655. elseif Torsovelocity > 2 then
  2656. RH.C0 = clerp(RH.C0, cn(1, -1, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(-30), math.rad(0) - math.sin(sine / 10)), .3)
  2657. LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(-30), math.rad(0) - math.sin(sine / 10)), .3)
  2658. end
  2659. end
  2660. Con1:disconnect()
  2661. attack = false
  2662. end
  2663.  
  2664. function BladeAttackThree()
  2665. attack = true
  2666. local Con1 = BladeHitbox.Touched:connect(function(hit)
  2667. Damage(hit.Parent, math.random(10, 45), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
  2668. end)
  2669. for i = 0, 1, 0.15 do
  2670. swait()
  2671. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), .34)
  2672. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .34)
  2673. RW.C0 = clerp(RW.C0, CFrame.new(1, 1, -.5) * angles(math.rad(120), math.rad(0), math.rad(-40)), .34)
  2674. LW.C0 = clerp(LW.C0, CFrame.new(-1, 1, -.5) * angles(math.rad(120), math.rad(0), math.rad(40)), .34)
  2675. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), .4)
  2676. if Torsovelocity < 1 then
  2677. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(-10)), .34)
  2678. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(10)), .34)
  2679. elseif Torsovelocity > 2 then
  2680. RH.C0 = clerp(RH.C0, cn(1, -1, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3)
  2681. LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3)
  2682. end
  2683. end
  2684. CreateSound("http://roblox.com/asset/?id=356430004", BladeHitbox, 1, .7)
  2685. for i = 0, 1, 0.13 do
  2686. swait()
  2687. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.3) * angles(math.rad(0), math.rad(0), math.rad(0)), .5)
  2688. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(0)), .5)
  2689. RW.C0 = clerp(RW.C0, CFrame.new(1, .3, -.3) * angles(math.rad(10), math.rad(0), math.rad(-40)), .5)
  2690. LW.C0 = clerp(LW.C0, CFrame.new(-1, .3, -.3) * angles(math.rad(10), math.rad(0), math.rad(40)), .5)
  2691. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(30)), .5)
  2692. if Torsovelocity < 1 then
  2693. RH.C0 = clerp(RH.C0, cn(1, -.8, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(-10)), .34)
  2694. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(10)), .34)
  2695. elseif Torsovelocity > 2 then
  2696. RH.C0 = clerp(RH.C0, cn(1, -.8, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3)
  2697. LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3)
  2698. end
  2699. end
  2700. Con1:disconnect()
  2701. attack = false
  2702. end
  2703.  
  2704. function BladeAttackFour()
  2705. attack = true
  2706. local Con1 = BladeHitbox.Touched:connect(function(hit)
  2707. Damage(hit.Parent, math.random(10, 45), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
  2708. end)
  2709. for i = 1,2 do
  2710. for i = 0, 1, 0.3 do
  2711. swait()
  2712. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(60)), .5)
  2713. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-60)), .5)
  2714. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, -.5) * angles(math.rad(0), math.rad(150), math.rad(120)), .5)
  2715. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -.7) * angles(math.rad(0), math.rad(70), math.rad(90)), .5)
  2716. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(-10), math.rad(30)), .5)
  2717. if Torsovelocity < 1 then
  2718. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(-30), math.rad(0)), .5)
  2719. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(-30), math.rad(0)), .5)
  2720. elseif Torsovelocity > 2 then
  2721. RH.C0 = clerp(RH.C0, cn(1, -1, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(-30), math.rad(0) - math.sin(sine / 10)), .5)
  2722. LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(-30), math.rad(0) - math.sin(sine / 10)), .5)
  2723. end
  2724. end
  2725. CreateSound("http://roblox.com/asset/?id=356430004", BladeHitbox, 1, 1)
  2726. for i = 0, 1, 0.3 do
  2727. swait()
  2728. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.1) * angles(math.rad(10), math.rad(0), math.rad(-60)), .4)
  2729. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-5), math.rad(-5), math.rad(60)), .4)
  2730. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, 0) * angles(math.rad(0), math.rad(70), math.rad(80)), .4)
  2731. LW.C0 = clerp(LW.C0, CFrame.new(-.4, 0.5, -1) * angles(math.rad(0), math.rad(20), math.rad(70)), .4)
  2732. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .4)
  2733. if Torsovelocity < 1 then
  2734. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(30), math.rad(0)), .2)
  2735. LH.C0 = clerp(LH.C0, cn(-1, -.9, 0) * LHCF * angles(math.rad(-5), math.rad(30), math.rad(-10)), .2)
  2736. elseif Torsovelocity > 2 then
  2737. RH.C0 = clerp(RH.C0, cn(1, -1, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(30), math.rad(0) - math.sin(sine / 10)), .3)
  2738. LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(30), math.rad(0) - math.sin(sine / 10)), .3)
  2739. end
  2740. end
  2741. for i = 0, 1, 0.3 do
  2742. swait()
  2743. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), .5)
  2744. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(60)), .5)
  2745. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.7) * angles(math.rad(0), math.rad(-70), math.rad(-110)), .5)
  2746. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, -.5) * angles(math.rad(0), math.rad(-150), math.rad(-120)), .5)
  2747. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(-10), math.rad(30)), .5)
  2748. if Torsovelocity < 1 then
  2749. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(30), math.rad(0)), .5)
  2750. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(30), math.rad(0)), .5)
  2751. elseif Torsovelocity > 2 then
  2752. RH.C0 = clerp(RH.C0, cn(1, -1, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(-0), math.rad(0) - math.sin(sine / 10)), .5)
  2753. LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(30), math.rad(0) - math.sin(sine / 10)), .5)
  2754. end
  2755. end
  2756. CreateSound("http://roblox.com/asset/?id=356430004", BladeHitbox, 1, .8)
  2757. for i = 0, 1, 0.3 do
  2758. swait()
  2759. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.1) * angles(math.rad(10), math.rad(0), math.rad(60)), .4)
  2760. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-5), math.rad(5), math.rad(-60)), .4)
  2761. RW.C0 = clerp(RW.C0, CFrame.new(.4, 0.5, -1) * angles(math.rad(0), math.rad(-20), math.rad(-70)), .4)
  2762. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.1, 0) * angles(math.rad(0), math.rad(-70), math.rad(-80)), .4)
  2763. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30), math.rad(80)), .4)
  2764. if Torsovelocity < 1 then
  2765. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(-30), math.rad(0)), .2)
  2766. LH.C0 = clerp(LH.C0, cn(-1, -.9, 0) * LHCF * angles(math.rad(-5), math.rad(-30), math.rad(-10)), .2)
  2767. elseif Torsovelocity > 2 then
  2768. RH.C0 = clerp(RH.C0, cn(1, -1, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(-30), math.rad(0) - math.sin(sine / 10)), .3)
  2769. LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(-30), math.rad(0) - math.sin(sine / 10)), .3)
  2770. end
  2771. end
  2772. end
  2773. Con1:disconnect()
  2774. attack = false
  2775. end
  2776.  
  2777. --[[Attacks]]--
  2778.  
  2779. mouse.Button1Down:connect(function()
  2780. if attack == false and attacktype == 1 and equipped == true and Mode == "Normal" then
  2781. attacktype = 2
  2782. attackone()
  2783. elseif attack == false and attacktype == 2 and equipped == true and Mode == "Normal" then
  2784. attacktype = 3
  2785. attacktwo()
  2786. elseif attack == false and attacktype == 3 and equipped == true and Mode == "Normal" then
  2787. attacktype = 4
  2788. attackthree()
  2789. elseif attack == false and attacktype == 4 and equipped == true and Mode == "Normal" then
  2790. attacktype = 1
  2791. attackfour()
  2792. end
  2793. if attack == false and attacktype == 1 and equipped == true and Mode == "Sword" then
  2794. attacktype = 2
  2795. BladeAttackOne()
  2796. elseif attack == false and attacktype == 2 and equipped == true and Mode == "Sword" then
  2797. attacktype = 3
  2798. BladeAttackTwo()
  2799. elseif attack == false and attacktype == 3 and equipped == true and Mode == "Sword" then
  2800. attacktype = 4
  2801. BladeAttackThree()
  2802. elseif attack == false and attacktype == 4 and equipped == true and Mode == "Sword" then
  2803. attacktype = 1
  2804. BladeAttackFour()
  2805. end
  2806. if gun == true and shoot == false and equipped == true then
  2807. shoot = true
  2808. gun = false
  2809. end
  2810. end)
  2811.  
  2812. mouse.KeyDown:connect(function(k)
  2813. k = k:lower()
  2814. if attack == false and equipped == false and k == 'f' and Mode == "Normal" then
  2815. Equip()
  2816. elseif attack == false and equipped == true and k == 'f' and Mode == "Normal" then
  2817. Unequip()
  2818. elseif attack == false and equipped == true and Mode == "Normal" and k == 'g' then
  2819. BladeEquip()
  2820. elseif attack == false and equipped == true and Mode == "Sword" and k == 'g' then
  2821. UnequipBlade()
  2822. elseif k == 'e' and gun == false and shoot == false and Mode == "Normal" and attack == false and equipped == true then
  2823. GunStance()
  2824. elseif k == 'e' and shoot == false and equipped == true and Mode == "Normal" then
  2825. if gun == true then
  2826. gun = false
  2827. end
  2828. end
  2829. end)
  2830.  
  2831. --[[ Credits to Fenrier for the Movement Detection and Effects table. ]]--
  2832.  
  2833. while true do
  2834. swait()
  2835. for i, v in pairs(Character:GetChildren()) do
  2836. if v:IsA("Part") then
  2837. v.Material = "SmoothPlastic"
  2838. elseif v:IsA("Hat") then
  2839. v:WaitForChild("Handle").Material = "SmoothPlastic"
  2840. end
  2841. end
  2842. if gun == true then
  2843. local aim = CFrame.new(RootPart.Position, mouse.Hit.p)
  2844. local direction = aim.lookVector
  2845. local headingA = math.atan2(direction.x, direction.z)
  2846. headingA = math.deg(headingA)
  2847. Humanoid.AutoRotate = false
  2848. RootPart.CFrame = CFrame.new(RootPart.Position) * angles(math.rad(0), math.rad(headingA - 180), math.rad(0))
  2849. else
  2850. Humanoid.AutoRotate = true
  2851. end
  2852. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  2853. velocity = RootPart.Velocity.y
  2854. sine = sine + change
  2855. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  2856. if equipped == true then
  2857. if RootPart.Velocity.y > 1 and hit == nil then
  2858. Anim = "Jump"
  2859. if attack == false then
  2860. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  2861. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-10), math.rad(0), math.rad(0)), .3)
  2862. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)), .3)
  2863. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), .3)
  2864. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(-20)), .3)
  2865. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(20)), .3)
  2866. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  2867. end
  2868. elseif RootPart.Velocity.y < -1 and hit == nil then
  2869. Anim = "Fall"
  2870. if attack == false then
  2871. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  2872. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(30), math.rad(0), math.rad(0)), .3)
  2873. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  2874. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .3)
  2875. RH.C0 = clerp(RH.C0, cn(1, -.8, 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(20)), .3)
  2876. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(-20)), .3)
  2877. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  2878. end
  2879. elseif Torsovelocity < 1 and hit ~= nil then
  2880. Anim = "Idle"
  2881. if attack == false and Mode == "Normal" then
  2882. change = 1
  2883. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.1 + .1 * math.sin(sine / 27)) * angles(math.rad(0), math.rad(0), math.rad(30)), .3)
  2884. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 + 3 * math.cos(sine / 23)), math.rad(-2 - 3 * math.cos(sine / 23)), math.rad(-30)), .3)
  2885. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.6 + .07 * math.cos(sine / 23), -.2) * angles(math.rad(110 + 2 * math.cos(sine / 24)), math.rad(35 + 3 * math.cos(sine / 23)), math.rad(-30)), .3)
  2886. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.6 + .07 * math.cos(sine / 23), -.5) * angles(math.rad(120 + 2 * math.cos(sine / 24)), math.rad(-40 + 3 * math.cos(sine / 23)), math.rad(40)), .3)
  2887. RH.C0 = clerp(RH.C0, cn(1, -.9 - .1 * math.sin(sine / 27), 0) * RHCF * angles(math.rad(-4 + 1 * math.cos(sine / 23)), math.rad(-30), math.rad(0)), .3)
  2888. LH.C0 = clerp(LH.C0, cn(-1, -.9 - .1 * math.sin(sine / 27), 0) * LHCF * angles(math.rad(-4 + 1 * math.cos(sine / 23)), math.rad(-30), math.rad(0)), .3)
  2889. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  2890. elseif attack == false and Mode == "Sword" then
  2891. change = 1
  2892. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.1 + .1 * math.sin(sine / 27)) * angles(math.rad(0), math.rad(0), math.rad(-60)), .3)
  2893. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 + 3 * math.cos(sine / 23)), math.rad(-2 + 3 * math.cos(sine / 23)), math.rad(60)), .3)
  2894. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.6, 0) * angles(math.rad(150 + 3 * math.cos(sine / 23)), math.rad(0), math.rad(10)), 0.3)
  2895. LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.5, 0) * angles(math.rad(10 + 2 * math.cos(sine / 23)), math.rad(0), math.rad(-20 - 5 * math.cos(sine / 23))), 0.3)
  2896. RH.C0 = clerp(RH.C0, cn(1, -.9 - .1 * math.sin(sine / 27), 0) * RHCF * angles(math.rad(-4 + 1 * math.cos(sine / 23)), math.rad(20), math.rad(0)), .3)
  2897. LH.C0 = clerp(LH.C0, cn(-1, -.9 - .1 * math.sin(sine / 27), 0) * LHCF * angles(math.rad(-4 + 1 * math.cos(sine / 23)), math.rad(20), math.rad(0)), .3)
  2898. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), .3)
  2899. end
  2900. elseif Torsovelocity > 2 and hit ~= nil then
  2901. Anim = "Walk"
  2902. if attack == false and Mode == "Normal" then
  2903. change = 3
  2904. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.2) * angles(math.rad(30), math.rad(0), math.rad(5 * math.cos(sine / 10) / 2)), .3)
  2905. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-20), math.rad(0), math.rad(-5 * math.cos(sine / 10) / 2)), .3)
  2906. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.6 + .07 * math.cos(sine / 23), -.2) * angles(math.rad(110), math.rad(40), math.rad(-40)), .3)
  2907. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6 + .07 * math.cos(sine / 23), -.2) * angles(math.rad(110), math.rad(-40), math.rad(40)), .3)
  2908. RH.C0 = clerp(RH.C0, cn(1, -.8 - 0.3 * math.cos(sine / 8) / 2, -.05 + math.sin(sine / 8) / 2) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(10) - math.sin(sine / 8)), .3)
  2909. LH.C0 = clerp(LH.C0, cn(-1, -.8 + 0.3 * math.cos(sine / 8) / 2, -.05 - math.sin(sine / 8) / 2) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(-10) - math.sin(sine / 8)), .3)
  2910. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  2911. elseif attack == false and Mode == "Sword" then
  2912. change = 3
  2913. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.1 + .1 * math.sin(sine / 27)) * angles(math.rad(15), math.rad(0), math.rad(-60 + 10 * math.cos(sine / 13))), .3)
  2914. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-5), math.rad(-5), math.rad(60 - 10 * math.cos(sine / 13))), .3)
  2915. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -.5) * angles(math.rad(150 + 3 * math.cos(sine / 23)), math.rad(0), math.rad(-20)), 0.3)
  2916. LW.C0 = clerp(LW.C0, CFrame.new(-.3, 0.7, -1) * angles(math.rad(150 + 2 * math.cos(sine / 23)), math.rad(0), math.rad(40)), 0.3)
  2917. RH.C0 = clerp(RH.C0, cn(1, -1 - 0.3 * math.cos(sine / 8) / 2, -.05 + math.sin(sine / 8) / 2) * RHCF * angles(math.rad(-4), math.rad(40), math.rad(10) - math.sin(sine / 8)), .3)
  2918. LH.C0 = clerp(LH.C0, cn(-1, -.8 + 0.3 * math.cos(sine / 8) / 2, -.05 - math.sin(sine / 8) / 2) * LHCF * angles(math.rad(-4), math.rad(40), math.rad(-10) - math.sin(sine / 8)), .3)
  2919. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), .3)
  2920. end
  2921. end
  2922. end
  2923. if #Effects > 0 then
  2924. for e = 1, #Effects do
  2925. if Effects[e] ~= nil then
  2926. local Thing = Effects[e]
  2927. if Thing ~= nil then
  2928. local Part = Thing[1]
  2929. local Mode = Thing[2]
  2930. local Delay = Thing[3]
  2931. local IncX = Thing[4]
  2932. local IncY = Thing[5]
  2933. local IncZ = Thing[6]
  2934. if Thing[1].Transparency <= 1 then
  2935. if Thing[2] == "Block1" then
  2936. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2937. Mesh = Thing[1].Mesh
  2938. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2939. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2940. elseif Thing[2] == "Block2" then
  2941. Thing[1].CFrame = Thing[1].CFrame
  2942. Mesh = Thing[7]
  2943. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2944. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2945. elseif Thing[2] == "Cylinder" then
  2946. Mesh = Thing[1].Mesh
  2947. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2948. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2949. elseif Thing[2] == "Blood" then
  2950. Mesh = Thing[7]
  2951. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
  2952. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2953. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2954. elseif Thing[2] == "Elec" then
  2955. Mesh = Thing[1].Mesh
  2956. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  2957. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2958. elseif Thing[2] == "Disappear" then
  2959. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2960. elseif Thing[2] == "Shatter" then
  2961. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2962. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  2963. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  2964. Thing[6] = Thing[6] + Thing[5]
  2965. end
  2966. else
  2967. Part.Parent = nil
  2968. table.remove(Effects, e)
  2969. end
  2970. end
  2971. end
  2972. end
  2973. end
  2974. end
Add Comment
Please, Sign In to add comment