Advertisement
Skye_Blue

Mercenary Script

Jul 24th, 2017
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 97.89 KB | None | 0 0
  1. --[[NIGHTOWLACE_WEAPONRY]]--Edited by nobody1997
  2. wait(1 / 60)
  3. Effects = { }
  4. local Player = game.Players.localPlayer
  5. local Character = Player.Character
  6. local Humanoid = Character.Humanoid
  7. Humanoid.WalkSpeed = 25
  8. local mouse = Player:GetMouse()
  9. local m = Instance.new('Model', Character)
  10. m.Name = "WeaponModel"
  11. local LeftArm = Character["Left Arm"]
  12. local RightArm = Character["Right Arm"]
  13. local LeftLeg = Character["Left Leg"]
  14. local RightLeg = Character["Right Leg"]
  15. local Head = Character.Head
  16. local Torso = Character.Torso
  17. local cam = game.Workspace.CurrentCamera
  18. local RootPart = Character.HumanoidRootPart
  19. local RootJoint = RootPart.RootJoint
  20. local equipped = false
  21. local attack = false
  22. local Anim = 'Idle'
  23. local idle = 0
  24. local attacktype = 1
  25. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  26. local velocity = RootPart.Velocity.y
  27. local sine = 0
  28. local change = 1
  29. local grabbed = false
  30. local cn = CFrame.new
  31. local mr = math.rad
  32. local angles = CFrame.Angles
  33. local ud = UDim2.new
  34. local c3 = Color3.new
  35.  
  36. local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  37.  
  38. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  39. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  40. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  41.  
  42. function clerp(a, b, t)
  43. return a:lerp(b, t)
  44. end
  45.  
  46. --[[Credits to SazErenos for his Artificial Heartbeat]]--
  47.  
  48. ArtificialHB = Instance.new("BindableEvent", script)
  49. ArtificialHB.Name = "Heartbeat"
  50.  
  51. script:WaitForChild("Heartbeat")
  52.  
  53. frame = 1 / 30
  54. tf = 0
  55. allowframeloss = false
  56. tossremainder = false
  57. lastframe = tick()
  58. script.Heartbeat:Fire()
  59.  
  60. game:GetService("RunService").Heartbeat:connect(function(s, p)
  61. tf = tf + s
  62. if tf >= frame then
  63. if allowframeloss then
  64. script.Heartbeat:Fire()
  65. lastframe = tick()
  66. else
  67. for i = 1, math.floor(tf / frame) do
  68. script.Heartbeat:Fire()
  69. end
  70. lastframe = tick()
  71. end
  72. if tossremainder then
  73. tf = 0
  74. else
  75. tf = tf - frame * math.floor(tf / frame)
  76. end
  77. end
  78. end)
  79.  
  80. function swait(num)
  81. if num == 0 or num == nil then
  82. ArtificialHB.Event:wait()
  83. else
  84. for i = 0, num do
  85. ArtificialHB.Event:wait()
  86. end
  87. end
  88. end
  89.  
  90. local RbxUtility = LoadLibrary("RbxUtility")
  91. local Create = RbxUtility.Create
  92.  
  93. --[[ Credits to Fenrier for Outline-Remover, Part, Mesh, Weld, Raycase and Sound Creation functions ]]--
  94.  
  95. function RemoveOutlines(part)
  96. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  97. end
  98.  
  99. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  100. local Part = Create("Part"){
  101. Parent = Parent,
  102. Reflectance = Reflectance,
  103. Transparency = Transparency,
  104. CanCollide = false,
  105. Locked = true,
  106. BrickColor = BrickColor.new(tostring(BColor)),
  107. Name = Name,
  108. Size = Size,
  109. Material = Material,
  110. }
  111. RemoveOutlines(Part)
  112. return Part
  113. end
  114.  
  115. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  116. local Msh = Create(Mesh){
  117. Parent = Part,
  118. Offset = OffSet,
  119. Scale = Scale,
  120. }
  121. if Mesh == "SpecialMesh" then
  122. Msh.MeshType = MeshType
  123. Msh.MeshId = MeshId
  124. end
  125. return Msh
  126. end
  127.  
  128. function CreateWeld(Parent, Part0, Part1, C0, C1)
  129. local Weld = Create("Weld"){
  130. Parent = Parent,
  131. Part0 = Part0,
  132. Part1 = Part1,
  133. C0 = C0,
  134. C1 = C1,
  135. }
  136. return Weld
  137. end
  138.  
  139. function CreateBillBoardGui(Img, Pos, Siz) --returns a basic billboard gui object for further manipulation
  140. local billpar = Create("Part"){
  141. Transparency = 1,
  142. Size = Vector3.new(1, 1, 1),
  143. Anchored = true,
  144. CanCollide = false,
  145. CFrame = CFrame.new(Pos),
  146. Name = "BillboardGuiPart",
  147. }
  148. local bill = Create("BillboardGui"){
  149. Parent = billpar,
  150. Adornee = billpar,
  151. Size = UDim2.new(1, 0, 1, 0),
  152. SizeOffset = Vector2.new(Siz, Siz),
  153. }
  154. local d = Create("ImageLabel"){
  155. Parent = bill,
  156. BackgroundTransparency = 1,
  157. Size = UDim2.new(1, 0, 1, 0),
  158. Image = Img,
  159. }
  160. return billpar
  161. end
  162.  
  163. function rayCast(Position, Direction, Range, Ignore)
  164. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  165. end
  166.  
  167. function CreateSound(id, par, vol, pit)
  168. coroutine.resume(coroutine.create(function()
  169. local S = Create("Sound"){
  170. Volume = vol,
  171. Pitch = pit or 1,
  172. SoundId = id,
  173. Parent = par or workspace,
  174. }
  175. swait()
  176. S:play()
  177. game:GetService("Debris"):AddItem(S, 6)
  178. end))
  179. end
  180.  
  181. local function GetNearest(obj, distance)
  182. local last, lastx = distance + 1
  183. for i, v in pairs(workspace:GetChildren()) do
  184. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  185. local t = v.Torso
  186. local dist = (t.Position - obj.Position).magnitude
  187. if dist <= distance then
  188. if dist < last then
  189. last = dist
  190. lastx = v
  191. end
  192. end
  193. end
  194. end
  195. return lastx
  196. end
  197.  
  198. --[[ Credits to Kert109 (Ninja_Deer) for the Damage function. Fenrier for the Magnitude Damage ]]--
  199.  
  200. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  201. for i, v in pairs(hit:GetChildren()) do
  202. if v:IsA("Humanoid") and hit.Name ~= Character.Name then
  203. local find = v:FindFirstChild("DebounceHit")
  204. if not find then
  205. if v.Parent:findFirstChild("Head") then
  206. local BillG = Create("BillboardGui"){
  207. Parent = v.Parent.Head,
  208. Size = UDim2.new(1, 0, 1, 0),
  209. Adornee = v.Parent.Head,
  210. StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  211. }
  212. local TL = Create("TextLabel"){
  213. Parent = BillG,
  214. Size = UDim2.new(3, 3, 3, 3),
  215. BackgroundTransparency = 1,
  216. Text = tostring(damage).."-",
  217. TextColor3 = Color1.Color,
  218. TextStrokeColor3 = Color2.Color,
  219. TextStrokeTransparency = 0,
  220. TextXAlignment = Enum.TextXAlignment.Center,
  221. TextYAlignment = Enum.TextYAlignment.Center,
  222. FontSize = Enum.FontSize.Size18,
  223. Font = "ArialBold",
  224. }
  225. coroutine.resume(coroutine.create(function()
  226. swait(1)
  227. for i = 0, 1, .1 do
  228. swait(.1)
  229. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  230. end
  231. BillG:Destroy()
  232. end))
  233. end
  234. v.Health = v.Health - damage
  235. local bool = Create("BoolValue"){
  236. Parent = v,
  237. Name = "DebounceHit",
  238. }
  239. if HSound ~= nil and HPitch ~= nil then
  240. CreateSound(HSound, hit, 1, HPitch)
  241. end
  242. game:GetService("Debris"):AddItem(bool, cooldown)
  243. end
  244. end
  245. end
  246. end
  247.  
  248. function MagnitudeDamage(Part, magni, mindam, maxdam, Color1, Color2, HSound, HPitch)
  249. for _, c in pairs(workspace:children()) do
  250. local hum = c:findFirstChild("Humanoid")
  251. if hum ~= nil then
  252. local head = c:findFirstChild("Torso")
  253. if head ~= nil then
  254. local targ = head.Position - Part.Position
  255. local mag = targ.magnitude
  256. if mag <= magni and c.Name ~= Player.Name then
  257. Damage(head.Parent, math.random(mindam, maxdam), 0.5, Color1, Color2, HSound, HPitch)
  258. end
  259. end
  260. end
  261. end
  262. end
  263.  
  264. Handle = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Bright red", "Handle", Vector3.new(3.20000005, 0.320000023, 0.200000003))
  265. 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))
  266. CreateMesh("BlockMesh", Handle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.800000072))
  267. FakeHandle = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Bright red", "FakeHandle", Vector3.new(1.92000008, 0.320000023, 0.200000003))
  268. 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))
  269. BladeHitbox = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Bright red", "BladeHitbox", Vector3.new(6.87999964, 1.28000009, 0.320000023))
  270. 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))
  271. BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Bright red", "BladePrt", Vector3.new(6.71999979, 0.640000045, 0.200000003))
  272. 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))
  273. CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.0104, 0.0104, 0.00800000038))
  274. BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Really black", "BladePrt", Vector3.new(4.96000051, 0.320000023, 0.480000019))
  275. 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))
  276. CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.00879999995, 0.00560000027, 0.0160000008))
  277. BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Really black", "BladePrt", Vector3.new(6.71999979, 0.320000023, 0.200000003))
  278. 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))
  279. CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.00960000046, 0.00520000001, 0.00960000046))
  280. BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Really black", "BladePrt", Vector3.new(6.71999979, 0.320000023, 0.200000003))
  281. 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))
  282. CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.00960000046, 0.00520000001, 0.00960000046))
  283. BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Bright red", "BladePrt", Vector3.new(4.32000065, 0.200000003, 0.480000019))
  284. 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))
  285. CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.0064000003, 0.00320000015, 0.0200000014))
  286. BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Really black", "BladePrt", Vector3.new(4.96000004, 0.320000023, 0.480000019))
  287. 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))
  288. CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.00879999995, 0.00560000027, 0.0160000008))
  289. BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Bright red", "BladePrt", Vector3.new(6.71999979, 0.640000045, 0.200000003))
  290. 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))
  291. CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.0104, 0.0104, 0.00800000038))
  292. BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Bright red", "BladePrt", Vector3.new(4.32000065, 0.200000003, 0.480000019))
  293. 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))
  294. CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.0064000003, 0.00320000015, 0.0200000014))
  295. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Bright red", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  296. 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))
  297. CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(0.800000072, 0.800000072, 0.800000072))
  298. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Really black", "Part", Vector3.new(0.320000023, 0.200000003, 0.200000003))
  299. 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))
  300. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
  301. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  302. 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))
  303. CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(0.800000072, 0.800000072, 0.800000072))
  304. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Really black", "Part", Vector3.new(3.20000005, 0.200000003, 0.200000003))
  305. 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))
  306. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
  307. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Really black", "Part", Vector3.new(0.200000003, 0.960000038, 0.320000023))
  308. 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))
  309. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.800000072, 1, 1))
  310. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Bright red", "Part", Vector3.new(0.320000023, 3.20000005, 0.200000003))
  311. 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))
  312. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.800000072))
  313. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Bright red", "Part", Vector3.new(3.20000005, 0.200000003, 0.200000003))
  314. 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))
  315. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
  316. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Really black", "Part", Vector3.new(0.320000023, 0.200000003, 0.200000003))
  317. 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))
  318. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
  319. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Bright red", "Part", Vector3.new(0.320000023, 0.200000003, 0.200000003))
  320. 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))
  321. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
  322. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Really black", "Part", Vector3.new(0.320000023, 0.200000003, 0.200000003))
  323. 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))
  324. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
  325. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Really black", "Part", Vector3.new(0.320000023, 3.20000005, 0.200000003))
  326. 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))
  327. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.800000072))
  328. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Bright red", "Part", Vector3.new(0.320000023, 0.320000023, 0.320000023))
  329. 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))
  330. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  331. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Really black", "Part", Vector3.new(0.320000023, 0.200000003, 0.320000023))
  332. 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))
  333. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 1))
  334. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Bright red", "Part", Vector3.new(0.320000023, 0.320000023, 0.320000023))
  335. 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))
  336. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  337. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Bright red", "Part", Vector3.new(0.320000023, 0.960000038, 0.320000023))
  338. 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))
  339. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Really black", "Part", Vector3.new(0.320000023, 0.200000003, 0.320000023))
  340. 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))
  341. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 1))
  342. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Really black", "Part", Vector3.new(0.200000003, 0.960000038, 0.320000023))
  343. 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))
  344. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.800000072, 1, 1))
  345. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Really black", "Part", Vector3.new(0.320000023, 0.200000003, 0.320000023))
  346. 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))
  347. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 1))
  348. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Really black", "Part", Vector3.new(0.320000023, 0.200000003, 0.320000023))
  349. 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))
  350. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 1))
  351. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Really black", "Part", Vector3.new(0.200000003, 0.640000045, 0.200000003))
  352. 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))
  353. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.800000072, 1, 0.800000072))
  354. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Bright red", "Wedge", Vector3.new(0.351999998, 0.200000003, 0.200000003))
  355. 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))
  356. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
  357. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Bright red", "Wedge", Vector3.new(0.351999998, 0.200000003, 0.200000003))
  358. 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))
  359. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
  360. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Really black", "Wedge", Vector3.new(0.336000025, 0.200000003, 0.200000003))
  361. 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))
  362. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
  363. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Really black", "Wedge", Vector3.new(0.336000025, 0.200000003, 0.200000003))
  364. 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))
  365. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
  366. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Really black", "Wedge", Vector3.new(0.336000025, 0.200000003, 0.200000003))
  367. 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))
  368. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
  369. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Really black", "Wedge", Vector3.new(0.336000025, 0.200000003, 0.200000003))
  370. 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))
  371. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
  372. CreateMesh("BlockMesh", FakeHandle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.800000072))
  373. HandleL = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Really black", "HandleL", Vector3.new(1, 2, 1.01999998))
  374. 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))
  375. EffectPrt1 = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0.30000001192093, "Bright red", "EffectPrt1", Vector3.new(0.600000024, 0.600000024, 0.400000036))
  376. 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))
  377. CreateMesh("SpecialMesh", EffectPrt1, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  378. EffectPrt2 = CreatePart(m, Enum.Material.SmoothPlastic, 0.30000001192093, 0, "Really black", "EffectPrt2", Vector3.new(0.600000024, 0.600000024, 0.400000036))
  379. 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))
  380. 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))
  381. HitboxL = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Really black", "HitboxL", Vector3.new(1.20000005, 1.39999998, 1.01999998))
  382. 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))
  383. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Really black", "Part", Vector3.new(0.75, 0.200000003, 0.200000003))
  384. 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))
  385. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 1.01999998))
  386. 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))
  387. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Really black", "Part", Vector3.new(0.600000024, 0.200000003, 1.01999998))
  388. 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))
  389. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Really black", "Part", Vector3.new(0.75, 0.200000003, 0.200000003))
  390. 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))
  391. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Really black", "Part", Vector3.new(0.200000003, 1.20000005, 1.00999999))
  392. 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))
  393. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0.19999998807907, "Bright red", "Part", Vector3.new(0.400000036, 0.400000036, 0.400000006))
  394. 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))
  395. CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  396. ThunderHoleL = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Bright red", "ThunderHoleL", Vector3.new(0.200000003, 1.05000007, 0.200000003))
  397. 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))
  398. CreateMesh("CylinderMesh", ThunderHoleL, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  399. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Bright red", "Wedge", Vector3.new(0.200000003, 0.800000012, 0.200000003))
  400. 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))
  401. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  402. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Bright red", "Wedge", Vector3.new(0.200000003, 0.600000024, 0.200000003))
  403. 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))
  404. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  405. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Bright red", "Wedge", Vector3.new(0.200000003, 0.400000006, 0.200000003))
  406. 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))
  407. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  408. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Bright red", "Wedge", Vector3.new(0.200000003, 0.600000024, 0.200000003))
  409. 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))
  410. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  411. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Really black", "Wedge", Vector3.new(1.01999998, 1.80999994, 0.619999945))
  412. 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))
  413. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  414. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Really black", "Wedge", Vector3.new(1.03999996, 1.00999999, 1.01999998))
  415. 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))
  416. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  417. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Bright red", "Wedge", Vector3.new(0.200000003, 0.800000012, 0.200000003))
  418. 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))
  419. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  420. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Bright red", "Wedge", Vector3.new(0.200000003, 0.400000006, 0.200000003))
  421. 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))
  422. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  423. HandleR = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Really black", "HandleR", Vector3.new(1, 2, 1.01999998))
  424. 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))
  425. Barrel1 = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Really black", "Barrel1", Vector3.new(0.600000024, 1.20000005, 0.400000036))
  426. 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))
  427. CreateMesh("SpecialMesh", Barrel1, Enum.MeshType.FileMesh, "rbxassetid://433397018", Vector3.new(0, 0, 0), Vector3.new(0.00999999978, 0.00999999978, 0.00999999978))
  428. Barrel2 = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Really black", "Barrel2", Vector3.new(0.600000024, 1.20000005, 0.400000036))
  429. 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))
  430. CreateMesh("SpecialMesh", Barrel2, Enum.MeshType.FileMesh, "rbxassetid://433397018", Vector3.new(0, 0, 0), Vector3.new(0.00999999978, 0.00999999978, 0.00999999978))
  431. Choke1 = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Really black", "Choke1", Vector3.new(0.600000024, 0.400000006, 0.400000036))
  432. 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))
  433. CreateMesh("SpecialMesh", Choke1, Enum.MeshType.FileMesh, "rbxassetid://433397231", Vector3.new(0, 0, 0), Vector3.new(0.00999999978, 0.00999999978, 0.00999999978))
  434. Choke2 = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Really black", "Choke2", Vector3.new(0.600000024, 0.400000006, 0.400000036))
  435. 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))
  436. CreateMesh("SpecialMesh", Choke2, Enum.MeshType.FileMesh, "rbxassetid://433397231", Vector3.new(0, 0, 0), Vector3.new(0.00999999978, 0.00999999978, 0.00999999978))
  437. HitboxR = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Really black", "HitboxR", Vector3.new(1.20000005, 0.99999994, 1.01999998))
  438. 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))
  439. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Really black", "Part", Vector3.new(0.75, 0.200000003, 0.200000003))
  440. 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))
  441. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Really black", "Part", Vector3.new(0.400000006, 0.819999993, 1.01999998))
  442. 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))
  443. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Really black", "Part", Vector3.new(0.600000024, 0.200000003, 1.01999998))
  444. 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))
  445. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Really black", "Part", Vector3.new(0.409999996, 2.01999998, 1.01999998))
  446. 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))
  447. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Really black", "Part", Vector3.new(0.75, 0.200000003, 0.200000003))
  448. 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))
  449. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Really black", "Part", Vector3.new(0.409999967, 0.200000003, 1.01999998))
  450. 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))
  451. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 1.01999998))
  452. 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))
  453. ThunderHoleR = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Bright red", "ThunderHoleR", Vector3.new(0.200000003, 1.05000007, 0.200000003))
  454. 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))
  455. CreateMesh("CylinderMesh", ThunderHoleR, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  456. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Bright red", "Wedge", Vector3.new(0.200000003, 0.800000012, 0.200000003))
  457. 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))
  458. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  459. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Bright red", "Wedge", Vector3.new(0.200000003, 0.600000024, 0.200000003))
  460. 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))
  461. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  462. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Bright red", "Wedge", Vector3.new(0.200000003, 0.400000006, 0.200000003))
  463. 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))
  464. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  465. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Really black", "Wedge", Vector3.new(1.01999998, 0.200000003, 0.400000006))
  466. 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))
  467. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  468. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Really black", "Wedge", Vector3.new(1.03999996, 1.00999999, 1.01999998))
  469. 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))
  470. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  471. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Bright red", "Wedge", Vector3.new(0.200000003, 0.600000024, 0.200000003))
  472. 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))
  473. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  474. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Bright red", "Wedge", Vector3.new(0.200000003, 0.400000006, 0.200000003))
  475. 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))
  476. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  477. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Really black", "Wedge", Vector3.new(1.01999998, 0.200000003, 0.400000006))
  478. 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))
  479. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  480. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Bright red", "Wedge", Vector3.new(0.200000003, 0.800000012, 0.200000003))
  481. 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))
  482. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  483. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Really black", "Wedge", Vector3.new(1.00999999, 0.410000026, 0.410000026))
  484. 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))
  485. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  486.  
  487. ------------------------------------------------------
  488. amusicOn = true
  489.  
  490. Me = game.Players.LocalPlayer
  491. player = Me
  492. char = Me.Character
  493. chara = char
  494. larm = char["Left Arm"]
  495. rarm = char["Right Arm"]
  496. lleg = char["Left Leg"]
  497. rleg = char["Right Leg"]
  498. torso = char.Torso
  499. hed = char.Head
  500. mouse = player:GetMouse()
  501. lght = game.Lighting
  502. lichtact = false
  503. moosicact = false
  504. gotsagofest = true
  505. chara.Humanoid.MaxHealth = math.huge + 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  506. chara.Humanoid.Health = math.huge + 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  507.  
  508.  
  509.  
  510. local naeeym = Instance.new("BillboardGui",chara)
  511. naeeym.Size = UDim2.new(0,100,0,40)
  512. naeeym.StudsOffset = Vector3.new(0,2,0)
  513. naeeym.Adornee = chara.Head
  514. local tecks = Instance.new("TextLabel",naeeym)
  515. tecks.BackgroundTransparency = 1
  516. tecks.BorderSizePixel = 0
  517. tecks.Text = "Mercenary"
  518. tecks.Font = "Bodoni"
  519. tecks.FontSize = "Size36"
  520. tecks.TextStrokeTransparency = 0.5
  521. tecks.TextColor3 = Color3.new(0,0,0)
  522. rrer = BrickColor.new("Really red")
  523. tecks.TextStrokeColor3 = rrer.Color
  524. tecks.Size = UDim2.new(1,0,0.5,0)
  525. local licht = Instance.new("PointLight",chara.Torso)
  526. licht.Color = tecks.TextStrokeColor3
  527. licht.Range = 60
  528. licht.Brightness = 1
  529. licht.Enabled = false
  530. ------------------------------------------------------
  531. for i,v in pairs(Character:children()) do
  532. if v:IsA("Hat") then
  533. v:Destroy()
  534. end
  535. end
  536. for i,v in pairs(Character:children()) do
  537. if v:IsA("Accessory") then
  538. v:Destroy()
  539. end
  540. end
  541. for i,v in pairs(Character:children()) do
  542. if v:IsA("Hair") then
  543. v:Destroy()
  544. end
  545. end
  546. for i,v in pairs(Character:children()) do
  547. if v:IsA("Shirt") then
  548. v:Destroy()
  549. end
  550. end
  551. for i,v in pairs(Character:children()) do
  552. if v:IsA("Pants") then
  553. v:Destroy()
  554. end
  555. end
  556. ------------------------------------------------------
  557. ypcall(function()
  558. shirt = Instance.new("Shirt", Character)
  559. shirt.Name = "Shirt"
  560. pants = Instance.new("Pants", Character)
  561. pants.Name = "Pants"
  562. Character.Shirt.ShirtTemplate = "rbxassetid://764461318"
  563. Character.Pants.PantsTemplate = "rbxassetid://642343122"
  564. end)
  565. --[[ Credits to Fenrier for the Effect Functions. ]]--
  566.  
  567. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  568. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  569. prt.Anchored = true
  570. prt.CFrame = cframe
  571. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  572. game:GetService("Debris"):AddItem(prt, 10)
  573. if Type == 1 or Type == nil then
  574. table.insert(Effects, {
  575. prt,
  576. "Block1",
  577. delay,
  578. x3,
  579. y3,
  580. z3,
  581. msh
  582. })
  583. elseif Type == 2 then
  584. table.insert(Effects, {
  585. prt,
  586. "Block2",
  587. delay,
  588. x3,
  589. y3,
  590. z3,
  591. msh
  592. })
  593. end
  594. end
  595.  
  596. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  597. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  598. prt.Anchored = true
  599. prt.CFrame = cframe
  600. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  601. game:GetService("Debris"):AddItem(prt, 10)
  602. table.insert(Effects, {
  603. prt,
  604. "Cylinder",
  605. delay,
  606. x3,
  607. y3,
  608. z3,
  609. msh
  610. })
  611. end
  612.  
  613. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  614. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  615. prt.Anchored = true
  616. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  617. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  618. game:GetService("Debris"):AddItem(prt, 10)
  619. table.insert(Effects, {
  620. prt,
  621. "Cylinder",
  622. delay,
  623. x3,
  624. y3,
  625. z3,
  626. msh
  627. })
  628. end
  629.  
  630. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  631. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  632. prt.Anchored = true
  633. prt.CFrame = cframe
  634. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  635. game:GetService("Debris"):AddItem(prt, 10)
  636. table.insert(Effects, {
  637. prt,
  638. "Cylinder",
  639. delay,
  640. x3,
  641. y3,
  642. z3,
  643. msh
  644. })
  645. end
  646.  
  647. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  648. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  649. prt.Anchored = true
  650. prt.CFrame = cframe
  651. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  652. game:GetService("Debris"):AddItem(prt, 10)
  653. table.insert(Effects, {
  654. prt,
  655. "Cylinder",
  656. delay,
  657. x3,
  658. y3,
  659. z3,
  660. msh
  661. })
  662. end
  663.  
  664. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  665. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  666. prt.Anchored = true
  667. prt.CFrame = cframe
  668. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  669. game:GetService("Debris"):AddItem(prt, 10)
  670. table.insert(Effects, {
  671. prt,
  672. "Cylinder",
  673. delay,
  674. x3,
  675. y3,
  676. z3,
  677. msh
  678. })
  679. end
  680.  
  681. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  682. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  683. prt.Anchored = true
  684. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  685. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  686. local num = math.random(10, 50) / 1000
  687. game:GetService("Debris"):AddItem(prt, 10)
  688. table.insert(Effects, {
  689. prt,
  690. "Shatter",
  691. num,
  692. prt.CFrame,
  693. math.random() - math.random(),
  694. 0,
  695. math.random(50, 100) / 100
  696. })
  697. end
  698.  
  699. --[[ Attack Functions ]]--
  700.  
  701. local Mode = "Normal"
  702.  
  703. RSH = Torso["Right Shoulder"]
  704. LSH = Torso["Left Shoulder"]
  705. RH = Torso["Right Hip"]
  706. LH = Torso["Left Hip"]
  707. Animate = Character.Animate
  708. Animator = Humanoid.Animator
  709.  
  710. function Equip()
  711. attack = true
  712. equipped = true
  713. RSH.Parent = nil
  714. LSH.Parent = nil
  715. Animator.Parent = nil
  716. Animate.Disabled = true
  717. change = 3
  718. RW = Create("Weld"){
  719. Name = "Right Shoulder",
  720. Part0 = Torso ,
  721. C0 = CFrame.new(1.5, 0.5, 0),
  722. C1 = CFrame.new(0, 0.5, 0),
  723. Part1 = RightArm ,
  724. Parent = Torso ,
  725. }
  726. LW = Create("Weld"){
  727. Name = "Left Shoulder",
  728. Part0 = Torso ,
  729. C0 = CFrame.new(-1.5, 0.5, 0),
  730. C1 = CFrame.new(0, 0.5, 0) ,
  731. Part1 = LeftArm ,
  732. Parent = Torso ,
  733. }
  734. CreateSound("http://roblox.com/asset/?id=346134880", Torso, 1, 1)
  735. for i = 0, 1, 0.1 do
  736. swait()
  737. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), .2)
  738. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  739. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, -.5) * angles(math.rad(0), math.rad(170), math.rad(90)), .25)
  740. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.3, -.7) * angles(math.rad(0), math.rad(-170), math.rad(-110)), .25)
  741. if Torsovelocity < 1 then
  742. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(5)), .2)
  743. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(-5)), .2)
  744. elseif Torsovelocity > 2 then
  745. 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)
  746. 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)
  747. end
  748. end
  749. CreateSound("http://roblox.com/asset/?id=346134880", Torso, 1, .9)
  750. for i = 0, 1, 0.1 do
  751. swait()
  752. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), .2)
  753. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  754. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, -.5) * angles(math.rad(0), math.rad(170), math.rad(95)), .34)
  755. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, -.7) * angles(math.rad(0), math.rad(-170), math.rad(-120)), .34)
  756. if Torsovelocity < 1 then
  757. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(5)), .2)
  758. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(-5)), .2)
  759. elseif Torsovelocity > 2 then
  760. 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)
  761. 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)
  762. end
  763. end
  764. for i = 0, 1, 0.1 do
  765. swait()
  766. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), .2)
  767. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  768. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, -.7) * angles(math.rad(0), math.rad(170), math.rad(110)), .25)
  769. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.3, -.5) * angles(math.rad(0), math.rad(-170), math.rad(-90)), .25)
  770. if Torsovelocity < 1 then
  771. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(5)), .2)
  772. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(-5)), .2)
  773. elseif Torsovelocity > 2 then
  774. 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)
  775. 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)
  776. end
  777. end
  778. for i = 0, 1, 0.1 do
  779. swait()
  780. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), .2)
  781. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  782. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, -.7) * angles(math.rad(0), math.rad(170), math.rad(120)), .34)
  783. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.3, -.7) * angles(math.rad(0), math.rad(-180), math.rad(-95)), .34)
  784. if Torsovelocity < 1 then
  785. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(5)), .2)
  786. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(-5)), .2)
  787. elseif Torsovelocity > 2 then
  788. 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)
  789. 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)
  790. end
  791. end
  792. attack = false
  793. end
  794.  
  795. function Unequip()
  796. attack = true
  797. for i = 0, 1, 0.1 do
  798. swait()
  799. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  800. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  801. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  802. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  803. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  804. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  805. end
  806. equipped = false
  807. RW.Parent = nil
  808. LW.Parent = nil
  809. RSH.Parent = Torso
  810. LSH.Parent = Torso
  811. Torso.Neck.C0 = NeckCF
  812. RootJoint.C0 = RootCF
  813. Animator.Parent = Humanoid
  814. Animate.Disabled = false
  815. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  816. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  817. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  818. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  819. attack = false
  820. end
  821.  
  822. function attackone()
  823. attack = true
  824. local Con1 = HitboxL.Touched:connect(function(hit)
  825. Damage(hit.Parent, math.random(40, 75), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
  826. end)
  827. for i = 0, 1, 0.13 do
  828. swait()
  829. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.3) * angles(math.rad(0), math.rad(0), math.rad(70)), .3)
  830. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-70)), .3)
  831. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0, -.3) * angles(math.rad(180), math.rad(-20), math.rad(10)), .3)
  832. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.4, -.7) * angles(math.rad(0), math.rad(-150), math.rad(-90)), .3)
  833. RH.C0 = clerp(RH.C0, cn(1, -.8, 0) * RHCF * angles(math.rad(-4), math.rad(-40), math.rad(0)), .3)
  834. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-4), math.rad(-40), math.rad(30)), .3)
  835. end
  836. CreateSound("http://www.roblox.com/asset/?id=200632136", HitboxL, 1, 1)
  837. for i = 0, 1, 0.12 do
  838. swait()
  839. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.3) * angles(math.rad(20), math.rad(0), math.rad(-80)), .54)
  840. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-10), math.rad(-10), math.rad(80)), .54)
  841. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, .3) * angles(math.rad(50), math.rad(20), math.rad(0)), .54)
  842. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.7, -.3) * angles(math.rad(0), math.rad(-20), math.rad(-110)), .54)
  843. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-4), math.rad(40), math.rad(-10)), .54)
  844. LH.C0 = clerp(LH.C0, cn(-1, -.7, 0) * LHCF * angles(math.rad(-4), math.rad(40), math.rad(-20)), .54)
  845. end
  846. Con1:disconnect()
  847. attack = false
  848. end
  849.  
  850. function attacktwo()
  851. attack = true
  852. local Con1 = HitboxR.Touched:connect(function(hit)
  853. Damage(hit.Parent, math.random(40, 75), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
  854. end)
  855. for i = 0, 1, 0.13 do
  856. swait()
  857. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.4) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3)
  858. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(80)), .3)
  859. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(-90), math.rad(0)), .3)
  860. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.4) * angles(math.rad(120), math.rad(0), math.rad(10)), .3)
  861. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(-40)), .3)
  862. LH.C0 = clerp(LH.C0, cn(-1, -.7, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  863. end
  864. CreateSound("http://www.roblox.com/asset/?id=200632136", HitboxR, 1, 1.1)
  865. for i = 0, 1, 0.12 do
  866. swait()
  867. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0) * angles(math.rad(0), math.rad(0), math.rad(80)), .55)
  868. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-80)), .55)
  869. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.6, -.3) * angles(math.rad(180), math.rad(-20), math.rad(10)), .55)
  870. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(10)), .55)
  871. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .55)
  872. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .55)
  873. end
  874. Con1:disconnect()
  875. attack = false
  876. end
  877.  
  878. function attackthree()
  879. attack = true
  880. local Con1 = HitboxL.Touched:connect(function(hit)
  881. Damage(hit.Parent, math.random(40, 75), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
  882. end)
  883. local Con2 = HitboxR.Touched:connect(function(hit)
  884. Damage(hit.Parent, math.random(40, 75), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
  885. end)
  886. for i = 0, 1, 0.13 do
  887. swait()
  888. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), .3)
  889. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(0)), .3)
  890. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.5) * angles(math.rad(90), math.rad(50), math.rad(0)), .3)
  891. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0.5) * angles(math.rad(90), math.rad(-50), math.rad(0)), .3)
  892. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(-20)), .3)
  893. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(20)), .3)
  894. end
  895. CreateSound("http://www.roblox.com/asset/?id=200632136", Torso, 1, .8)
  896. Torso.Velocity = RootPart.CFrame.lookVector * 120
  897. for i = 0, 1, 0.13 do
  898. swait()
  899. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), .55)
  900. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-10), math.rad(0), math.rad(0)), .55)
  901. RW.C0 = clerp(RW.C0, CFrame.new(.8, 0.5, -.8) * angles(math.rad(120), math.rad(60), math.rad(0)), .55)
  902. LW.C0 = clerp(LW.C0, CFrame.new(-.8, 0.5, -.8) * angles(math.rad(120), math.rad(-60), math.rad(0)), .55)
  903. RH.C0 = clerp(RH.C0, cn(1, -.6, -.2) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(-20)), .3)
  904. LH.C0 = clerp(LH.C0, cn(-1, -.8, -.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(10)), .3)
  905. end
  906. Con1:disconnect()
  907. Con2:disconnect()
  908. attack = false
  909. end
  910.  
  911. function attackfour()
  912. attack = true
  913. Torso.Velocity = Vector3.new(0, 100, 0)
  914. Humanoid.Jump = true
  915. CreateSound("http://roblox.com/asset/?id=199145327", Torso, 1, .8)
  916. for i = 0, 1, 0.12 do
  917. swait()
  918. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(6 * i, math.rad(0), math.rad(0)), .3)
  919. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  920. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(-40)), .3)
  921. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(40)), .3)
  922. RH.C0 = clerp(RH.C0, cn(1, -.2, -.5) * RHCF * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  923. LH.C0 = clerp(LH.C0, cn(-1, -.1, -.5) * LHCF * angles(math.rad(0), math.rad(0), math.rad(20)), .3)
  924. end
  925. for i = 0, 1, 0.12 do
  926. swait()
  927. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10 * i), math.rad(0), math.rad(0)), .5)
  928. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(0)), .5)
  929. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(60)), .5)
  930. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-60)), .5)
  931. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(40)), .5)
  932. LH.C0 = clerp(LH.C0, cn(-1, 0, -.5) * LHCF * angles(math.rad(0), math.rad(0), math.rad(20)), .5)
  933. end
  934. local hitfloor = nil
  935. while hitfloor == nil do
  936. swait()
  937. hitfloor, posfloor = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 3, Character)
  938. end
  939. MagnitudeDamage(RootPart, 30, 20, 35, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
  940. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 6, Character)
  941. if hit ~= nil then
  942. local Color = hit.BrickColor
  943. local refpart = CreatePart(workspace, "SmoothPlastic", 0, 1, "Really black", "Effect", Vector3.new())
  944. refpart.Anchored = true
  945. refpart.CFrame = CFrame.new(pos)
  946. game:GetService("Debris"):AddItem(refpart, 1)
  947. CreateSound("http://www.roblox.com/asset/?id=199145477", refpart, .8, 1)
  948. for i = 1, 5 do
  949. local Color = hit.BrickColor
  950. local Materials = hit.Material
  951. 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))
  952. groundpart.Anchored = false
  953. groundpart.Material = Materials
  954. groundpart.CanCollide = true
  955. groundpart.Friction = 0.1
  956. groundpart.Velocity = Vector3.new(math.random(-50, 50), math.random(25, 50), math.random(-50, 50))
  957. 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))
  958. game:GetService("Debris"):AddItem(groundpart, 10)
  959. end
  960. for i = 1, 6 do
  961. local Color = hit.BrickColor
  962. local Materials = hit.Material
  963. 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))
  964. actualgroundpart.Anchored = true
  965. actualgroundpart.Material = Materials
  966. actualgroundpart.CanCollide = true
  967. actualgroundpart.Friction = 1
  968. 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))
  969. game:GetService("Debris"):AddItem(actualgroundpart, 10)
  970. end
  971. WaveEffect(hit.BrickColor, refpart.CFrame, .2, .2, .2, .5, .5, .5, .04)
  972. SphereEffect(hit.BrickColor, refpart.CFrame, .2, .2, .2, 3, 3, 3, .04)
  973. 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)
  974. end
  975. attack = false
  976. end
  977.  
  978. function ShootCannon(asd)
  979. local MainPos = asd.Position
  980. local MainPos2 = mouse.Hit.p
  981. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  982. num = 100
  983. coroutine.resume(coroutine.create(function()
  984. repeat
  985. swait()
  986. local hit, pos = rayCast(MainPos, MouseLook.lookVector, 10, RootPart.Parent)
  987. local mag = (MainPos - pos).magnitude
  988. CylinderEffect(BrickColor.new("Bright red"), CFrame.new((MainPos + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 3, mag * 5, 100, .1, 0, 1.5, 0.1)
  989. MainPos = MainPos + (MouseLook.lookVector * 10)
  990. num = num - 1
  991. if hit ~= nil then
  992. num = 0
  993. local ref = CreatePart(workspace, "Neon", 0, 1, BrickColor.new("Bright red"), "Reference", Vector3.new())
  994. ref.Anchored = true
  995. ref.CFrame = CFrame.new(pos)
  996. BlockEffect(BrickColor.new("Bright red"), CFrame.new(pos), 20, 20, 20, 5, 5, 5, 0.1)
  997. MagnitudeDamage(ref, 30, 25, 50, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
  998. game:GetService("Debris"):AddItem(ref, 1)
  999. end
  1000. until num <= 0
  1001. end))
  1002. end
  1003.  
  1004. gun = false
  1005.  
  1006. shoot = false
  1007.  
  1008. gunidle = false
  1009.  
  1010. local Loaded = false
  1011.  
  1012. function GunStance()
  1013. attack = true
  1014. gun = true
  1015. change = 3
  1016. Barrel1.Transparency = 0
  1017. Barrel2.Transparency = 0
  1018. Choke1.Transparency = 0
  1019. Choke2.Transparency = 0
  1020. for i = 0, 1, 0.1 do
  1021. swait()
  1022. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .3)
  1023. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-90)), .3)
  1024. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .3)
  1025. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  1026. HandleWeld.C0 = clerp(HandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1027. if Torsovelocity < 1 then
  1028. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .2)
  1029. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .2)
  1030. elseif Torsovelocity > 2 then
  1031. 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)
  1032. 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)
  1033. end
  1034. end
  1035. local offset = nil
  1036. gunidle = true
  1037. while gun == true do
  1038. swait()
  1039. local gunpos = Vector3.new(mouse.Hit.p.x, Head.Position.Y, mouse.Hit.p.z)
  1040. offset = (Torso.Position.y - mouse.Hit.p.y) / 60
  1041. local mag = (Torso.Position - mouse.Hit.p).magnitude / 80
  1042. offset = offset / mag
  1043. RW.C1 = clerp(RW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, offset), .5)
  1044. if Torsovelocity < 1 then
  1045. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .2)
  1046. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .2)
  1047. elseif Torsovelocity > 2 then
  1048. 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)
  1049. 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)
  1050. end
  1051. end
  1052. if shoot == true then
  1053. gunidle = false
  1054. CreateSound("rbxassetid://131632972", Torso, 1, 1.2)
  1055. CreateSound("rbxassetid://131632972", Torso, 1, 1)
  1056. CreateSound("rbxassetid://131632972", Torso, 1, .7)
  1057. ShootCannon(Choke1)
  1058. ShootCannon(Choke2)
  1059. for i = 0, 1, 0.15 do
  1060. swait()
  1061. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .3)
  1062. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-90)), .3)
  1063. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.7, 0) * angles(math.rad(0), math.rad(0), math.rad(150)), .5)
  1064. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3)
  1065. HandleWeld.C0 = clerp(HandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1066. if Torsovelocity < 1 then
  1067. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .2)
  1068. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .2)
  1069. elseif Torsovelocity > 2 then
  1070. 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)
  1071. 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)
  1072. end
  1073. end
  1074. Loaded = false
  1075. end
  1076. RW.C1 = clerp(RW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), 1)
  1077. Barrel1.Transparency = 1
  1078. Barrel2.Transparency = 1
  1079. Choke1.Transparency = 1
  1080. Choke2.Transparency = 1
  1081. gun = false
  1082. gunidle = false
  1083. shoot = false
  1084. attack = false
  1085. end
  1086.  
  1087. function Disappear()
  1088. for _, i in pairs(m:children()) do
  1089. if i.Name == "BladePrt" then
  1090. coroutine.resume(coroutine.create(function(Part)
  1091. for i = 0, 1, 0.1 do
  1092. swait()
  1093. Part.Transparency = i
  1094. end
  1095. Part.Transparency = 1
  1096. end), i)
  1097. end
  1098. end
  1099. end
  1100.  
  1101.  
  1102. function Reappear()
  1103. for _, i in pairs(m:children()) do
  1104. if i.Name == "BladePrt" then
  1105. coroutine.resume(coroutine.create(function(Part)
  1106. for i = 0, 1, 0.1 do
  1107. swait()
  1108. Part.Transparency = i
  1109. end
  1110. Part.Transparency = 0
  1111. end), i)
  1112. end
  1113. end
  1114. end
  1115.  
  1116. function BladeEquip()
  1117. attack = true
  1118. for i = 0, 1, 0.15 do
  1119. swait()
  1120. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1121. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1122. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, 0) * angles(math.rad(210), math.rad(0), math.rad(30)), .5)
  1123. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)), .3)
  1124. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  1125. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  1126. end
  1127. CreateSound("http://roblox.com/asset/?id=199145327", FakeHandle, .6, 1)
  1128. HandleWeld:remove()
  1129. 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))
  1130. for i = 0, 1, 0.1 do
  1131. swait()
  1132. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1133. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1134. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(80), math.rad(0), math.rad(70)), .3)
  1135. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)), .3)
  1136. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  1137. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  1138. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(90), math.rad(0), -6 * i), .3)
  1139. end
  1140. Reappear()
  1141. Mode = "Sword"
  1142. attack = false
  1143. end
  1144.  
  1145. function UnequipBlade()
  1146. attack = true
  1147. for i = 0, 1, 0.15 do
  1148. swait()
  1149. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1150. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1151. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, 0) * angles(math.rad(210), math.rad(0), math.rad(30)), .5)
  1152. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)), .3)
  1153. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  1154. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  1155. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(40), math.rad(-60)), .3)
  1156. end
  1157. Disappear()
  1158. HandleWeld:remove()
  1159. 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))
  1160. Mode = "Normal"
  1161. attack = false
  1162. end
  1163.  
  1164. function BladeAttackOne()
  1165. attack = true
  1166. local Con1 = BladeHitbox.Touched:connect(function(hit)
  1167. Damage(hit.Parent, math.random(10, 45), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
  1168. end)
  1169. for i = 0, 1, 0.15 do
  1170. swait()
  1171. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(60)), .3)
  1172. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-60)), .3)
  1173. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, -.5) * angles(math.rad(0), math.rad(150), math.rad(120)), .3)
  1174. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -.7) * angles(math.rad(0), math.rad(70), math.rad(90)), .3)
  1175. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(-10), math.rad(30)), .3)
  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, -1, 0) * LHCF * angles(math.rad(-5), math.rad(-30), math.rad(0)), .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. CreateSound("http://roblox.com/asset/?id=356430004", BladeHitbox, 1, .8)
  1185. for i = 0, 1, 0.15 do
  1186. swait()
  1187. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.1) * angles(math.rad(10), math.rad(0), math.rad(-60)), .4)
  1188. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-5), math.rad(-5), math.rad(60)), .4)
  1189. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, 0) * angles(math.rad(0), math.rad(70), math.rad(80)), .4)
  1190. LW.C0 = clerp(LW.C0, CFrame.new(-.4, 0.5, -1) * angles(math.rad(0), math.rad(20), math.rad(70)), .4)
  1191. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .4)
  1192. if Torsovelocity < 1 then
  1193. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(30), math.rad(0)), .2)
  1194. LH.C0 = clerp(LH.C0, cn(-1, -.9, 0) * LHCF * angles(math.rad(-5), math.rad(30), math.rad(-10)), .2)
  1195. elseif Torsovelocity > 2 then
  1196. 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)
  1197. 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)
  1198. end
  1199. end
  1200. Con1:disconnect()
  1201. attack = false
  1202. end
  1203.  
  1204. function BladeAttackTwo()
  1205. attack = true
  1206. local Con1 = BladeHitbox.Touched:connect(function(hit)
  1207. Damage(hit.Parent, math.random(10, 45), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
  1208. end)
  1209. for i = 0, 1, 0.15 do
  1210. swait()
  1211. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), .3)
  1212. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(60)), .3)
  1213. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.7) * angles(math.rad(0), math.rad(-70), math.rad(-90)), .3)
  1214. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, -.5) * angles(math.rad(0), math.rad(-150), math.rad(-120)), .3)
  1215. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(-10), math.rad(30)), .3)
  1216. if Torsovelocity < 1 then
  1217. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(30), math.rad(0)), .2)
  1218. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(30), math.rad(0)), .2)
  1219. elseif Torsovelocity > 2 then
  1220. 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)
  1221. 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)
  1222. end
  1223. end
  1224. CreateSound("http://roblox.com/asset/?id=356430004", BladeHitbox, 1, 1)
  1225. for i = 0, 1, 0.15 do
  1226. swait()
  1227. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.1) * angles(math.rad(10), math.rad(0), math.rad(60)), .4)
  1228. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-5), math.rad(5), math.rad(-60)), .4)
  1229. RW.C0 = clerp(RW.C0, CFrame.new(.4, 0.5, -1) * angles(math.rad(0), math.rad(-20), math.rad(-70)), .4)
  1230. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.1, 0) * angles(math.rad(0), math.rad(-70), math.rad(-80)), .4)
  1231. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30), math.rad(80)), .4)
  1232. if Torsovelocity < 1 then
  1233. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(-30), math.rad(0)), .2)
  1234. LH.C0 = clerp(LH.C0, cn(-1, -.9, 0) * LHCF * angles(math.rad(-5), math.rad(-30), math.rad(-10)), .2)
  1235. elseif Torsovelocity > 2 then
  1236. 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)
  1237. 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)
  1238. end
  1239. end
  1240. Con1:disconnect()
  1241. attack = false
  1242. end
  1243.  
  1244. function BladeAttackThree()
  1245. attack = true
  1246. local Con1 = BladeHitbox.Touched:connect(function(hit)
  1247. Damage(hit.Parent, math.random(10, 45), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
  1248. end)
  1249. for i = 0, 1, 0.15 do
  1250. swait()
  1251. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), .34)
  1252. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .34)
  1253. RW.C0 = clerp(RW.C0, CFrame.new(1, 1, -.5) * angles(math.rad(120), math.rad(0), math.rad(-40)), .34)
  1254. LW.C0 = clerp(LW.C0, CFrame.new(-1, 1, -.5) * angles(math.rad(120), math.rad(0), math.rad(40)), .34)
  1255. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), .4)
  1256. if Torsovelocity < 1 then
  1257. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(-10)), .34)
  1258. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(10)), .34)
  1259. elseif Torsovelocity > 2 then
  1260. 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)
  1261. 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)
  1262. end
  1263. end
  1264. CreateSound("http://roblox.com/asset/?id=356430004", BladeHitbox, 1, .7)
  1265. for i = 0, 1, 0.13 do
  1266. swait()
  1267. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.3) * angles(math.rad(0), math.rad(0), math.rad(0)), .5)
  1268. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(0)), .5)
  1269. RW.C0 = clerp(RW.C0, CFrame.new(1, .3, -.3) * angles(math.rad(10), math.rad(0), math.rad(-40)), .5)
  1270. LW.C0 = clerp(LW.C0, CFrame.new(-1, .3, -.3) * angles(math.rad(10), math.rad(0), math.rad(40)), .5)
  1271. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(30)), .5)
  1272. if Torsovelocity < 1 then
  1273. RH.C0 = clerp(RH.C0, cn(1, -.8, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(-10)), .34)
  1274. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(10)), .34)
  1275. elseif Torsovelocity > 2 then
  1276. 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)
  1277. 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)
  1278. end
  1279. end
  1280. Con1:disconnect()
  1281. attack = false
  1282. end
  1283.  
  1284. function BladeAttackFour()
  1285. attack = true
  1286. local Con1 = BladeHitbox.Touched:connect(function(hit)
  1287. Damage(hit.Parent, math.random(10, 45), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
  1288. end)
  1289. for i = 1,2 do
  1290. for i = 0, 1, 0.3 do
  1291. swait()
  1292. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(60)), .5)
  1293. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-60)), .5)
  1294. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, -.5) * angles(math.rad(0), math.rad(150), math.rad(120)), .5)
  1295. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -.7) * angles(math.rad(0), math.rad(70), math.rad(90)), .5)
  1296. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(-10), math.rad(30)), .5)
  1297. if Torsovelocity < 1 then
  1298. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(-30), math.rad(0)), .5)
  1299. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(-30), math.rad(0)), .5)
  1300. elseif Torsovelocity > 2 then
  1301. 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)
  1302. 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)
  1303. end
  1304. end
  1305. CreateSound("http://roblox.com/asset/?id=356430004", BladeHitbox, 1, 1)
  1306. for i = 0, 1, 0.3 do
  1307. swait()
  1308. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.1) * angles(math.rad(10), math.rad(0), math.rad(-60)), .4)
  1309. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-5), math.rad(-5), math.rad(60)), .4)
  1310. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, 0) * angles(math.rad(0), math.rad(70), math.rad(80)), .4)
  1311. LW.C0 = clerp(LW.C0, CFrame.new(-.4, 0.5, -1) * angles(math.rad(0), math.rad(20), math.rad(70)), .4)
  1312. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .4)
  1313. if Torsovelocity < 1 then
  1314. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(30), math.rad(0)), .2)
  1315. LH.C0 = clerp(LH.C0, cn(-1, -.9, 0) * LHCF * angles(math.rad(-5), math.rad(30), math.rad(-10)), .2)
  1316. elseif Torsovelocity > 2 then
  1317. 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)
  1318. 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)
  1319. end
  1320. end
  1321. for i = 0, 1, 0.3 do
  1322. swait()
  1323. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), .5)
  1324. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(60)), .5)
  1325. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.7) * angles(math.rad(0), math.rad(-70), math.rad(-110)), .5)
  1326. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, -.5) * angles(math.rad(0), math.rad(-150), math.rad(-120)), .5)
  1327. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(-10), math.rad(30)), .5)
  1328. if Torsovelocity < 1 then
  1329. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(30), math.rad(0)), .5)
  1330. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(30), math.rad(0)), .5)
  1331. elseif Torsovelocity > 2 then
  1332. 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)
  1333. 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)
  1334. end
  1335. end
  1336. CreateSound("http://roblox.com/asset/?id=356430004", BladeHitbox, 1, .8)
  1337. for i = 0, 1, 0.3 do
  1338. swait()
  1339. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.1) * angles(math.rad(10), math.rad(0), math.rad(60)), .4)
  1340. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-5), math.rad(5), math.rad(-60)), .4)
  1341. RW.C0 = clerp(RW.C0, CFrame.new(.4, 0.5, -1) * angles(math.rad(0), math.rad(-20), math.rad(-70)), .4)
  1342. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.1, 0) * angles(math.rad(0), math.rad(-70), math.rad(-80)), .4)
  1343. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30), math.rad(80)), .4)
  1344. if Torsovelocity < 1 then
  1345. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(-30), math.rad(0)), .2)
  1346. LH.C0 = clerp(LH.C0, cn(-1, -.9, 0) * LHCF * angles(math.rad(-5), math.rad(-30), math.rad(-10)), .2)
  1347. elseif Torsovelocity > 2 then
  1348. 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)
  1349. 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)
  1350. end
  1351. end
  1352. end
  1353. Con1:disconnect()
  1354. attack = false
  1355. end
  1356.  
  1357. --[[Attacks]]--
  1358.  
  1359. mouse.Button1Down:connect(function()
  1360. if attack == false and attacktype == 1 and equipped == true and Mode == "Normal" then
  1361. attacktype = 2
  1362. attackone()
  1363. elseif attack == false and attacktype == 2 and equipped == true and Mode == "Normal" then
  1364. attacktype = 3
  1365. attacktwo()
  1366. elseif attack == false and attacktype == 3 and equipped == true and Mode == "Normal" then
  1367. attacktype = 4
  1368. attackthree()
  1369. elseif attack == false and attacktype == 4 and equipped == true and Mode == "Normal" then
  1370. attacktype = 1
  1371. attackfour()
  1372. end
  1373. if attack == false and attacktype == 1 and equipped == true and Mode == "Sword" then
  1374. attacktype = 2
  1375. BladeAttackOne()
  1376. elseif attack == false and attacktype == 2 and equipped == true and Mode == "Sword" then
  1377. attacktype = 3
  1378. BladeAttackTwo()
  1379. elseif attack == false and attacktype == 3 and equipped == true and Mode == "Sword" then
  1380. attacktype = 4
  1381. BladeAttackThree()
  1382. elseif attack == false and attacktype == 4 and equipped == true and Mode == "Sword" then
  1383. attacktype = 1
  1384. BladeAttackFour()
  1385. end
  1386. if gun == true and shoot == false and equipped == true then
  1387. shoot = true
  1388. gun = false
  1389. end
  1390. end)
  1391.  
  1392. mouse.KeyDown:connect(function(k)
  1393. k = k:lower()
  1394. if attack == false and equipped == false and k == 'f' and Mode == "Normal" then
  1395. Equip()
  1396. elseif attack == false and equipped == true and k == 'f' and Mode == "Normal" then
  1397. Unequip()
  1398. elseif attack == false and equipped == true and Mode == "Normal" and k == 'g' then
  1399. BladeEquip()
  1400. elseif attack == false and equipped == true and Mode == "Sword" and k == 'g' then
  1401. UnequipBlade()
  1402. elseif k == 'e' and gun == false and shoot == false and Mode == "Normal" and attack == false and equipped == true then
  1403. GunStance()
  1404. elseif k == 'e' and shoot == false and equipped == true and Mode == "Normal" then
  1405. if gun == true then
  1406. gun = false
  1407. end
  1408. end
  1409. end)
  1410.  
  1411. --[[ Credits to Fenrier for the Movement Detection and Effects table. ]]--
  1412.  
  1413. while true do
  1414. swait()
  1415. for i, v in pairs(Character:GetChildren()) do
  1416. if v:IsA("Part") then
  1417. v.Material = "SmoothPlastic"
  1418. elseif v:IsA("Hat") then
  1419. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1420. end
  1421. end
  1422. if gun == true then
  1423. local aim = CFrame.new(RootPart.Position, mouse.Hit.p)
  1424. local direction = aim.lookVector
  1425. local headingA = math.atan2(direction.x, direction.z)
  1426. headingA = math.deg(headingA)
  1427. Humanoid.AutoRotate = false
  1428. RootPart.CFrame = CFrame.new(RootPart.Position) * angles(math.rad(0), math.rad(headingA - 180), math.rad(0))
  1429. else
  1430. Humanoid.AutoRotate = true
  1431. end
  1432. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1433. velocity = RootPart.Velocity.y
  1434. sine = sine + change
  1435. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1436. if equipped == true then
  1437. if RootPart.Velocity.y > 1 and hit == nil then
  1438. Anim = "Jump"
  1439. if attack == false then
  1440. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1441. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-10), math.rad(0), math.rad(0)), .3)
  1442. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)), .3)
  1443. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), .3)
  1444. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(-20)), .3)
  1445. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(20)), .3)
  1446. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1447. end
  1448. elseif RootPart.Velocity.y < -1 and hit == nil then
  1449. Anim = "Fall"
  1450. if attack == false then
  1451. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1452. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(30), math.rad(0), math.rad(0)), .3)
  1453. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1454. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .3)
  1455. RH.C0 = clerp(RH.C0, cn(1, -.8, 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(20)), .3)
  1456. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(-20)), .3)
  1457. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1458. end
  1459. elseif Torsovelocity < 1 and hit ~= nil then
  1460. Anim = "Idle"
  1461. if attack == false and Mode == "Normal" then
  1462. change = 1
  1463. 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)
  1464. 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)
  1465. 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)
  1466. 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)
  1467. 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)
  1468. 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)
  1469. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1470. elseif attack == false and Mode == "Sword" then
  1471. change = 1
  1472. 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)
  1473. 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)
  1474. 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)
  1475. 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)
  1476. 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)
  1477. 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)
  1478. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), .3)
  1479. end
  1480. elseif Torsovelocity > 2 and hit ~= nil then
  1481. Anim = "Walk"
  1482. if attack == false and Mode == "Normal" then
  1483. change = 3
  1484. 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)
  1485. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-20), math.rad(0), math.rad(-5 * math.cos(sine / 10) / 2)), .3)
  1486. 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)
  1487. 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)
  1488. 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)
  1489. 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)
  1490. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1491. elseif attack == false and Mode == "Sword" then
  1492. change = 3
  1493. 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)
  1494. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-5), math.rad(-5), math.rad(60 - 10 * math.cos(sine / 13))), .3)
  1495. 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)
  1496. 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)
  1497. 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)
  1498. 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)
  1499. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), .3)
  1500. end
  1501. end
  1502. end
  1503. if #Effects > 0 then
  1504. for e = 1, #Effects do
  1505. if Effects[e] ~= nil then
  1506. local Thing = Effects[e]
  1507. if Thing ~= nil then
  1508. local Part = Thing[1]
  1509. local Mode = Thing[2]
  1510. local Delay = Thing[3]
  1511. local IncX = Thing[4]
  1512. local IncY = Thing[5]
  1513. local IncZ = Thing[6]
  1514. if Thing[1].Transparency <= 1 then
  1515. if Thing[2] == "Block1" then
  1516. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1517. Mesh = Thing[1].Mesh
  1518. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1519. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1520. elseif Thing[2] == "Block2" then
  1521. Thing[1].CFrame = Thing[1].CFrame
  1522. Mesh = Thing[7]
  1523. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1524. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1525. elseif Thing[2] == "Cylinder" then
  1526. Mesh = Thing[1].Mesh
  1527. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1528. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1529. elseif Thing[2] == "Blood" then
  1530. Mesh = Thing[7]
  1531. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
  1532. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1533. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1534. elseif Thing[2] == "Elec" then
  1535. Mesh = Thing[1].Mesh
  1536. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1537. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1538. elseif Thing[2] == "Disappear" then
  1539. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1540. elseif Thing[2] == "Shatter" then
  1541. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1542. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1543. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1544. Thing[6] = Thing[6] + Thing[5]
  1545. end
  1546. else
  1547. Part.Parent = nil
  1548. table.remove(Effects, e)
  1549. end
  1550. end
  1551. end
  1552. end
  1553. end
  1554. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement