Znimator

Duel

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