D0MiN0_FX

EmmaU [ REMASTERED ] [ RARE ]

Oct 26th, 2016
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 46.21 KB | None | 0 0
  1. --[[NIGHTOWLACE_WEAPONRY]]--
  2. --Only working move does no damage-
  3.  
  4. --Needs more keybind attacks--
  5. wait(1 / 60)
  6. Effects = { }
  7. local Player = game.Players.localPlayer
  8. local Character = Player.Character
  9. local Humanoid = Character.Humanoid
  10. local mouse = Player:GetMouse()
  11. local m = Instance.new('Model', Character)
  12. m.Name = "WeaponModel"
  13. local LeftArm = Character["Left Arm"]
  14. local RightArm = Character["Right Arm"]
  15. local LeftLeg = Character["Left Leg"]
  16. local RightLeg = Character["Right Leg"]
  17. local Head = Character.Head
  18. local Torso = Character.Torso
  19. local cam = game.Workspace.CurrentCamera
  20. local RootPart = Character.HumanoidRootPart
  21. local RootJoint = RootPart.RootJoint
  22. local equipped = false
  23. local attack = false
  24. local Anim = 'Idle'
  25. local idle = 0
  26. local attacktype = 1
  27. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  28. local velocity = RootPart.Velocity.y
  29. local sine = 0
  30. local change = 1
  31. local grabbed = false
  32. local cn = CFrame.new
  33. local mr = math.rad
  34. local angles = CFrame.Angles
  35. local ud = UDim2.new
  36. local c3 = Color3.new
  37.  
  38. local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  39. Humanoid.Animator:Destroy()
  40. Character.Animate:Destroy()
  41.  
  42. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  43. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  44. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  45.  
  46. RSH, LSH = nil, nil
  47.  
  48. RW = Instance.new("Weld")
  49. LW = Instance.new("Weld")
  50.  
  51. RH = Torso["Right Hip"]
  52. LH = Torso["Left Hip"]
  53.  
  54. RSH = Torso["Right Shoulder"]
  55. LSH = Torso["Left Shoulder"]
  56.  
  57. RSH.Parent = nil
  58. LSH.Parent = nil
  59.  
  60. RW.Name = "RW"
  61. RW.Part0 = Torso
  62. RW.C0 = cn(1.5, 0.5, 0)
  63. RW.C1 = cn(0, 0.5, 0)
  64. RW.Part1 = RightArm
  65. RW.Parent = Torso
  66.  
  67. LW.Name = "LW"
  68. LW.Part0 = Torso
  69. LW.C0 = cn(-1.5, 0.5, 0)
  70. LW.C1 = cn(0, 0.5, 0)
  71. LW.Part1 = LeftArm
  72. LW.Parent = Torso
  73.  
  74. function clerp(a, b, t)
  75. local qa = {
  76. QuaternionFromCFrame(a)
  77. }
  78. local qb = {
  79. QuaternionFromCFrame(b)
  80. }
  81. local ax, ay, az = a.x, a.y, a.z
  82. local bx, by, bz = b.x, b.y, b.z
  83. local _t = 1 - t
  84. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  85. end
  86.  
  87. function QuaternionFromCFrame(cf)
  88. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  89. local trace = m00 + m11 + m22
  90. if trace > 0 then
  91. local s = math.sqrt(1 + trace)
  92. local recip = 0.5 / s
  93. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  94. else
  95. local i = 0
  96. if m11 > m00 then
  97. i = 1
  98. end
  99. if m22 > (i == 0 and m00 or m11) then
  100. i = 2
  101. end
  102. if i == 0 then
  103. local s = math.sqrt(m00 - m11 - m22 + 1)
  104. local recip = 0.5 / s
  105. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  106. elseif i == 1 then
  107. local s = math.sqrt(m11 - m22 - m00 + 1)
  108. local recip = 0.5 / s
  109. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  110. elseif i == 2 then
  111. local s = math.sqrt(m22 - m00 - m11 + 1)
  112. local recip = 0.5 / s
  113. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  114. end
  115. end
  116. end
  117.  
  118. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  119. local xs, ys, zs = x + x, y + y, z + z
  120. local wx, wy, wz = w * xs, w * ys, w * zs
  121. local xx = x * xs
  122. local xy = x * ys
  123. local xz = x * zs
  124. local yy = y * ys
  125. local yz = y * zs
  126. local zz = z * zs
  127. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  128. end
  129.  
  130. function QuaternionSlerp(a, b, t)
  131. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  132. local startInterp, finishInterp;
  133. if cosTheta >= 0.0001 then
  134. if (1 - cosTheta) > 0.0001 then
  135. local theta = math.acos(cosTheta)
  136. local invSinTheta = 1 / math.sin(theta)
  137. startInterp = math.sin((1 - t) * theta) * invSinTheta
  138. finishInterp = math.sin(t * theta) * invSinTheta
  139. else
  140. startInterp = 1 - t
  141. finishInterp = t
  142. end
  143. else
  144. if (1 + cosTheta) > 0.0001 then
  145. local theta = math.acos(-cosTheta)
  146. local invSinTheta = 1 / math.sin(theta)
  147. startInterp = math.sin((t - 1) * theta) * invSinTheta
  148. finishInterp = math.sin(t * theta) * invSinTheta
  149. else
  150. startInterp = t - 1
  151. finishInterp = t
  152. end
  153. end
  154. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  155. end
  156.  
  157. function swait(num)
  158. if num == 0 or num == nil then
  159. game:service'RunService'.RenderStepped:wait(0)
  160. else
  161. for i = 0, num do
  162. game:service'RunService'.RenderStepped:wait(0)
  163. end
  164. end
  165. end
  166.  
  167. local RbxUtility = LoadLibrary("RbxUtility")
  168. local Create = RbxUtility.Create
  169.  
  170. function RemoveOutlines(part)
  171. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  172. end
  173.  
  174. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  175. local Part = Create("Part"){
  176. formFactor = FormFactor,
  177. Parent = Parent,
  178. Reflectance = Reflectance,
  179. Transparency = Transparency,
  180. CanCollide = false,
  181. Locked = true,
  182. BrickColor = BrickColor.new(tostring(BColor)),
  183. Name = Name,
  184. Size = Size,
  185. Material = Material,
  186. }
  187. RemoveOutlines(Part)
  188. return Part
  189. end
  190.  
  191. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  192. local Msh = Create(Mesh){
  193. Parent = Part,
  194. Offset = OffSet,
  195. Scale = Scale,
  196. }
  197. if Mesh == "SpecialMesh" then
  198. Msh.MeshType = MeshType
  199. Msh.MeshId = MeshId
  200. end
  201. return Msh
  202. end
  203.  
  204. function CreateWeld(Parent, Part0, Part1, C0, C1)
  205. local Weld = Create("Weld"){
  206. Parent = Parent,
  207. Part0 = Part0,
  208. Part1 = Part1,
  209. C0 = C0,
  210. C1 = C1,
  211. }
  212. return Weld
  213. end
  214.  
  215. function rayCast(Position, Direction, Range, Ignore)
  216. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  217. end
  218.  
  219. function CreateSound(id, par, vol, pit)
  220. coroutine.resume(coroutine.create(function()
  221. local sou = Instance.new("Sound", par or workspace)
  222. sou.Volume = vol
  223. sou.Pitch = pit or 1
  224. sou.SoundId = id
  225. swait()
  226. sou:play()
  227. game:GetService("Debris"):AddItem(sou, 6)
  228. end))
  229. end
  230.  
  231. local function getclosest(obj, distance)
  232. local last, lastx = distance + 1
  233. for i, v in pairs(workspace:GetChildren()) do
  234. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  235. local t = v.Torso
  236. local dist = (t.Position - obj.Position).magnitude
  237. if dist <= distance then
  238. if dist < last then
  239. last = dist
  240. lastx = v
  241. end
  242. end
  243. end
  244. end
  245. return lastx
  246. end
  247.  
  248. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  249. for i, v in pairs(hit:GetChildren()) do
  250. if v:IsA("Humanoid") and hit.Name ~= Character.Name then
  251. local find = v:FindFirstChild("Hitz")
  252. if not find then
  253. if v.Parent:findFirstChild("Head") then
  254. local BillG = Create("BillboardGui"){
  255. Parent = v.Parent.Head,
  256. Size = UDim2.new(1, 0, 1, 0),
  257. Adornee = v.Parent.Head,
  258. StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  259. }
  260. local TL = Create("TextLabel"){
  261. Parent = BillG,
  262. Size = UDim2.new(3, 3, 3, 3),
  263. BackgroundTransparency = 1,
  264. Text = tostring(damage).."-",
  265. TextColor3 = Color1.Color,
  266. TextStrokeColor3 = Color2.Color,
  267. TextStrokeTransparency = 0,
  268. TextXAlignment = Enum.TextXAlignment.Center,
  269. TextYAlignment = Enum.TextYAlignment.Center,
  270. FontSize = Enum.FontSize.Size18,
  271. Font = "ArialBold",
  272. }
  273. coroutine.resume(coroutine.create(function()
  274. swait(1)
  275. for i = 0, 1, .1 do
  276. swait(.1)
  277. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  278. end
  279. BillG:Destroy()
  280. end))
  281. end
  282. v.Health = v.Health - damage
  283. local bool = Create("BoolValue"){
  284. Parent = v,
  285. Name = 'Hitz',
  286. }
  287. if HSound ~= nil and HPitch ~= nil then
  288. CreateSound(HSound, hit, 1, HPitch)
  289. end
  290. game:GetService("Debris"):AddItem(bool, cooldown)
  291. end
  292. end
  293. end
  294. end
  295.  
  296. Handle = CreatePart(Enum.FormFactor.Symmetric, m, Enum.Material.SmoothPlastic, 0, 1, "Black", "Handle", Vector3.new(0.5, 2.0999999, 0.200000003))
  297. HandleWeld = CreateWeld(m, Character["Right Arm"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.988736868, 0.384963989, -0.0709247589, -5.7466209e-006, -0.999994397, 3.26470035e-005, 5.88346529e-006, -3.26468544e-005, -1, 1, -5.74639671e-006, 5.8836531e-006))
  298. CreateMesh("SpecialMesh", Handle, Enum.MeshType.Head, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  299. FakeHandle = CreatePart(Enum.FormFactor.Symmetric, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "FakeHandle", Vector3.new(0.5, 2.5, 0.200000003))
  300. FakeHandleWeld = CreateWeld(m, Handle, FakeHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0171542168, -0.000101089478, -1.52587891e-005, 1, -4.94255801e-008, 6.54397758e-010, 4.94255801e-008, 1, -9.78161552e-009, -6.54065802e-010, 9.78116077e-009, 1))
  301. CreateMesh("SpecialMesh", FakeHandle, Enum.MeshType.Head, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  302. Hitbox = CreatePart(Enum.FormFactor.Symmetric, m, Enum.Material.SmoothPlastic, 0, 1, "Royal purple", "Hitbox", Vector3.new(3.39999962, 6.40000057, 0.200000003))
  303. Hitboxweld = CreateWeld(m, FakeHandle, Hitbox, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.599976897, 3.78106308, -0.00105857849, 1, 9.17869329e-007, -3.09853681e-006, -9.17872967e-007, 1, -3.59746082e-007, 3.09853635e-006, 3.59749265e-007, 1))
  304. Part = CreatePart(Enum.FormFactor.Symmetric, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(1, 2, 2))
  305. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00199222565, -1.36688352, 0.91988945, -1.07260448e-005, 5.24271636e-005, 1, 1, 7.52143824e-005, 1.07221013e-005, -7.52138149e-005, 1, -5.24279676e-005))
  306. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.273375034, 0.273375034, 0.273375034))
  307. Part = CreatePart(Enum.FormFactor.Symmetric, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(1, 2, 2))
  308. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0020980835, -1.36713505, -0.373126984, -3.42016392e-005, 3.30372723e-006, -1, 1, 6.92866306e-005, -3.420141e-005, 6.92865142e-005, -1, -3.30609691e-006))
  309. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.273375034, 0.273375034, 0.273375034))
  310. Part = CreatePart(Enum.FormFactor.Symmetric, m, Enum.Material.SmoothPlastic, 0, 0, "Royal purple", "Part", Vector3.new(1, 1, 1))
  311. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.36701512, 0.647027969, -0.00205993652, 1, 9.17869329e-007, -3.09853681e-006, -9.17872967e-007, 1, -3.59746082e-007, 3.09853635e-006, 3.59749265e-007, 1))
  312. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/Asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.364500016, 0.364500016, 0.364500016))
  313. Part = CreatePart(Enum.FormFactor.Symmetric, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(1, 2, 2))
  314. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00208091736, -0.729172707, 1.46697998, 2.14775646e-005, 6.49265075e-006, -1, -1, -6.24730383e-005, -2.14779684e-005, -6.24731765e-005, 1, 6.49130925e-006))
  315. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.273375034, 0.364500016, 0.273375034))
  316. Part = CreatePart(Enum.FormFactor.Symmetric, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(1, 2, 2))
  317. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00208473206, -1.36713862, 0.919971466, 2.14782158e-005, 6.48287187e-006, -1, -1, -6.25224275e-005, -2.14786214e-005, -6.2522573e-005, 1, 6.48152945e-006))
  318. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.273375034, 0.273375034, 0.273375034))
  319. Part = CreatePart(Enum.FormFactor.Symmetric, m, Enum.Material.SmoothPlastic, 0, 0, "Royal purple", "Part", Vector3.new(1, 1, 1))
  320. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.78813934e-005, 1.37602234, -0.00105953217, 1, 7.86549208e-007, -2.881829e-006, -7.86552846e-007, 1, -3.39721282e-007, 2.881829e-006, 3.39723101e-007, 1))
  321. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/Asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.911249995, 0.364500016, 0.364500016))
  322. Part = CreatePart(Enum.FormFactor.Symmetric, m, Enum.Material.SmoothPlastic, 0, 0, "Royal purple", "Part", Vector3.new(1, 1, 1))
  323. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.50203705e-005, 1.37602234, -0.00106143951, 1, 7.86403689e-007, -2.88184356e-006, -7.86407327e-007, 1, -3.39764483e-007, 2.88184356e-006, 3.39766302e-007, 1))
  324. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/Asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.364500016, 0.911249995, 0.364500016))
  325. Part = CreatePart(Enum.FormFactor.Symmetric, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(1, 2, 1))
  326. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.182015419, 1.46701622, -0.00105762482, 1, 8.6833461e-007, -3.09789539e-006, -8.68338248e-007, 1, -3.69564077e-007, 3.09789493e-006, 3.69566806e-007, 1))
  327. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.364500016, 0.273375034, 0.273375034))
  328. Part = CreatePart(Enum.FormFactor.Symmetric, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(1, 2, 2))
  329. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00203514099, 0.728891611, -0.919963837, -3.42016392e-005, 3.30372177e-006, -1, 1, 6.92866452e-005, -3.420141e-005, 6.92865287e-005, -1, -3.30609146e-006))
  330. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.273375034, 0.364500016, 0.273375034))
  331. Part = CreatePart(Enum.FormFactor.Symmetric, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(1, 2, 2))
  332. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00205993652, -1.36701274, -0.374061584, -6.38305073e-006, -2.04226171e-006, 1, -1, 1.39180702e-006, -6.383048e-006, -1.39179247e-006, -1, -2.04227035e-006))
  333. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.273375034, 0.273375034, 0.273375034))
  334. Part = CreatePart(Enum.FormFactor.Symmetric, m, Enum.Material.SmoothPlastic, 0, 0, "Royal purple", "Part", Vector3.new(1, 1, 1))
  335. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.36696672, 0.647037506, -0.00205039978, 1, 9.17869329e-007, -3.09853681e-006, -9.17872967e-007, 1, -3.59746082e-007, 3.09853635e-006, 3.59749265e-007, 1))
  336. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/Asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.364500016, 0.364500016, 0.364500016))
  337. Part = CreatePart(Enum.FormFactor.Symmetric, m, Enum.Material.SmoothPlastic, 0, 0, "Royal purple", "Part", Vector3.new(1, 1, 1))
  338. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.48362732e-006, 1.74000549, -0.00106716156, 1, 8.31929356e-007, -3.09747497e-006, -8.55670805e-007, 1, -3.76769094e-007, 3.09776465e-006, 3.7206155e-007, 1))
  339. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/Asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.273375034, 0.546750069, 0.273375034))
  340. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(1, 0.5, 1))
  341. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-2.57492065e-005, -1.53996277, -0.0020532608, 1, 9.17869329e-007, -3.09853681e-006, -9.17872967e-007, 1, -3.59746082e-007, 3.09853635e-006, 3.59749265e-007, 1))
  342. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.637875021, 0.637875021, 1.09350014))
  343. Part = CreatePart(Enum.FormFactor.Symmetric, m, Enum.Material.SmoothPlastic, 0, 0, "Royal purple", "Part", Vector3.new(1, 2, 2))
  344. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00115871429, -3.30009842, 0.999759197, -4.33876921e-005, 1.81356409e-005, -1, 6.59307698e-005, -1, -1.81385021e-005, -1, -6.59315556e-005, 4.33864952e-005))
  345. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0.800000012, -0.5), Vector3.new(0.0844999999, 2, 0.5))
  346. Part = CreatePart(Enum.FormFactor.Symmetric, m, Enum.Material.SmoothPlastic, 0, 0, "Royal purple", "Part", Vector3.new(1, 1, 1))
  347. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.38282776e-005, 3.38105774, -0.00105476379, 1, 9.17869329e-007, -3.09853317e-006, -9.17872967e-007, 1, -3.59746082e-007, 3.09853272e-006, 3.59749265e-007, 1))
  348. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/Asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.182250008, 2.55150008, 0.291599989))
  349. Part = CreatePart(Enum.FormFactor.Symmetric, m, Enum.Material.SmoothPlastic, 0, 0, "Royal purple", "Part", Vector3.new(1, 1, 1))
  350. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.18200779, 3.38004494, -0.00105571747, 1, 9.17869329e-007, -3.09853499e-006, -9.17872967e-007, 1, -3.59746082e-007, 3.09853453e-006, 3.59749265e-007, 1))
  351. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/Asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.182250008, 2.55150008, 0.182250008))
  352. Part = CreatePart(Enum.FormFactor.Symmetric, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(1, 2, 1))
  353. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.31673431e-005, -0.00191497803, -4.11003494, 1, -1.81591931e-005, -3.91808044e-006, 3.9186757e-006, 3.27668895e-005, 1, -1.81590622e-005, -1, 3.27669622e-005))
  354. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 1.10000002), Vector3.new(1.09399998, 0.0480000004, 1.09399998))
  355. Part = CreatePart(Enum.FormFactor.Symmetric, m, Enum.Material.SmoothPlastic, 0, 0, "Royal purple", "Part", Vector3.new(1, 2, 1))
  356. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-6.31809235e-005, -0.00191688538, -4.10998535, 1, -1.81591786e-005, -3.91808044e-006, 3.9186757e-006, 3.27668859e-005, 1, -1.81590476e-005, -1, 3.2766955e-005))
  357. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0.75), Vector3.new(2.18700027, 0.0437400006, 2.18700027))
  358. Part = CreatePart(Enum.FormFactor.Symmetric, m, Enum.Material.SmoothPlastic, 0, 0, "Royal purple", "Part", Vector3.new(1, 2, 2))
  359. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00211715698, -5.9500494, -0.0851407051, 4.76346322e-005, -9.64188985e-006, 1, -1.57094873e-005, -1, -9.64114042e-006, 1, -1.5709029e-005, -4.76347814e-005))
  360. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.0860000029, 1, 1))
  361. Part = CreatePart(Enum.FormFactor.Symmetric, m, Enum.Material.SmoothPlastic, 0, 0, "Royal purple", "Part", Vector3.new(1, 2, 2))
  362. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00209140778, -6.52481937, 2.01444435, 7.50156905e-005, 0.000124422018, -1, 1.20043878e-005, -1, -0.000124421131, -1, -1.19950528e-005, -7.50171821e-005))
  363. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.0860000029, 0.425000012, 0.349999994))
  364. Part = CreatePart(Enum.FormFactor.Symmetric, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(1, 2, 1))
  365. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.47955322e-005, 3.38104248, -0.00105476379, 1, 9.17869329e-007, -3.09853681e-006, -9.17872967e-007, 1, -3.59746082e-007, 3.09853635e-006, 3.59749265e-007, 1))
  366. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1.09350014, 1.82249999, 0.091125004))
  367. Part = CreatePart(Enum.FormFactor.Symmetric, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.5, 0.5, 0.5))
  368. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.97887421e-005, 0.100036621, -0.00205230713, 1, 9.17869329e-007, -3.09853681e-006, -9.17872967e-007, 1, -3.59746082e-007, 3.09853635e-006, 3.59749265e-007, 1))
  369. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1033714", Vector3.new(0, 0, 0), Vector3.new(0.200474992, 3.64499998, 0.200474992))
  370. Part = CreatePart(Enum.FormFactor.Symmetric, m, Enum.Material.SmoothPlastic, 0, 0, "Royal purple", "Part", Vector3.new(1, 2, 1))
  371. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.88486481e-005, 5.20302105, -0.00205039978, 1, 9.17869329e-007, -3.09853681e-006, -9.17872967e-007, 1, -3.59746082e-007, 3.09853635e-006, 3.59749265e-007, 1))
  372. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(1.09350014, 1.09350014, 1.09350014))
  373. Part = CreatePart(Enum.FormFactor.Symmetric, m, Enum.Material.SmoothPlastic, 0, 0, "Royal purple", "Part", Vector3.new(1, 2, 1))
  374. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.47955322e-005, 3.38104248, -0.00105476379, 1, 9.17869329e-007, -3.09853681e-006, -9.17872967e-007, 1, -3.59746082e-007, 3.09853635e-006, 3.59749265e-007, 1))
  375. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0.300000012, 0), Vector3.new(2.1500001, 1.85000002, 0.0728999972))
  376. Part = CreatePart(Enum.FormFactor.Symmetric, m, Enum.Material.SmoothPlastic, 0, 0, "Royal purple", "Part", Vector3.new(1, 2, 2))
  377. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00115871429, -3.30009842, 0.999759197, -4.33876921e-005, 1.81356409e-005, -1, 6.59307698e-005, -1, -1.81385021e-005, -1, -6.59315556e-005, 4.33864952e-005))
  378. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0.5, -0.370000005), Vector3.new(0.0850000009, 3.1400001, 0.300000012))
  379. Part = CreatePart(Enum.FormFactor.Symmetric, m, Enum.Material.SmoothPlastic, 0, 0, "Royal purple", "Part", Vector3.new(1, 1, 1))
  380. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.181978226, 3.38004112, -0.00105857849, 1, 9.17869329e-007, -3.09853499e-006, -9.17872967e-007, 1, -3.59746082e-007, 3.09853453e-006, 3.59749265e-007, 1))
  381. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/Asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.182250008, 2.55150008, 0.182250008))
  382. Part = CreatePart(Enum.FormFactor.Symmetric, m, Enum.Material.SmoothPlastic, 0, 0, "Royal purple", "Part", Vector3.new(1, 2, 2))
  383. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00208759308, -2.14117122, -5.4559269, 7.50156905e-005, 0.000124422018, -1, 1, 1.21837293e-005, 7.50172112e-005, 1.21930643e-005, -1, -0.000124421102))
  384. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.0860000029, 0.219999999, 0.300000012))
  385. Part = CreatePart(Enum.FormFactor.Symmetric, m, Enum.Material.SmoothPlastic, 0, 0, "Royal purple", "Part", Vector3.new(1, 2, 2))
  386. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00212001801, -1.77485621, -1.80015564, -3.42009844e-005, 3.29393743e-006, -1, 1, 6.93360635e-005, -3.42007552e-005, 6.9335947e-005, -1, -3.29630893e-006))
  387. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.0860000029, 0.219999999, 0.300000012))
  388. Part = CreatePart(Enum.FormFactor.Symmetric, m, Enum.Material.SmoothPlastic, 0, 0, "Royal purple", "Part", Vector3.new(1, 2, 2))
  389. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00212955475, -1.77469087, -4.10015297, -3.42009844e-005, 3.29393743e-006, -1, 1, 6.93360635e-005, -3.42007552e-005, 6.9335947e-005, -1, -3.29630893e-006))
  390. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0.104999997, 1.82500005), Vector3.new(0.0850000009, 0.485000014, 0.173999995))
  391. Part = CreatePart(Enum.FormFactor.Symmetric, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(1, 1, 1))
  392. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.74045563e-005, -1.74000549, 0.00106239319, 1, 7.09867891e-007, -3.47113655e-006, 7.18398951e-007, -1, 1.90790615e-007, -3.47124728e-006, -1.89104412e-007, -1))
  393. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1033714", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.728999972, 0.200000003))
  394. Part = CreatePart(Enum.FormFactor.Symmetric, m, Enum.Material.SmoothPlastic, 0, 0, "Royal purple", "Part", Vector3.new(1, 1, 1))
  395. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.09944153e-005, -1.5399704, -0.00205135345, 1, 8.40984285e-007, -3.09759139e-006, -9.45463398e-007, 1, -3.74972387e-007, 3.09895586e-006, 3.54291842e-007, 1))
  396. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/Asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.182250008, 0.364500016, 0.182250008))
  397. Part = CreatePart(Enum.FormFactor.Symmetric, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(1, 2, 1))
  398. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.182011604, 1.46700859, -0.00105857849, 1, 8.68320058e-007, -3.09790266e-006, -8.68323696e-007, 1, -3.69571353e-007, 3.09790221e-006, 3.69574082e-007, 1))
  399. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.364500016, 0.273375034, 0.273375034))
  400. Part = CreatePart(Enum.FormFactor.Symmetric, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1, 1, 1))
  401. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-2.07424164e-005, 0.647010803, -0.00105762482, 1, 8.68501957e-007, -3.09789175e-006, -8.68505595e-007, 1, -3.69520876e-007, 3.09789129e-006, 3.69523605e-007, 1))
  402. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.620000005, 0.100000001, 0.620000005))
  403. Part = CreatePart(Enum.FormFactor.Symmetric, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(1, 2, 2))
  404. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000971794128, -0.728844762, 1.46681595, -1.07260448e-005, 5.24271709e-005, 1, 1, 7.52143824e-005, 1.07221013e-005, -7.52138221e-005, 1, -5.24279749e-005))
  405. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.273375034, 0.364500016, 0.273375034))
  406. Part = CreatePart(Enum.FormFactor.Symmetric, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(1, 2, 2))
  407. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00204944611, 0.728974223, -0.920038223, -6.38304891e-006, -2.04226171e-006, 1, -1, 1.39180702e-006, -6.38304618e-006, -1.39179247e-006, -1, -2.04227035e-006))
  408. CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.273375034, 0.364500016, 0.273375034))
  409.  
  410. for i,v in pairs(Character:GetChildren()) do
  411. if v:IsA'Model' then
  412. for _,c in pairs(v:GetChildren()) do
  413. if c:IsA'Part' then
  414. c.CustomPhysicalProperties = PhysicalProperties.new(0.001,0.001,0.001,0.001,0.001)
  415. end
  416. end
  417. end
  418. end
  419.  
  420. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  421. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  422. prt.Anchored = true
  423. prt.CFrame = cframe
  424. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  425. game:GetService("Debris"):AddItem(prt, 10)
  426. if Type == 1 or Type == nil then
  427. table.insert(Effects, {
  428. prt,
  429. "Block1",
  430. delay,
  431. x3,
  432. y3,
  433. z3,
  434. msh
  435. })
  436. elseif Type == 2 then
  437. table.insert(Effects, {
  438. prt,
  439. "Block2",
  440. delay,
  441. x3,
  442. y3,
  443. z3,
  444. msh
  445. })
  446. end
  447. end
  448.  
  449. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  450. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  451. prt.Anchored = true
  452. prt.CFrame = cframe
  453. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  454. game:GetService("Debris"):AddItem(prt, 10)
  455. table.insert(Effects, {
  456. prt,
  457. "Cylinder",
  458. delay,
  459. x3,
  460. y3,
  461. z3,
  462. msh
  463. })
  464. end
  465.  
  466. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  467. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  468. prt.Anchored = true
  469. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  470. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  471. game:GetService("Debris"):AddItem(prt, 10)
  472. table.insert(Effects, {
  473. prt,
  474. "Cylinder",
  475. delay,
  476. x3,
  477. y3,
  478. z3,
  479. msh
  480. })
  481. end
  482.  
  483. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  484. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  485. prt.Anchored = true
  486. prt.CFrame = cframe
  487. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  488. game:GetService("Debris"):AddItem(prt, 10)
  489. table.insert(Effects, {
  490. prt,
  491. "Cylinder",
  492. delay,
  493. x3,
  494. y3,
  495. z3,
  496. msh
  497. })
  498. end
  499.  
  500. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  501. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  502. prt.Anchored = true
  503. prt.CFrame = cframe
  504. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  505. game:GetService("Debris"):AddItem(prt, 10)
  506. table.insert(Effects, {
  507. prt,
  508. "Cylinder",
  509. delay,
  510. x3,
  511. y3,
  512. z3,
  513. msh
  514. })
  515. end
  516.  
  517. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  518. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  519. prt.Anchored = true
  520. prt.CFrame = cframe
  521. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  522. game:GetService("Debris"):AddItem(prt, 10)
  523. table.insert(Effects, {
  524. prt,
  525. "Cylinder",
  526. delay,
  527. x3,
  528. y3,
  529. z3,
  530. msh
  531. })
  532. end
  533.  
  534. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  535. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  536. prt.Anchored = true
  537. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  538. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  539. local num = math.random(10, 50) / 1000
  540. game:GetService("Debris"):AddItem(prt, 10)
  541. table.insert(Effects, {
  542. prt,
  543. "Shatter",
  544. num,
  545. prt.CFrame,
  546. math.random() - math.random(),
  547. 0,
  548. math.random(50, 100) / 100
  549. })
  550. end
  551.  
  552. function DeadSpike()
  553. attack = true
  554. gyro.Parent = nil
  555. Humanoid.WalkSpeed = 0
  556. for i = 0, 1, 0.1 do
  557. swait(1)
  558. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-70)), .3)
  559. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(70)), .3)
  560. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(30)), .3)
  561. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(70), math.rad(0), math.rad(-20)), .3)
  562. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(50), math.rad(0)), .3)
  563. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(50), math.rad(0)), .3)
  564. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), .3)
  565. end
  566. CreateSound("rbxassetid://382880737", Hitbox, 1, .9)
  567. for i = 0, 1, 0.1 do
  568. swait(1)
  569. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .3)
  570. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-80)), .3)
  571. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(120)), .3)
  572. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-50)), .3)
  573. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(-50), math.rad(0)), .3)
  574. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(-50), math.rad(0)), .3)
  575. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(100)), .3)
  576. end
  577. local POS = RootPart.Position + RootPart.CFrame.lookVector * 15 - Vector3.new(0, 2, 0)
  578. local p = Instance.new("Part")
  579. p.TopSurface = 0
  580. p.BottomSurface = 0
  581. p.CanCollide = false
  582. p.Anchored = true
  583. p.Material = "SmoothPlastic"
  584. p.BrickColor = BrickColor:Black()
  585. p.formFactor = "Symmetric"
  586. p.Size = Vector3.new(1, 1, 1)
  587. p.CFrame = CFrame.new(POS)
  588. p.Parent = Character
  589. m = Instance.new("SpecialMesh",p)
  590. m.Name = "Triangle"
  591. m.MeshId = "http://www.roblox.com/asset/?id=6547801"
  592. m.MeshType = "FileMesh"
  593. m.Scale = Vector3.new(0.1, 0.001, 0.1)
  594. coroutine.resume(coroutine.create(function(p)
  595. for i = 1, 10 do
  596. p.Triangle.Scale = p.Triangle.Scale + Vector3.new(.05, 0, .05)
  597. p.CFrame = p.CFrame * CFrame.fromEulerAnglesXYZ(0, .1, 0)
  598. swait(1)
  599. end
  600. for i = 1, 30 do
  601. p.CFrame = p.CFrame * CFrame.fromEulerAnglesXYZ(0, .1, 0)
  602. swait(1)
  603. end
  604. for i = 1, 10 do
  605. p.Triangle.Scale = p.Triangle.Scale - Vector3.new(.06, 0, .06)
  606. p.Transparency = i / 10
  607. p.CFrame = p.CFrame * CFrame.fromEulerAnglesXYZ(0, .5, 0)
  608. swait(1)
  609. end
  610. p.Parent = nil
  611. end), p)
  612. local p = Instance.new("Part")
  613. p.TopSurface = 0
  614. p.BottomSurface = 0
  615. p.CanCollide = false
  616. p.Anchored = true
  617. p.Transparency = .5
  618. p.Material = "SmoothPlastic"
  619. p.BrickColor = BrickColor:Black()
  620. p.formFactor = "Symmetric"
  621. p.Size = Vector3.new(1, 1, 1)
  622. p.CFrame = CFrame.new(POS)
  623. p.Parent = Character
  624. m = Instance.new("SpecialMesh",p)
  625. m.Name = "Triangle"
  626. m.MeshId = "http://www.roblox.com/asset/?id=6547801"
  627. m.MeshType = "FileMesh"
  628. m.Scale = Vector3.new(0.1, 0.001, 0.1)
  629. coroutine.resume(coroutine.create(function(p)
  630. for i = 1, 10 do
  631. p.Triangle.Scale = p.Triangle.Scale + Vector3.new(.06, 0, .06)
  632. p.CFrame = p.CFrame * CFrame.fromEulerAnglesXYZ(0, -.15, 0)
  633. swait(1)
  634. end
  635. for i = 1, 32 do
  636. p.CFrame = p.CFrame * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  637. swait(1)
  638. end
  639. for i = 1, 10 do
  640. p.Triangle.Scale = p.Triangle.Scale - Vector3.new(.06, 0, .06)
  641. p.Transparency = i / 10
  642. p.CFrame = p.CFrame * CFrame.fromEulerAnglesXYZ(0, -.5, 0)
  643. swait(1)
  644. end
  645. p.Parent = nil
  646. end), p)
  647. local p = Instance.new("Part")
  648. p.TopSurface = 0
  649. p.BottomSurface = 0
  650. p.CanCollide = false
  651. p.Anchored = true
  652. p.Transparency = 0
  653. p.Material = "SmoothPlastic"
  654. p.BrickColor = BrickColor:Black()
  655. p.formFactor = "Symmetric"
  656. p.Size = Vector3.new(1, 1, 1)
  657. p.CFrame = CFrame.new(POS) - Vector3.new(0, 15, 0)
  658. p.Parent = Character
  659. m = Instance.new("SpecialMesh",p)
  660. m.Name = "SpikeMesh"
  661. m.MeshId = "http://www.roblox.com/asset/?id=1033714"
  662. m.MeshType = "FileMesh"
  663. m.Scale = Vector3.new(5, 60, 5)
  664. CreateSound("rbxassetid://382885887", p, 1, .7)
  665. coroutine.resume(coroutine.create(function(p, o)
  666. for i = 1, 5 do
  667. p.CFrame = CFrame.new(p.Position:Lerp(o, i / 5), p.Position:Lerp(o, (i + 1) / 5)) * CFrame.fromEulerAnglesXYZ(-math.pi / 2, 0, 0)
  668. swait(1)
  669. end
  670. swait(10)
  671. for i = 1, 5 do
  672. p.CFrame = CFrame.new(o:Lerp(o - Vector3.new(0, 10, 0), i / 5), o:Lerp(o - Vector3.new(0, 10, 0), (i - 1) / 5)) * CFrame.fromEulerAnglesXYZ(-math.pi / 2, 0, 0)
  673. swait(1)
  674. end
  675. p.Parent = nil
  676. end), p, POS + Vector3.new(0, 5, 0))
  677. for i = 1, 5 do
  678. swait(1)
  679. local hpos = POS + Vector3.new(0, 4, 0)
  680. local maxdec = 8
  681. for il = 1, 7 do
  682. local p = Instance.new("Part")
  683. p.TopSurface = 0
  684. p.BottomSurface = 0
  685. p.CanCollide = false
  686. p.Anchored = true
  687. p.Transparency = 0
  688. p.Material = "SmoothPlastic"
  689. p.BrickColor = BrickColor:Black()
  690. p.formFactor = "Symmetric"
  691. p.Size = Vector3.new(1, 1, 1)
  692. p.CFrame = CFrame.new(POS) - Vector3.new(math.random(-6, 6), 15, math.random(-6, 6))
  693. p.Parent = Character
  694. m = Instance.new("SpecialMesh",p)
  695. m.Name = "SpikeMesh"
  696. m.MeshId = "http://www.roblox.com/asset/?id=1033714"
  697. m.MeshType = "FileMesh"
  698. m.Scale = Vector3.new(1, 40, 1)
  699. CreateSound("rbxassetid://382891851", p, 1, .9)
  700. coroutine.resume(coroutine.create(function(p, o)
  701. for i = 1, 5 do
  702. p.CFrame = CFrame.new(p.Position:Lerp(o, i / 5), p.Position:Lerp(o, (i + 1) / 5)) * CFrame.fromEulerAnglesXYZ(-math.pi / 2, 0, 0)
  703. swait(1)
  704. end
  705. swait(5.25)
  706. for i = 1, 5 do
  707. p.CFrame = CFrame.new(o:Lerp(o - Vector3.new(0, 10, 0), i / 5), o:Lerp(o - Vector3.new(0, 10, 0), (i - 1) / 5)) * CFrame.fromEulerAnglesXYZ(-math.pi / 2, 0, 0)
  708. swait(1)
  709. end
  710. p.Parent = nil
  711. end), p, POS + Vector3.new(math.random(-i, i), i * 2.5, math.random(-i, i)))
  712. end
  713. end
  714. for i = 0, 1, 0.1 do
  715. swait(1)
  716. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(75)), .3)
  717. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-75)), .3)
  718. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(120)), .3)
  719. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-50)), .3)
  720. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(-50), math.rad(0)), .3)
  721. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(-50), math.rad(0)), .3)
  722. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(100)), .3)
  723. end
  724. Humanoid.WalkSpeed = 16
  725. gyro.Parent = RootPart
  726. attack = false
  727. end
  728.  
  729. keypress = false
  730. input = ""
  731.  
  732. mouse.KeyDown:connect(function(k)
  733. k = k:lower()
  734. if k == 'a' or k == 's' or k == 'd' or k == 'q' or k == 'e' or k == 'z' or k == 'x' or k == 'c' or k == 'v' and attack == false --[[and cooldown3 >= co3 and stamina>=skill3stam]] then
  735. input = input..k
  736. print(input)
  737. coroutine.resume(coroutine.create(function()
  738. while keypress == true do
  739. swait()
  740. end
  741. for i = 1, 50 do
  742. if keypress == false then
  743. swait()
  744. end
  745. end
  746. input = ''
  747. end))
  748. end
  749. if input == 'asdq' and attack == false then
  750. DeadSpike()
  751. end
  752. end)
  753.  
  754. getDirection = function()
  755. if Character == nil then
  756. return {
  757. CFrame.new(0, 0, 0),
  758. CFrame.new(0, 0, 0)
  759. }
  760. end
  761. local Cam = workspace.CurrentCamera
  762. return {
  763. CFrame.new(RootPart.Position, Vector3.new(Cam.CoordinateFrame.x, RootPart.Position.y, Cam.CoordinateFrame.z)) * CFrame.fromEulerAnglesXYZ(0, math.pi, 0),
  764. Vector3.new(Cam.CoordinateFrame.p.x, RootPart.CFrame.p.y, Cam.CoordinateFrame.p.z)
  765. }
  766. end
  767.  
  768. gyro = Create("BodyGyro"){
  769. Parent = RootPart,
  770. P = 1e7,
  771. D = 1e3,
  772. MaxTorque = Vector3.new(0, 1e7, 0),
  773. }
  774.  
  775. while true do
  776. swait(1)
  777. Humanoid.JumpPower = 60
  778. gyro.cframe = getDirection()[1]
  779. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  780. velocity = RootPart.Velocity.y
  781. sine = sine + change
  782. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  783. if equipped == true or equipped == false then
  784. if RootPart.Velocity.y > 1 and hit == nil then
  785. Anim = "Jump"
  786. if attack == false then
  787. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  788. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-10), math.rad(0), math.rad(0)), .3)
  789. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(20)), .3)
  790. LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)), .3)
  791. RH.C0 = clerp(RH.C0, cn(1, -.4, -.5) * RHCF * angles(math.rad(3), math.rad(0), math.rad(-20)), .3)
  792. LH.C0 = clerp(LH.C0, cn(-1, -.8, -.2) * LHCF * angles(math.rad(3), math.rad(0), math.rad(30)), .3)
  793. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), .3)
  794. end
  795. elseif RootPart.Velocity.y < -1 and hit == nil then
  796. Anim = "Fall"
  797. if attack == false then
  798. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .3)
  799. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(0)), .3)
  800. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(40)), .3)
  801. LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-40)), .3)
  802. RH.C0 = clerp(RH.C0, cn(1, -.8, -.2) * RHCF * angles(math.rad(-3), math.rad(0), math.rad(20)), .3)
  803. LH.C0 = clerp(LH.C0, cn(-1, -1, -.3) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(-30)), .3)
  804. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), .3)
  805. end
  806. elseif Torsovelocity < 1 and hit ~= nil then
  807. Anim = "Idle"
  808. if attack == false then
  809. change = 2
  810. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.1 + .1 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-30)), .3)
  811. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 40)), math.rad(5), math.rad(30)), .3)
  812. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(10 + 3 * math.cos(sine / 40))), .3)
  813. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(-8 - 2 * math.cos(sine / 40))), .3)
  814. RH.C0 = clerp(RH.C0, cn(1, -.9 - .1 * math.cos(sine / 40), 0) * RHCF * angles(math.rad(-3.5 - 1 * math.cos(sine / 40)), math.rad(20), math.rad(0)), .3)
  815. LH.C0 = clerp(LH.C0, cn(-1, -.9 - .1 * math.cos(sine / 40), 0) * LHCF * angles(math.rad(-3.5 - 1 * math.cos(sine / 40)), math.rad(20), math.rad(0)), .3)
  816. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(13)), .3)
  817. end
  818. elseif Torsovelocity > 2 and hit ~= nil then
  819. Anim = "Walk"
  820. if attack == false then
  821. change = 1
  822. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(30 + 3 * math.cos(sine / 6)), math.rad(0), math.rad(0)), .3)
  823. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-20 - 3 * math.cos(sine / 6)), math.rad(0), math.rad(0)), .3)
  824. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20 + 3 * math.cos(sine / 6)), math.rad(0), math.rad(10 + 3 * math.cos(sine / 15))), .3)
  825. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0 - .5 * math.cos(sine / 5)) * angles(math.rad(50 * math.cos(sine / 5)), math.rad(0), math.rad(15 * math.cos(sine / 5))), .3)
  826. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), .3)
  827. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), .3)
  828. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(-10), math.rad(12)), .3)
  829. end
  830. end
  831. end
  832. BlockEffect(BrickColor.new("Black"), LeftArm.CFrame*CFrame.new(0,-1,0), 1, 1, 1, 1, 1, 1, .1, 1)
  833. if #Effects > 0 then
  834. for e = 1, #Effects do
  835. if Effects[e] ~= nil then
  836. local Thing = Effects[e]
  837. if Thing ~= nil then
  838. local Part = Thing[1]
  839. local Mode = Thing[2]
  840. local Delay = Thing[3]
  841. local IncX = Thing[4]
  842. local IncY = Thing[5]
  843. local IncZ = Thing[6]
  844. if Thing[1].Transparency <= 1 then
  845. if Thing[2] == "Block1" then
  846. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  847. Mesh = Thing[1].Mesh
  848. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  849. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  850. elseif Thing[2] == "Block2" then
  851. Thing[1].CFrame = Thing[1].CFrame
  852. Mesh = Thing[7]
  853. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  854. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  855. elseif Thing[2] == "Cylinder" then
  856. Mesh = Thing[1].Mesh
  857. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  858. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  859. elseif Thing[2] == "Blood" then
  860. Mesh = Thing[7]
  861. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
  862. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  863. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  864. elseif Thing[2] == "Elec" then
  865. Mesh = Thing[1].Mesh
  866. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  867. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  868. elseif Thing[2] == "Disappear" then
  869. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  870. elseif Thing[2] == "Shatter" then
  871. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  872. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  873. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  874. Thing[6] = Thing[6] + Thing[5]
  875. end
  876. else
  877. Part.Parent = nil
  878. table.remove(Effects, e)
  879. end
  880. end
  881. end
  882. end
  883. end
  884. end
Add Comment
Please, Sign In to add comment