Advertisement
zombieslayerwtf

Mutant [Leaked] [Rare]

May 25th, 2018
403
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 114.01 KB | None | 0 0
  1. print("Dont try to kill someone to just look like he dont have a torso.")
  2. print("Press R For Left Arm")
  3. print("Q To lock on")
  4. print("E to Teleport")
  5. print("Z to Quick Stab")
  6. print("X for Area Attack")
  7. print("F for DeadWorld")
  8. print("C For Taunt")
  9. plr = game.Players.LocalPlayer
  10. char = plr.Character
  11. hum = char.Humanoid
  12. local cam = game.Workspace.CurrentCamera
  13. if char:findFirstChild("Shirt") then
  14. char.Shirt:Destroy()
  15. print("shirt has been removed[cuz am a pervert]")
  16. else
  17. print("u have no shirt no ned to do shirt remove[of course am a pervert]")
  18. end
  19. if char:findFirstChild("Pants") then
  20. char.Pants:Destroy()
  21. print("Pants has been removed[cuz am a pervert]")
  22. else
  23. print("u have no pants no ned to do pants remove[of course am a pervert]")
  24. end
  25. t = char.Torso
  26. h = char.Head
  27. ra = char["Right Arm"]
  28. la = char["Left Arm"]
  29. rl = char["Right Leg"]
  30. ll = char["Left Leg"]
  31. tors = char.Torso
  32. lleg = char["Left Leg"]
  33. root = char.HumanoidRootPart
  34. hed = char.Head
  35. rleg = char["Right Leg"]
  36. rarm = char["Right Arm"]
  37. larm = char["Left Arm"]
  38. vt = Vector3.new
  39. bc = BrickColor.new
  40. br = BrickColor.random
  41. it = Instance.new
  42. cf = CFrame.new
  43. local targetted = nil
  44. local killcount = 0
  45. local requirekillA = 0
  46. local requirekillX = 0
  47. local maxA = 0
  48. local maxX = 0
  49. if plr.Name == "soins1" then
  50. maxX = 0
  51. requirekillX = maxX
  52. end
  53. local unlockedA = true
  54. local unlockedX = true
  55. local LeftModeUnlocked = false
  56.  
  57. kan = Instance.new("Sound",char)
  58. kan.Volume = 6
  59. kan.PlaybackSpeed = 0.4
  60. kan.Pitch = 0.2
  61. kan.SoundId = "rbxassetid://583415095"
  62. kan.Name = "kreepery"
  63. kan.Looped = true
  64. kan:Play()
  65.  
  66. abss = Instance.new("BillboardGui",char)
  67. abss.Size = UDim2.new(10,0,10,0)
  68. abss.Enabled = false
  69. imgl = Instance.new("ImageLabel",abss)
  70. imgl.Position = UDim2.new(0,0,0,0)
  71. imgl.Size = UDim2.new(1,0,1,0)
  72. imgl.Image = "http://www.roblox.com/asset/?id=342591412"
  73. imgl.BackgroundTransparency = 1
  74. imgl.ImageColor3 = Color3.new(0,0,0)
  75. imgl2 = Instance.new("ImageLabel",abss)
  76. imgl2.Position = UDim2.new(-0.5,0,-0.5,0)
  77. imgl2.Size = UDim2.new(2,0,2,0)
  78. imgl2.Image = "http://www.roblox.com/asset/?id=342591412"
  79. imgl2.BackgroundTransparency = 1
  80. imgl2.ImageColor3 = Color3.new(0,0,0)
  81. img2 = Instance.new("ImageLabel",abss)
  82. img2.Position = UDim2.new(0,0,0,0)
  83. img2.Size = UDim2.new(1,0,1,0)
  84. img2.Image = "rbxassetid://342591412"
  85. img2.BackgroundTransparency = 1
  86. img2.ImageColor3 = Color3.new(0,0,0)
  87.  
  88. function CameraShake(Times, Power)
  89. coroutine.resume(coroutine.create(function()
  90. FV = Instance.new("BoolValue", Character)
  91. FV.Name = "CameraShake"
  92. for ShakeNum=1,Times do
  93. swait()
  94. local ef=Power
  95. if ef>=1 then
  96. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  97. else
  98. ef=Power*10
  99. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  100. end
  101. end
  102. Humanoid.CameraOffset = Vector3.new(0,0,0)
  103. FV:Destroy()
  104. end))
  105. end
  106.  
  107. CamShake=function(Part,Distan,Power,Times)
  108. local de=Part.Position
  109. for i,v in pairs(workspace:children()) do
  110. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  111. for _,c in pairs(v:children()) do
  112. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  113. local Noob=v.Humanoid
  114. if Noob~=nil then
  115. if Noob:FindFirstChild("CamShake")==nil then-- and Noob == Character then
  116. --[[local ss=script.CamShake:clone()
  117. ss.Parent=Noob
  118. ss.Power.Value=Power
  119. ss.Times.Value=Times
  120. ss.Disabled=false]]
  121. CameraShake(Times, Power)
  122. end
  123. end
  124. end
  125. end
  126. end
  127. end
  128. end
  129.  
  130. function chatfunc(text,color)
  131. local chat = coroutine.wrap(function()
  132. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  133. Character:FindFirstChild("TalkingBillBoard"):destroy()
  134. end
  135. local naeeym2 = Instance.new("BillboardGui",Character)
  136. naeeym2.Size = UDim2.new(0,100,0,40)
  137. naeeym2.StudsOffset = Vector3.new(0,3,0)
  138. naeeym2.Adornee = Character.Head
  139. naeeym2.Name = "TalkingBillBoard"
  140. local tecks2 = Instance.new("TextLabel",naeeym2)
  141. tecks2.BackgroundTransparency = 1
  142. tecks2.BorderSizePixel = 0
  143. tecks2.Text = ""
  144. tecks2.Font = "SciFi"
  145. tecks2.TextSize = 30
  146. tecks2.TextStrokeTransparency = 0
  147. tecks2.TextColor3 = color
  148. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  149. tecks2.Size = UDim2.new(1,0,0.5,0)
  150. local tecks3 = Instance.new("TextLabel",naeeym2)
  151. tecks3.BackgroundTransparency = 1
  152. tecks3.BorderSizePixel = 0
  153. tecks3.Text = ""
  154. tecks3.Font = "SciFi"
  155. tecks3.TextSize = 30
  156. tecks3.TextStrokeTransparency = 0
  157. tecks3.TextColor3 = Color3.new(0,0,0)
  158. tecks3.TextStrokeColor3 = color
  159. tecks3.Size = UDim2.new(1,0,0.5,0)
  160. coroutine.resume(coroutine.create(function()
  161. while true do
  162. swait(1)
  163. tecks2.Position = UDim2.new(0,math.random(-10,10),0,math.random(-10,10))
  164. tecks3.Position = UDim2.new(0,math.random(-10,10),0,math.random(-10,10))
  165. tecks2.Rotation = math.random(-15,15)
  166. tecks3.Rotation = math.random(-15,15)
  167. end
  168. end))
  169. for i = 1,string.len(text),1 do
  170. CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115)
  171. tecks2.Text = string.sub(text,1,i)
  172. tecks3.Text = string.sub(text,1,i)
  173. swait(1)
  174. end
  175. wait(1)
  176. local randomrot = math.random(1,2)
  177. if randomrot == 1 then
  178. for i = 1, 50 do
  179. swait()
  180. tecks2.Rotation = tecks2.Rotation - .75
  181. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  182. tecks2.TextTransparency = tecks2.TextTransparency + .04
  183. tecks3.Rotation = tecks2.Rotation + .75
  184. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  185. tecks3.TextTransparency = tecks2.TextTransparency + .04
  186. end
  187. elseif randomrot == 2 then
  188. for i = 1, 50 do
  189. swait()
  190. tecks2.Rotation = tecks2.Rotation + .75
  191. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  192. tecks2.TextTransparency = tecks2.TextTransparency + .04
  193. tecks3.Rotation = tecks2.Rotation - .75
  194. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  195. tecks3.TextTransparency = tecks2.TextTransparency + .04
  196. end
  197. end
  198. naeeym2:Destroy()
  199. end)
  200. chat()
  201. end
  202.  
  203. local Create = LoadLibrary("RbxUtility").Create
  204.  
  205. CFuncs = {
  206. ["Part"] = {
  207. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  208. local Part = Create("Part"){
  209. Parent = Parent,
  210. Reflectance = Reflectance,
  211. Transparency = Transparency,
  212. CanCollide = false,
  213. Locked = true,
  214. BrickColor = BrickColor.new(tostring(BColor)),
  215. Name = Name,
  216. Size = Size,
  217. Material = Material,
  218. }
  219. RemoveOutlines(Part)
  220. return Part
  221. end;
  222. };
  223.  
  224. ["Mesh"] = {
  225. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  226. local Msh = Create(Mesh){
  227. Parent = Part,
  228. Offset = OffSet,
  229. Scale = Scale,
  230. }
  231. if Mesh == "SpecialMesh" then
  232. Msh.MeshType = MeshType
  233. Msh.MeshId = MeshId
  234. end
  235. return Msh
  236. end;
  237. };
  238.  
  239. ["Mesh"] = {
  240. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  241. local Msh = Create(Mesh){
  242. Parent = Part,
  243. Offset = OffSet,
  244. Scale = Scale,
  245. }
  246. if Mesh == "SpecialMesh" then
  247. Msh.MeshType = MeshType
  248. Msh.MeshId = MeshId
  249. end
  250. return Msh
  251. end;
  252. };
  253.  
  254. ["Weld"] = {
  255. Create = function(Parent, Part0, Part1, C0, C1)
  256. local Weld = Create("Weld"){
  257. Parent = Parent,
  258. Part0 = Part0,
  259. Part1 = Part1,
  260. C0 = C0,
  261. C1 = C1,
  262. }
  263. return Weld
  264. end;
  265. };
  266.  
  267. ["Sound"] = {
  268. Create = function(id, par, vol, pit)
  269. coroutine.resume(coroutine.create(function()
  270. local S = Create("Sound"){
  271. Volume = vol,
  272. Pitch = pit or 1,
  273. SoundId = id,
  274. Parent = par or workspace,
  275. }
  276. wait()
  277. S:play()
  278. game:GetService("Debris"):AddItem(S, 10)
  279. end))
  280. end;
  281. };
  282.  
  283. ["LongSound"] = {
  284. Create = function(id, par, vol, pit)
  285. coroutine.resume(coroutine.create(function()
  286. local S = Create("Sound"){
  287. Volume = vol,
  288. Pitch = pit or 1,
  289. SoundId = id,
  290. Parent = par or workspace,
  291. }
  292. wait()
  293. S:play()
  294. game:GetService("Debris"):AddItem(S, 30)
  295. end))
  296. end;
  297. };
  298.  
  299. ["ParticleEmitter"] = {
  300. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  301. local fp = Create("ParticleEmitter"){
  302. Parent = Parent,
  303. Color = ColorSequence.new(Color1, Color2),
  304. LightEmission = LightEmission,
  305. Size = Size,
  306. Texture = Texture,
  307. Transparency = Transparency,
  308. ZOffset = ZOffset,
  309. Acceleration = Accel,
  310. Drag = Drag,
  311. LockedToPart = LockedToPart,
  312. VelocityInheritance = VelocityInheritance,
  313. EmissionDirection = EmissionDirection,
  314. Enabled = Enabled,
  315. Lifetime = LifeTime,
  316. Rate = Rate,
  317. Rotation = Rotation,
  318. RotSpeed = RotSpeed,
  319. Speed = Speed,
  320. VelocitySpread = VelocitySpread,
  321. }
  322. return fp
  323. end;
  324. };
  325.  
  326. CreateTemplate = {
  327.  
  328. };
  329. }
  330.  
  331.  
  332.  
  333. New = function(Object, Parent, Name, Data)
  334. local Object = Instance.new(Object)
  335. for Index, Value in pairs(Data or {}) do
  336. Object[Index] = Value
  337. end
  338. Object.Parent = Parent
  339. Object.Name = Name
  340. return Object
  341. end
  342. local halocolor = BrickColor.new("Dark indigo")
  343. local wepcolor = BrickColor.new("Really black")
  344. local MutantParts = Instance.new("Model",char)
  345. local MutantParts2 = Instance.new("Model",char)
  346.  
  347. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  348. local p = Instance.new("Part")
  349. p.TopSurface = 0
  350. p.BottomSurface = 0
  351. p.Parent = parent
  352. p.Size = Vector3.new(0.1,0.1,0.1)
  353. p.Transparency = transparency
  354. p.Reflectance = reflectance
  355. p.CanCollide = false
  356. p.Locked = true
  357. p.BrickColor = brickcolor
  358. p.Material = material
  359. return p
  360. end
  361.  
  362. function CreateMesh(parent,meshtype,x1,y1,z1)
  363. local mesh = Instance.new("SpecialMesh",parent)
  364. mesh.MeshType = meshtype
  365. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  366. return mesh
  367. end
  368.  
  369. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  370. local mesh = Instance.new("SpecialMesh",parent)
  371. mesh.MeshType = "FileMesh"
  372. mesh.MeshId = meshid
  373. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  374. mesh.Scale = Vector3.new(x1,y1,z1)
  375. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  376. return mesh
  377. end
  378.  
  379. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  380. local weld = Instance.new("Weld")
  381. weld.Parent = parent
  382. weld.Part0 = part0
  383. weld.Part1 = part1
  384. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  385. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  386. return weld
  387. end
  388.  
  389. --larm.Name = "MutatedLeftArm"
  390. extend = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Shamrock"))
  391. CreateMesh(extend,"Brick",0.65,1,0.65)
  392. CreateWeld(extend,larm,extend,0,0.25,0.25,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  393. extend = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Shamrock"))
  394. CreateMesh(extend,"Brick",0.65,1,0.65)
  395. CreateWeld(extend,larm,extend,0.25,-0.25,0.275,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  396. extend = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Shamrock"))
  397. CreateMesh(extend,"Brick",0.65,1,0.65)
  398. CreateWeld(extend,larm,extend,-0.275,-0.35,-0.25,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  399. extendblood = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
  400. CreateMesh(extendblood,"Brick",0.05,1.25,0.05)
  401. CreateWeld(extendblood,larm,extendblood,-0.15,0,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  402. extendblood = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
  403. CreateMesh(extendblood,"Brick",0.05,1.25,0.05)
  404. CreateWeld(extendblood,larm,extendblood,-0.275,0.2,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  405. extendblood = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
  406. CreateMesh(extendblood,"Brick",0.05,1.25,0.05)
  407. CreateWeld(extendblood,larm,extendblood,0.05,0.1,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  408. extendblood = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
  409. CreateMesh(extendblood,"Brick",0.05,1.25,0.05)
  410. CreateWeld(extendblood,larm,extendblood,0.15,-0.1,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  411. extendblood = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
  412. CreateMesh(extendblood,"Brick",0.05,1.25,0.05)
  413. CreateWeld(extendblood,larm,extendblood,-0.1,0,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  414. extendblood = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
  415. CreateMesh(extendblood,"Brick",0.05,1.25,0.05)
  416. CreateWeld(extendblood,larm,extendblood,0.5,0.2,0.275,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  417. extendblood = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
  418. CreateMesh(extendblood,"Brick",0.05,1.5,0.05)
  419. CreateWeld(extendblood,larm,extendblood,0.5,0,-0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  420. extendsph = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Shamrock"))
  421. CreateMesh(extendsph,"Sphere",1.25,1.25,1.25)
  422. CreateWeld(extendsph,larm,extendsph,0.185,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  423. extendsph = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Shamrock"))
  424. CreateMesh(extendsph,"Sphere",0.75,0.75,0.75)
  425. CreateWeld(extendsph,larm,extendsph,0.35,-0.25,0.275,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  426. extendsph = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Shamrock"))
  427. CreateMesh(extendsph,"Sphere",0.75,0.75,0.75)
  428. CreateWeld(extendsph,larm,extendsph,-0.35,-0.5,-0.35,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  429. extendcl = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("White"))
  430. CreateMesh(extendcl,"Wedge",0.05,0.5,2)
  431. CreateWeld(extendcl,larm,extendcl,0,-0.5,1,math.rad(90),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  432. extendcl = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("White"))
  433. CreateMesh(extendcl,"Wedge",0.05,0.5,2)
  434. CreateWeld(extendcl,larm,extendcl,0.25,-0.5,1,math.rad(90),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  435. extendcl = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("White"))
  436. CreateMesh(extendcl,"Wedge",0.05,0.5,2)
  437. CreateWeld(extendcl,larm,extendcl,-0.25,-0.5,1,math.rad(90),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  438.  
  439. --- Secondary
  440. extendcl = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("White"))
  441. CreateMesh(extendcl,"Wedge",0.05,1,3)
  442. CreateWeld(extendcl,rarm,extendcl,0,-0.75,1,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  443. extendcl = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("White"))
  444. CreateMesh(extendcl,"Wedge",0.05,1,1)
  445. CreateWeld(extendcl,rarm,extendcl,0,-0.75,1,math.rad(-90),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  446. extend = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright yellow"))
  447. CreateMesh(extend,"Brick",0.65,1,0.65)
  448. CreateWeld(extend,rarm,extend,-0.275,-0.35,-0.25,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  449. extend = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright yellow"))
  450. CreateMesh(extend,"Brick",0.65,1,0.65)
  451. CreateWeld(extend,rarm,extend,0.275,-0.15,0.2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  452. extend = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright yellow"))
  453. CreateMesh(extend,"Brick",0.65,1,0.65)
  454. CreateWeld(extend,rarm,extend,-0.205,0.15,0.2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  455. extendsph = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright yellow"))
  456. CreateMesh(extendsph,"Sphere",1.25,1.25,1.25)
  457. CreateWeld(extendsph,rarm,extendsph,0.125,0,0.2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  458. extendsph = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright yellow"))
  459. CreateMesh(extendsph,"Sphere",0.75,0.75,0.75)
  460. CreateWeld(extendsph,rarm,extendsph,-0.35,-0.25,0.275,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  461. extendsph = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright yellow"))
  462. CreateMesh(extendsph,"Sphere",0.75,0.75,0.75)
  463. CreateWeld(extendsph,rarm,extendsph,0.315,-0.5,-0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  464. extendsph = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright yellow"))
  465. CreateMesh(extendsph,"Sphere",0.75,0.75,0.75)
  466. CreateWeld(extendsph,rarm,extendsph,-0.235,0.45,-0.3,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  467. extendblood = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
  468. CreateMesh(extendblood,"Brick",0.05,1.25,0.05)
  469. CreateWeld(extendblood,rarm,extendblood,-0.15,0,0.525,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  470. extendblood = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
  471. CreateMesh(extendblood,"Brick",0.05,1.25,0.05)
  472. CreateWeld(extendblood,rarm,extendblood,-0.275,0.2,0.525,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  473. extendblood = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
  474. CreateMesh(extendblood,"Brick",0.05,1.25,0.05)
  475. CreateWeld(extendblood,rarm,extendblood,0.25,0.1,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  476. extendblood = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
  477. CreateMesh(extendblood,"Brick",0.05,1.25,0.05)
  478. CreateWeld(extendblood,rarm,extendblood,0.15,-0.1,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  479. extendblood = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
  480. CreateMesh(extendblood,"Brick",0.05,1.25,0.05)
  481. CreateWeld(extendblood,rarm,extendblood,-0.1,0,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  482. extendblood = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
  483. CreateMesh(extendblood,"Brick",0.05,1.25,0.05)
  484. CreateWeld(extendblood,rarm,extendblood,-0.5,0.2,0.275,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  485. extendblood = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
  486. CreateMesh(extendblood,"Brick",0.05,1.5,0.05)
  487. CreateWeld(extendblood,rarm,extendblood,-0.5,0,-0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  488.  
  489. for i, v in pairs(MutantParts:GetChildren()) do
  490. if v:IsA("Part") then
  491. v.Transparency = 1
  492. end
  493. end
  494.  
  495. for i, v in pairs(MutantParts2:GetChildren()) do
  496. if v:IsA("Part") then
  497. v.Transparency = 1
  498. end
  499. end
  500. function RemoveOutlines(part)
  501. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  502. end
  503. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  504. local Part = Create("Part")({
  505. Parent = Parent,
  506. Reflectance = Reflectance,
  507. Transparency = Transparency,
  508. CanCollide = false,
  509. Locked = true,
  510. BrickColor = BrickColor.new(tostring(BColor)),
  511. Name = Name,
  512. Size = Size,
  513. Material = Material
  514. })
  515. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  516. RemoveOutlines(Part)
  517. return Part
  518. end
  519. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  520. local Msh = Create(Mesh)({
  521. Parent = Part,
  522. Offset = OffSet,
  523. Scale = Scale
  524. })
  525. if Mesh == "SpecialMesh" then
  526. Msh.MeshType = MeshType
  527. Msh.MeshId = MeshId
  528. end
  529. return Msh
  530. end
  531. function CreateWeld(Parent, Part0, Part1, C0, C1)
  532. local Weld = Create("Weld")({
  533. Parent = Parent,
  534. Part0 = Part0,
  535. Part1 = Part1,
  536. C0 = C0,
  537. C1 = C1
  538. })
  539. return Weld
  540. end
  541.  
  542. local ff = Instance.new("ForceField",char)
  543. ff.Visible = false
  544.  
  545. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  546. local gui = it(GuiType)
  547. gui.Parent = parent
  548. gui.Text = text
  549. gui.BackgroundTransparency = backtrans
  550. gui.BackgroundColor3 = backcol
  551. gui.SizeConstraint = "RelativeXY"
  552. gui.TextXAlignment = "Center"
  553. gui.TextYAlignment = "Center"
  554. gui.Position = pos
  555. gui.Size = size
  556. gui.Font = "SourceSans"
  557. gui.FontSize = "Size14"
  558. gui.TextWrapped = false
  559. gui.TextStrokeTransparency = 0
  560. gui.TextColor = BrickColor.new("White")
  561. return gui
  562. end
  563. ---- GUI set
  564. local basgui = it("GuiMain")
  565. basgui.Parent = plr.PlayerGui
  566. basgui.Name = "Killcounter GUI"
  567. local basframe = it("Frame")
  568. basframe.Parent = basgui
  569. basframe.BackgroundColor3 = Color3.new(255, 255, 255)
  570. basframe.BackgroundTransparency = 1
  571. basframe.BorderColor3 = Color3.new(17, 17, 17)
  572. basframe.Size = UDim2.new(0.2, 0, 0.2, 0)
  573. basframe.Position = UDim2.new(0.8, 0, 0.8, 0)
  574.  
  575. local basframelist = it("Frame")
  576. basframelist.Parent = basgui
  577. basframelist.BackgroundColor3 = Color3.new(255, 255, 255)
  578. basframelist.BackgroundTransparency = 1
  579. basframelist.BorderColor3 = Color3.new(17, 17, 17)
  580. basframelist.Size = UDim2.new(0.2, 0, 0.2, 0)
  581. basframelist.Position = UDim2.new(0.8, 0, 0.8, 0)
  582.  
  583. local uhh = gui("TextLabel", basframe, "Basic", 1, BrickColor.new("Really black").Color, UDim2.new(-0.15, 0, 0.10, 0), UDim2.new(0.95, 0, 0.15, 0))
  584. uhh.ZIndex = 2
  585. uhh.Font = "Arcade"
  586. uhh.TextStrokeColor3 = Color3.new(180,180,0)
  587. uhh.TextColor3 = Color3.new(0,0,0)
  588. uhh.BackgroundTransparency = 1
  589. uhh.BorderSizePixel = 0.65
  590. uhh.TextScaled = false
  591. uhh.TextXAlignment = "Left"
  592. uhh.Text = "Kills : 0"
  593. uhh.TextSize = 54
  594.  
  595.  
  596. local uhh2 = gui("TextLabel", basframelist, "Basic", 1, BrickColor.new("Really black").Color, UDim2.new(-0.8, 0, 0.10, 0), UDim2.new(0.95, 0, 0.15, 0))
  597. uhh2.ZIndex = 2
  598. uhh2.Font = "Bodoni"
  599. uhh2.TextStrokeColor3 = Color3.new(1,0,0)
  600. uhh2.TextColor3 = Color3.new(0,0,0)
  601. uhh2.BackgroundTransparency = 1
  602. uhh2.BorderSizePixel = 0.65
  603. uhh2.TextScaled = false
  604. uhh2.TextXAlignment = "Left"
  605. uhh2.Text = "Required kills for second mutated arm: 15"
  606. uhh2.TextSize = 24
  607. local uhh3 = gui("TextLabel", basframelist, "Basic", 1, BrickColor.new("Really black").Color, UDim2.new(-0.5, 0, -0.1, 0), UDim2.new(0.95, 0, 0.15, 0))
  608. uhh3.ZIndex = 2
  609. uhh3.Font = "Bodoni"
  610. uhh3.TextStrokeColor3 = Color3.new(1,0,0)
  611. uhh3.TextColor3 = Color3.new(0,0,0)
  612. uhh3.BackgroundTransparency = 1
  613. uhh3.BorderSizePixel = 0.65
  614. uhh3.TextScaled = false
  615. uhh3.TextXAlignment = "Left"
  616. uhh3.Text = "Required kills for the end: 50"
  617. uhh3.TextSize = 24
  618.  
  619.  
  620. Player=game:GetService("Players").LocalPlayer
  621. Character=Player.Character
  622. local Mouse = Player:GetMouse()
  623. PlayerGui=Player.PlayerGui
  624. Backpack=Player.Backpack
  625. Torso=Character.Torso
  626. Head=Character.Head
  627. Humanoid=Character.Humanoid
  628. m=Instance.new('Model',Character)
  629. LeftArm=Character["Left Arm"]
  630. LeftLeg=Character["Left Leg"]
  631. RightArm=Character["Right Arm"]
  632. RightLeg=Character["Right Leg"]
  633. LS=Torso["Left Shoulder"]
  634. LH=Torso["Left Hip"]
  635. RS=Torso["Right Shoulder"]
  636. RH=Torso["Right Hip"]
  637. Face = Head.face
  638. Neck=Torso.Neck
  639. it=Instance.new
  640. attacktype=1
  641. vt=Vector3.new
  642. cf=CFrame.new
  643. euler=CFrame.fromEulerAnglesXYZ
  644. angles=CFrame.Angles
  645. cloaked=false
  646. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  647. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  648. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  649. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  650. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  651. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  652. RootPart=Character.HumanoidRootPart
  653. RootJoint=RootPart.RootJoint
  654. RootCF=euler(-1.57,0,3.14)
  655. attack = false
  656. attackdebounce = false
  657. deb=false
  658. equipped=true
  659. hand=false
  660. MMouse=nil
  661. combo=0
  662. mana=0
  663. trispeed=.2
  664. attackmode='none'
  665. local idle=0
  666. local Anim="Idle"
  667. local Effects={}
  668. local gun=false
  669. local shoot=false
  670. local sine = 0
  671. local change = 1
  672. player=nil
  673.  
  674. mouse=Player:GetMouse()
  675. --save shoulders
  676. RSH, LSH=nil, nil
  677. --welds
  678. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  679. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  680. LH=Torso["Left Hip"]
  681. RH=Torso["Right Hip"]
  682. TorsoColor=Torso.BrickColor
  683. function NoOutline(Part)
  684. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  685. end
  686. player=Player
  687. ch=Character
  688. RSH=ch.Torso["Right Shoulder"]
  689. LSH=ch.Torso["Left Shoulder"]
  690. --
  691. RSH.Parent=nil
  692. LSH.Parent=nil
  693. --
  694. RW.Name="Right Shoulder"
  695. RW.Part0=ch.Torso
  696. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  697. RW.C1=cf(0, 0.5, 0)
  698. RW.Part1=ch["Right Arm"]
  699. RW.Parent=ch.Torso
  700. --
  701. LW.Name="Left Shoulder"
  702. LW.Part0=ch.Torso
  703. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  704. LW.C1=cf(0, 0.5, 0)
  705. LW.Part1=ch["Left Arm"]
  706. LW.Parent=ch.Torso
  707.  
  708. local Stats=Instance.new("BoolValue")
  709. Stats.Name="Stats"
  710. Stats.Parent=Character
  711. local Atk=Instance.new("NumberValue")
  712. Atk.Name="Damage"
  713. Atk.Parent=Stats
  714. Atk.Value=1
  715. local Def=Instance.new("NumberValue")
  716. Def.Name="Defense"
  717. Def.Parent=Stats
  718. Def.Value=1
  719. local Speed=Instance.new("NumberValue")
  720. Speed.Name="Speed"
  721. Speed.Parent=Stats
  722. Speed.Value=1
  723. local Mvmt=Instance.new("NumberValue")
  724. Mvmt.Name="Movement"
  725. Mvmt.Parent=Stats
  726. Mvmt.Value=1
  727.  
  728. local donum=0
  729.  
  730.  
  731. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  732. local fp=it("Part")
  733. fp.formFactor=formfactor
  734. fp.Parent=parent
  735. fp.Reflectance=reflectance
  736. fp.Transparency=transparency
  737. fp.CanCollide=false
  738. fp.Locked=true
  739. fp.BrickColor=brickcolor
  740. fp.Name=name
  741. fp.Size=size
  742. fp.Position=Torso.Position
  743. NoOutline(fp)
  744. fp.Material="SmoothPlastic"
  745. fp:BreakJoints()
  746. return fp
  747. end
  748.  
  749. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  750. local mesh=it(Mesh)
  751. mesh.Parent=part
  752. if Mesh=="SpecialMesh" then
  753. mesh.MeshType=meshtype
  754. if meshid~="nil" then
  755. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  756. end
  757. end
  758. mesh.Offset=offset
  759. mesh.Scale=scale
  760. return mesh
  761. end
  762.  
  763. function weld(parent,part0,part1,c0)
  764. local weld=it("Weld")
  765. weld.Parent=parent
  766. weld.Part0=part0
  767. weld.Part1=part1
  768. weld.C0=c0
  769. return weld
  770. end
  771.  
  772. local Color1=Torso.BrickColor
  773.  
  774. local bodvel=Instance.new("BodyVelocity")
  775. local bg=Instance.new("BodyGyro")
  776.  
  777. function swait(num)
  778. if num==0 or num==nil then
  779. game:service'RunService'.Stepped:wait(0)
  780. else
  781. for i=0,num do
  782. game:service'RunService'.Stepped:wait(0)
  783. end
  784. end
  785. end
  786.  
  787.  
  788. so = function(id,par,vol,pit)
  789. coroutine.resume(coroutine.create(function()
  790. local sou = Instance.new("Sound",par or workspace)
  791. sou.Volume=vol
  792. sou.Pitch=pit or 1
  793. sou.SoundId=id
  794. swait()
  795. sou:play()
  796. game:GetService("Debris"):AddItem(sou,6)
  797. end))
  798. end
  799.  
  800. function clerp(a,b,t)
  801. local qa = {QuaternionFromCFrame(a)}
  802. local qb = {QuaternionFromCFrame(b)}
  803. local ax, ay, az = a.x, a.y, a.z
  804. local bx, by, bz = b.x, b.y, b.z
  805. local _t = 1-t
  806. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  807. end
  808.  
  809. function QuaternionFromCFrame(cf)
  810. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  811. local trace = m00 + m11 + m22
  812. if trace > 0 then
  813. local s = math.sqrt(1 + trace)
  814. local recip = 0.5/s
  815. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  816. else
  817. local i = 0
  818. if m11 > m00 then
  819. i = 1
  820. end
  821. if m22 > (i == 0 and m00 or m11) then
  822. i = 2
  823. end
  824. if i == 0 then
  825. local s = math.sqrt(m00-m11-m22+1)
  826. local recip = 0.5/s
  827. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  828. elseif i == 1 then
  829. local s = math.sqrt(m11-m22-m00+1)
  830. local recip = 0.5/s
  831. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  832. elseif i == 2 then
  833. local s = math.sqrt(m22-m00-m11+1)
  834. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  835. end
  836. end
  837. end
  838.  
  839. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  840. local xs, ys, zs = x + x, y + y, z + z
  841. local wx, wy, wz = w*xs, w*ys, w*zs
  842. local xx = x*xs
  843. local xy = x*ys
  844. local xz = x*zs
  845. local yy = y*ys
  846. local yz = y*zs
  847. local zz = z*zs
  848. 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))
  849. end
  850.  
  851. function QuaternionSlerp(a, b, t)
  852. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  853. local startInterp, finishInterp;
  854. if cosTheta >= 0.0001 then
  855. if (1 - cosTheta) > 0.0001 then
  856. local theta = math.acos(cosTheta)
  857. local invSinTheta = 1/math.sin(theta)
  858. startInterp = math.sin((1-t)*theta)*invSinTheta
  859. finishInterp = math.sin(t*theta)*invSinTheta
  860. else
  861. startInterp = 1-t
  862. finishInterp = t
  863. end
  864. else
  865. if (1+cosTheta) > 0.0001 then
  866. local theta = math.acos(-cosTheta)
  867. local invSinTheta = 1/math.sin(theta)
  868. startInterp = math.sin((t-1)*theta)*invSinTheta
  869. finishInterp = math.sin(t*theta)*invSinTheta
  870. else
  871. startInterp = t-1
  872. finishInterp = t
  873. end
  874. end
  875. 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
  876. end
  877.  
  878. local function CFrameFromTopBack(at, top, back)
  879. local right = top:Cross(back)
  880. return CFrame.new(at.x, at.y, at.z,
  881. right.x, top.x, back.x,
  882. right.y, top.y, back.y,
  883. right.z, top.z, back.z)
  884. end
  885.  
  886. function Triangle(a, b, c)
  887. local edg1 = (c-a):Dot((b-a).unit)
  888. local edg2 = (a-b):Dot((c-b).unit)
  889. local edg3 = (b-c):Dot((a-c).unit)
  890. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  891. a, b, c = a, b, c
  892. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  893. a, b, c = b, c, a
  894. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  895. a, b, c = c, a, b
  896. else
  897. assert(false, "unreachable")
  898. end
  899.  
  900. local len1 = (c-a):Dot((b-a).unit)
  901. local len2 = (b-a).magnitude - len1
  902. local width = (a + (b-a).unit*len1 - c).magnitude
  903.  
  904. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  905.  
  906. local list = {}
  907.  
  908. if len1 > 0.01 then
  909. local w1 = Instance.new('WedgePart', m)
  910. game:GetService("Debris"):AddItem(w1,5)
  911. w1.Material = "SmoothPlastic"
  912. w1.FormFactor = 'Custom'
  913. w1.BrickColor = BrickColor.new("Really red")
  914. w1.Transparency = 0
  915. w1.Reflectance = 0
  916. w1.Material = "SmoothPlastic"
  917. w1.CanCollide = false
  918. local l1 = Instance.new("PointLight",w1)
  919. l1.Color = Color3.new(170,0,0)
  920. NoOutline(w1)
  921. local sz = Vector3.new(0.2, width, len1)
  922. w1.Size = sz
  923. local sp = Instance.new("SpecialMesh",w1)
  924. sp.MeshType = "Wedge"
  925. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  926. w1:BreakJoints()
  927. w1.Anchored = true
  928. w1.Parent = workspace
  929. w1.Transparency = 0.7
  930. table.insert(Effects,{w1,"Disappear",.01})
  931. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  932. table.insert(list,w1)
  933. end
  934.  
  935. if len2 > 0.01 then
  936. local w2 = Instance.new('WedgePart', m)
  937. game:GetService("Debris"):AddItem(w2,5)
  938. w2.Material = "SmoothPlastic"
  939. w2.FormFactor = 'Custom'
  940. w2.BrickColor = BrickColor.new("Really red")
  941. w2.Transparency = 0
  942. w2.Reflectance = 0
  943. w2.Material = "SmoothPlastic"
  944. w2.CanCollide = false
  945. local l2 = Instance.new("PointLight",w2)
  946. l2.Color = Color3.new(170,0,0)
  947. NoOutline(w2)
  948. local sz = Vector3.new(0.2, width, len2)
  949. w2.Size = sz
  950. local sp = Instance.new("SpecialMesh",w2)
  951. sp.MeshType = "Wedge"
  952. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  953. w2:BreakJoints()
  954. w2.Anchored = true
  955. w2.Parent = workspace
  956. w2.Transparency = 0.7
  957. table.insert(Effects,{w2,"Disappear",.01})
  958. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  959. table.insert(list,w2)
  960. end
  961. return unpack(list)
  962. end
  963.  
  964.  
  965. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  966. if hit.Parent == nil then
  967. return
  968. end
  969. local h = hit.Parent:FindFirstChild("Humanoid")
  970. for _, v in pairs(hit.Parent:children()) do
  971. if v:IsA("Humanoid") then
  972. h = v
  973. end
  974. end
  975. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") then
  976. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  977. return
  978. end
  979. local c = Create("ObjectValue")({
  980. Name = "creator",
  981. Value = game:service("Players").LocalPlayer,
  982. Parent = h
  983. })
  984. game:GetService("Debris"):AddItem(c, 0.5)
  985. if HitSound ~= nil and HitPitch ~= nil then
  986. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  987. end
  988. local Damage = math.random(minim, maxim)
  989. local blocked = false
  990. local block = hit.Parent:findFirstChild("Block")
  991. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  992. blocked = true
  993. block.Value = block.Value - 1
  994. print(block.Value)
  995. end
  996. if blocked == false then
  997. HitHealth = h.Health
  998. h.Health = h.Health - Damage
  999. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1000. print("gained kill")
  1001. end
  1002. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1003. else
  1004. h.Health = h.Health - Damage / 2
  1005. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1006. end
  1007. if Type == "Knockdown" then
  1008. local hum = hit.Parent.Humanoid
  1009. hum.PlatformStand = true
  1010. coroutine.resume(coroutine.create(function(HHumanoid)
  1011. swait(1)
  1012. HHumanoid.PlatformStand = false
  1013. end), hum)
  1014. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1015. local bodvol = Create("BodyVelocity")({
  1016. velocity = angle * knockback,
  1017. P = 5000,
  1018. maxForce = Vector3.new(8000, 8000, 8000),
  1019. Parent = hit
  1020. })
  1021. local rl = Create("BodyAngularVelocity")({
  1022. P = 3000,
  1023. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1024. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1025. Parent = hit
  1026. })
  1027. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1028. game:GetService("Debris"):AddItem(rl, 0.5)
  1029. elseif Type == "Normal" then
  1030. local vp = Create("BodyVelocity")({
  1031. P = 500,
  1032. maxForce = Vector3.new(math.huge, 0, math.huge),
  1033. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1034. })
  1035. if knockback > 0 then
  1036. vp.Parent = hit.Parent.Torso
  1037. end
  1038. game:GetService("Debris"):AddItem(vp, 0.5)
  1039. elseif Type == "Up" then
  1040. local bodyVelocity = Create("BodyVelocity")({
  1041. velocity = Vector3.new(0, 20, 0),
  1042. P = 5000,
  1043. maxForce = Vector3.new(8000, 8000, 8000),
  1044. Parent = hit
  1045. })
  1046. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1047. local bodyVelocity = Create("BodyVelocity")({
  1048. velocity = Vector3.new(0, 20, 0),
  1049. P = 5000,
  1050. maxForce = Vector3.new(8000, 8000, 8000),
  1051. Parent = hit
  1052. })
  1053. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1054. elseif Type == "Leech" then
  1055. local hum = hit.Parent.Humanoid
  1056. if hum ~= nil then
  1057. for i = 0, 2 do
  1058. Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  1059. end
  1060. Humanoid.Health = Humanoid.Health + 10
  1061. end
  1062. elseif Type == "UpKnock" then
  1063. local hum = hit.Parent.Humanoid
  1064. hum.PlatformStand = true
  1065. if hum ~= nil then
  1066. hitr = true
  1067. end
  1068. coroutine.resume(coroutine.create(function(HHumanoid)
  1069. swait(5)
  1070. HHumanoid.PlatformStand = false
  1071. hitr = false
  1072. end), hum)
  1073. local bodyVelocity = Create("BodyVelocity")({
  1074. velocity = Vector3.new(0, 20, 0),
  1075. P = 5000,
  1076. maxForce = Vector3.new(8000, 8000, 8000),
  1077. Parent = hit
  1078. })
  1079. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1080. local bodyVelocity = Create("BodyVelocity")({
  1081. velocity = Vector3.new(0, 20, 0),
  1082. P = 5000,
  1083. maxForce = Vector3.new(8000, 8000, 8000),
  1084. Parent = hit
  1085. })
  1086. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1087. elseif Type == "Snare" then
  1088. local bp = Create("BodyPosition")({
  1089. P = 2000,
  1090. D = 100,
  1091. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1092. position = hit.Parent.Torso.Position,
  1093. Parent = hit.Parent.Torso
  1094. })
  1095. game:GetService("Debris"):AddItem(bp, 1)
  1096. elseif Type == "Slashnare" then
  1097. Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
  1098. for i = 1, math.random(4, 5) do
  1099. Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  1100. end
  1101. local bp = Create("BodyPosition")({
  1102. P = 2000,
  1103. D = 100,
  1104. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1105. position = hit.Parent.Torso.Position,
  1106. Parent = hit.Parent.Torso
  1107. })
  1108. game:GetService("Debris"):AddItem(bp, 1)
  1109. elseif Type == "Spike" then
  1110. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1111. local bp = Create("BodyPosition")({
  1112. P = 2000,
  1113. D = 100,
  1114. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1115. position = hit.Parent.Torso.Position,
  1116. Parent = hit.Parent.Torso
  1117. })
  1118. game:GetService("Debris"):AddItem(bp, 1)
  1119. elseif Type == "Freeze" then
  1120. local BodPos = Create("BodyPosition")({
  1121. P = 50000,
  1122. D = 1000,
  1123. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1124. position = hit.Parent.Torso.Position,
  1125. Parent = hit.Parent.Torso
  1126. })
  1127. local BodGy = Create("BodyGyro")({
  1128. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1129. P = 20000,
  1130. Parent = hit.Parent.Torso,
  1131. cframe = hit.Parent.Torso.CFrame
  1132. })
  1133. hit.Parent.Torso.Anchored = true
  1134. coroutine.resume(coroutine.create(function(Part)
  1135. swait(1.5)
  1136. Part.Anchored = false
  1137. end), hit.Parent.Torso)
  1138. game:GetService("Debris"):AddItem(BodPos, 3)
  1139. game:GetService("Debris"):AddItem(BodGy, 3)
  1140. end
  1141. local debounce = Create("BoolValue")({
  1142. Name = "DebounceHit",
  1143. Parent = hit.Parent,
  1144. Value = true
  1145. })
  1146. game:GetService("Debris"):AddItem(debounce, Delay)
  1147. c = Instance.new("ObjectValue")
  1148. c.Name = "creator"
  1149. c.Value = Player
  1150. c.Parent = h
  1151. game:GetService("Debris"):AddItem(c, 0.5)
  1152. end
  1153. end
  1154. function ShowDamage(Pos, Text, Time, Color)
  1155. local Rate = 0.03333333333333333
  1156. local Pos = Pos or Vector3.new(0, 0, 0)
  1157. local Text = Text or ""
  1158. local Time = Time or 2
  1159. local Color = Color or Color3.new(1, 0, 1)
  1160. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1161. EffectPart.Anchored = true
  1162. local BillboardGui = Create("BillboardGui")({
  1163. Size = UDim2.new(3, 0, 3, 0),
  1164. Adornee = EffectPart,
  1165. Parent = EffectPart
  1166. })
  1167. local TextLabel = Create("TextLabel")({
  1168. BackgroundTransparency = 1,
  1169. Size = UDim2.new(1, 0, 1, 0),
  1170. Text = Text,
  1171. TextColor3 = Color,
  1172. TextScaled = true,
  1173. Font = Enum.Font.ArialBold,
  1174. Parent = BillboardGui
  1175. })
  1176. game.Debris:AddItem(EffectPart, Time + 0.1)
  1177. EffectPart.Parent = game:GetService("Workspace")
  1178. delay(0, function()
  1179. local Frames = Time / Rate
  1180. for Frame = 1, Frames do
  1181. wait(Rate)
  1182. local Percent = Frame / Frames
  1183. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1184. TextLabel.TextTransparency = Percent
  1185. end
  1186. if EffectPart and EffectPart.Parent then
  1187. EffectPart:Destroy()
  1188. end
  1189. end)
  1190. end
  1191. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1192. for _, c in pairs(workspace:children()) do
  1193. local hum = c:findFirstChild("Humanoid")
  1194. if hum ~= nil then
  1195. local head = c:findFirstChild("Torso")
  1196. if head ~= nil then
  1197. local targ = head.Position - Part.Position
  1198. local mag = targ.magnitude
  1199. if magni >= mag and c.Name ~= Player.Name then
  1200. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1201. end
  1202. end
  1203. end
  1204. end
  1205. end
  1206.  
  1207. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1208. for _, c in pairs(workspace:children()) do
  1209. local hum = c:findFirstChild("Humanoid")
  1210. if hum ~= nil then
  1211. local head = c:findFirstChild("Torso")
  1212. if head ~= nil then
  1213. local targ = head.Position - Part.Position
  1214. local mag = targ.magnitude
  1215. if magni >= mag and c.Name ~= Player.Name then
  1216. MagicBlock(BrickColor.new("Dark indigo"),head.CFrame,5,5,5,1,1,1,0.05)
  1217. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1218. end
  1219. end
  1220. end
  1221. end
  1222. end
  1223.  
  1224. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1225. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1226. end
  1227.  
  1228. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1229. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1230. prt.Anchored=true
  1231. prt.CFrame=cframe
  1232. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1233. --http://www.roblox.com/asset/?id=4770560
  1234. game:GetService("Debris"):AddItem(prt,2)
  1235. CF=prt.CFrame
  1236. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1237. for i=0,1,0.2 do
  1238. wait()
  1239. Part.CFrame=CF*cf(0,0,-0.4)
  1240. end
  1241. for i=0,1,delay do
  1242. wait()
  1243. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  1244. Mesh.Scale=Mesh.Scale
  1245. end
  1246. for i=0,1,0.1 do
  1247. wait()
  1248. Part.Transparency=i
  1249. end
  1250. Part.Parent=nil
  1251. end),prt,msh,CF)
  1252. end
  1253.  
  1254. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1255. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1256. prt.Anchored=true
  1257. prt.Material = "Neon"
  1258. prt.CFrame=cframe
  1259. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1260. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1261. game:GetService("Debris"):AddItem(prt,5)
  1262. coroutine.resume(coroutine.create(function(Part,Mesh)
  1263. for i=0,1,delay do
  1264. swait()
  1265. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1266. Part.Transparency=i
  1267. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1268. end
  1269. Part.Parent=nil
  1270. end),prt,msh)
  1271. end
  1272.  
  1273. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1274. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1275. prt.Anchored=true
  1276. prt.Material = "Neon"
  1277. prt.CFrame=cframe
  1278. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1279. game:GetService("Debris"):AddItem(prt,5)
  1280. coroutine.resume(coroutine.create(function(Part,Mesh)
  1281. local rtype = rottype
  1282. for i=0,1,delay do
  1283. swait()
  1284. if rtype == 1 then
  1285. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1286. elseif rtype == 2 then
  1287. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1288. end
  1289. Part.Transparency=i
  1290. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1291. end
  1292. Part.Parent=nil
  1293. end),prt,msh)
  1294. end
  1295.  
  1296. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1297. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1298. prt.Anchored=true
  1299. prt.CFrame=cframe
  1300. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1301. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1302. game:GetService("Debris"):AddItem(prt,5)
  1303. coroutine.resume(coroutine.create(function(Part,Mesh)
  1304. for i=0,1,delay do
  1305. wait()
  1306. Part.Transparency=i
  1307. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1308. end
  1309. Part.Parent=nil
  1310. end),prt,msh)
  1311. end
  1312.  
  1313. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1314. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1315. prt.Anchored=true
  1316. prt.Material = "Neon"
  1317. prt.CFrame=cframe
  1318. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1319. game:GetService("Debris"):AddItem(prt,5)
  1320. coroutine.resume(coroutine.create(function(Part,Mesh)
  1321. local rtype = rottype
  1322. for i=0,1,delay do
  1323. swait()
  1324. if rtype == 1 then
  1325. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1326. elseif rtype == 2 then
  1327. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1328. end
  1329. Part.Transparency=i
  1330. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1331. end
  1332. Part.Parent=nil
  1333. end),prt,msh)
  1334. end
  1335.  
  1336. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1337. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1338. prt.Anchored=true
  1339. prt.Material = "Neon"
  1340. prt.CFrame=cframe
  1341. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1342. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1343. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1344. game:GetService("Debris"):AddItem(prt,5)
  1345. coroutine.resume(coroutine.create(function(Part,Mesh)
  1346. local rtype = rottype
  1347. for i=0,1,delay do
  1348. swait()
  1349. if rtype == 1 then
  1350. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1351. elseif rtype == 2 then
  1352. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1353. end
  1354. dec.Transparency=i
  1355. dec2.Transparency=i
  1356. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1357. end
  1358. Part.Parent=nil
  1359. end),prt,msh)
  1360. end
  1361.  
  1362. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1363. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1364. prt.Anchored=true
  1365. prt.Material = "Neon"
  1366. prt.CFrame=cframe
  1367. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1368. game:GetService("Debris"):AddItem(prt,5)
  1369. coroutine.resume(coroutine.create(function(Part,Mesh)
  1370. local rtype = rottype
  1371. for i=0,1,delay do
  1372. swait()
  1373. if rtype == 1 then
  1374. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1375. elseif rtype == 2 then
  1376. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1377. end
  1378. prt.Transparency=i
  1379. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1380. end
  1381. Part.Parent=nil
  1382. end),prt,msh)
  1383. end
  1384.  
  1385. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  1386. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1387. prt.Anchored=true
  1388. prt.Material = "Neon"
  1389. prt.CFrame=cframe
  1390. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  1391. game:GetService("Debris"):AddItem(prt,5)
  1392. coroutine.resume(coroutine.create(function(Part,Mesh)
  1393. local rtype = rottype
  1394. for i=0,1,delay do
  1395. swait()
  1396. if rtype == 1 then
  1397. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  1398. elseif rtype == 2 then
  1399. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  1400. end
  1401. prt.Transparency=i
  1402. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  1403. end
  1404. Part.Parent=nil
  1405. end),prt,msh)
  1406. end
  1407.  
  1408. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  1409. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1410. prt.Anchored=true
  1411. prt.Material = "Neon"
  1412. prt.CFrame=cframe
  1413. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1414. game:GetService("Debris"):AddItem(prt,5)
  1415. coroutine.resume(coroutine.create(function(Part,Mesh)
  1416. local rtype = rottype
  1417. for i=0,1,delay do
  1418. swait()
  1419. if rtype == 1 then
  1420. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1421. elseif rtype == 2 then
  1422. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1423. end
  1424. prt.Transparency=i
  1425. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1426. end
  1427. Part.Parent=nil
  1428. end),prt,msh)
  1429. end
  1430.  
  1431. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1432. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1433. prt.Anchored=true
  1434. prt.Material = "Neon"
  1435. prt.CFrame=cframe
  1436. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1437. game:GetService("Debris"):AddItem(prt,5)
  1438. coroutine.resume(coroutine.create(function(Part,Mesh)
  1439. local rtype = rottype
  1440. for i=0,1,delay do
  1441. swait()
  1442. if rtype == 1 then
  1443. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1444. elseif rtype == 2 then
  1445. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1446. end
  1447. prt.Transparency=i
  1448. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1449. end
  1450. Part.Parent=nil
  1451. end),prt,msh)
  1452. end
  1453.  
  1454. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1455. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1456. prt.Anchored=false
  1457. prt.CFrame=cframe
  1458. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1459. local wld=weld(prt,prt,Parent,cframe)
  1460. game:GetService("Debris"):AddItem(prt,5)
  1461. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1462. for i=0,1,delay do
  1463. wait()
  1464. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  1465. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1466. Part.Transparency=i
  1467. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1468. end
  1469. Part.Parent=nil
  1470. end),prt,msh,wld)
  1471. end
  1472.  
  1473. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1474. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1475. prt.Anchored=false
  1476. prt.CFrame=cframe
  1477. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1478. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  1479. game:GetService("Debris"):AddItem(prt,5)
  1480. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1481. for i=0,1,delay do
  1482. wait()
  1483. Weld.C0=euler(i*20,0,0)
  1484. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1485. Part.Transparency=i
  1486. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1487. end
  1488. Part.Parent=nil
  1489. end),prt,msh,wld)
  1490. end
  1491.  
  1492. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1493. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1494. prt.Anchored=true
  1495. prt.CFrame=cframe
  1496. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1497. game:GetService("Debris"):AddItem(prt,2)
  1498. coroutine.resume(coroutine.create(function(Part,Mesh)
  1499. for i=0,1,delay do
  1500. wait()
  1501. Part.CFrame=Part.CFrame
  1502. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1503. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1504. prt2.Anchored=true
  1505. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1506. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1507. game:GetService("Debris"):AddItem(prt2,2)
  1508. coroutine.resume(coroutine.create(function(Part,Mesh)
  1509. for i=0,1,0.1 do
  1510. wait()
  1511. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  1512. end
  1513. Part.Parent=nil
  1514. end),prt2,msh2)
  1515. end
  1516. for i=0,1,delay*2 do
  1517. wait()
  1518. Part.CFrame=Part.CFrame
  1519. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  1520. end
  1521. Part.Parent=nil
  1522. end),prt,msh)
  1523. end
  1524.  
  1525. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1526. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1527. prt.Anchored=true
  1528. prt.CFrame=cframe
  1529. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1530. game:GetService("Debris"):AddItem(prt,2)
  1531. coroutine.resume(coroutine.create(function(Part,Mesh)
  1532. for i=0,1,delay do
  1533. wait()
  1534. Part.CFrame=Part.CFrame
  1535. Part.Transparency=i
  1536. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1537. end
  1538. Part.Parent=nil
  1539. end),prt,msh)
  1540. end
  1541.  
  1542. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1543. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1544. prt.Anchored=true
  1545. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1546. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1547. game:GetService("Debris"):AddItem(prt,2)
  1548. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1549. CF=Part.CFrame
  1550. Numbb=0
  1551. randnumb=math.random()/10
  1552. rand1=math.random()/10
  1553. for i=0,1,rand1 do
  1554. wait()
  1555. CF=CF*cf(0,math.random()/2,0)
  1556. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  1557. Part.CFrame=CF*euler(Numbb,0,0)
  1558. Part.Transparency=i
  1559. Numbb=Numbb+randnumb
  1560. end
  1561. Part.Parent=nil
  1562. end),prt,CF,Numbb,randnumb)
  1563. end
  1564.  
  1565. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1566. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1567. prt.Anchored=true
  1568. prt.CFrame=cframe
  1569. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1570. game:GetService("Debris"):AddItem(prt,5)
  1571. coroutine.resume(coroutine.create(function(Part,Mesh)
  1572. for i=0,1,delay do
  1573. wait()
  1574. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  1575. Part.Transparency=i
  1576. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1577. end
  1578. Part.Parent=nil
  1579. end),prt,msh)
  1580. end
  1581.  
  1582. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1583. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1584. prt.Anchored=true
  1585. prt.CFrame=cframe
  1586. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1587. game:GetService("Debris"):AddItem(prt,2)
  1588. coroutine.resume(coroutine.create(function(Part,Mesh)
  1589. for i=0,1,delay do
  1590. wait()
  1591. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  1592. Part.Transparency=i
  1593. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1594. end
  1595. Part.Parent=nil
  1596. end),prt,msh)
  1597. end
  1598.  
  1599. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  1600. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1601. prt.Anchored=true
  1602. prt.CFrame=cframe*cf(x,y,z)
  1603. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  1604. game:GetService("Debris"):AddItem(prt,5)
  1605. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  1606. local num=math.random()
  1607. local num2=math.random(-3,2)+math.random()
  1608. local numm=0
  1609. for i=0,1,delay*2 do
  1610. swait()
  1611. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  1612. Part.Transparency=i
  1613. numm=numm+0.01
  1614. end
  1615. Part.Parent=nil
  1616. Mesh.Parent=nil
  1617. end),prt,msh,x,y,z)
  1618. end
  1619.  
  1620. function dmgstart(dmg,what)
  1621. hitcon = what.Touched:connect(function(hit)
  1622. local hum = hit.Parent:FindFirstChild("Humanoid")
  1623. if hum and not hum:IsDescendantOf(Character) then
  1624. hum:TakeDamage(dmg)
  1625. end
  1626. end)
  1627. end
  1628.  
  1629. function dmgstop()
  1630. hitcon:disconnect()
  1631. end
  1632.  
  1633. function Cloak()
  1634. Face.Parent=nil
  1635. cloaked=true
  1636. for _,v in pairs(Torso.Parent:children()) do
  1637. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1638. coroutine.resume(coroutine.create(function()
  1639. for i=0,1,0.2 do
  1640. wait()
  1641. v.Transparency=i
  1642. end
  1643. v.Transparency=1
  1644. end))
  1645. end
  1646. if v.className=="Hat" then
  1647. hatp=v.Handle
  1648. coroutine.resume(coroutine.create(function(derp)
  1649. for i=0,1,0.2 do
  1650. wait()
  1651. derp.Transparency=i
  1652. end
  1653. derp.Transparency=1
  1654. end),hatp)
  1655. end
  1656. end
  1657. for _,v in pairs(m:children()) do
  1658. if v.className=="Part" then
  1659. coroutine.resume(coroutine.create(function()
  1660. for i=0,1,0.2 do
  1661. wait()
  1662. v.Transparency=i
  1663. end
  1664. v.Transparency=1
  1665. end))
  1666. end
  1667. end
  1668. end
  1669.  
  1670. function UnCloak()
  1671. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  1672. Face.Parent=Head
  1673. cloaked=false
  1674. for _,v in pairs(Torso.Parent:children()) do
  1675. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1676. coroutine.resume(coroutine.create(function()
  1677. for i=0,1,0.1 do
  1678. wait()
  1679. v.Transparency=v.Transparency-0.1
  1680. end
  1681. v.Transparency=0
  1682. end))
  1683. end
  1684. if v.className=="Hat" then
  1685. hatp=v.Handle
  1686. coroutine.resume(coroutine.create(function(derp)
  1687. for i=0,1,0.1 do
  1688. wait()
  1689. derp.Transparency=derp.Transparency-0.1
  1690. end
  1691. derp.Transparency=0
  1692. end),hatp)
  1693. end
  1694. end
  1695. for _,v in pairs(m:children()) do
  1696. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  1697. coroutine.resume(coroutine.create(function()
  1698. for i=0,1,0.1 do
  1699. wait()
  1700. v.Transparency=v.Transparency-0.1
  1701. end
  1702. v.Transparency=0
  1703. end))
  1704. v.Transparency=0
  1705. end
  1706. end
  1707. end
  1708.  
  1709. local origcolor = BrickColor.new("Dark indigo")
  1710. ---- This section of explosions.
  1711. function Explode(rad,par,pitch,vol,mindam,maxdam)
  1712. local expart = Instance.new("Part",char)
  1713. local expart2 = Instance.new("Part",char)
  1714. local rin = Instance.new("Part",char)
  1715. local rin2 = Instance.new("Part",char)
  1716. local partMesh = Instance.new("SpecialMesh",expart)
  1717. partMesh.MeshType = "Sphere"
  1718. local partMesh2 = Instance.new("SpecialMesh",expart2)
  1719. partMesh2.MeshType = "Sphere"
  1720. local partMesh3 = Instance.new("SpecialMesh",rin)
  1721. partMesh3.MeshType = "Brick"
  1722. local partMesh4 = Instance.new("SpecialMesh",rin2)
  1723. partMesh4.MeshType = "Brick"
  1724. CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
  1725. partMesh.Scale = vt(rad,rad,rad)
  1726. expart.Size = vt(1,1,1)
  1727. expart.Transparency = 1
  1728. expart.Anchored = true
  1729. expart.Material = "Neon"
  1730. expart.BrickColor = bc("White")
  1731. expart.CFrame = par.CFrame
  1732. partMesh2.Scale = vt(rad,rad,rad)
  1733. expart2.Size = vt(1.15,1.15,1.15)
  1734. expart2.Transparency = 0.75
  1735. expart2.Anchored = true
  1736. expart2.Material = "Glass"
  1737. expart2.BrickColor = par.BrickColor
  1738. expart2.CFrame = par.CFrame
  1739. rin.Size = vt(1.15,1.15,1.15)
  1740. rin.Transparency = 1
  1741. rin.Anchored = true
  1742. rin.Material = "Neon"
  1743. rin.BrickColor = par.BrickColor
  1744. rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1745. rin2.Size = vt(1.15,1.15,1.15)
  1746. rin2.Transparency = 1
  1747. rin2.Anchored = true
  1748. rin2.Material = "Neon"
  1749. rin2.BrickColor = par.BrickColor
  1750. rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1751. partMesh3.Scale = vt(0,1,0)
  1752. partMesh4.Scale = vt(0,1,0)
  1753. local dec2 = Instance.new("Decal", rin)
  1754. dec2.Face = "Top"
  1755. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  1756. dec2.Parent = rin
  1757. local dec2b = dec2:Clone()
  1758. dec2b.Face = "Bottom"
  1759. dec2b.Parent = rin
  1760.  
  1761. local dec2a = Instance.new("Decal", rin2)
  1762. dec2a.Face = "Top"
  1763. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  1764. dec2a.Parent = rin2
  1765. local dec2ab = dec2a:Clone()
  1766. dec2ab.Face = "Bottom"
  1767. dec2ab.Parent = rin2
  1768. expart.CanCollide = false
  1769. expart2.CanCollide = false
  1770. rin.CanCollide = false
  1771. rin2.CanCollide = false
  1772. MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal")
  1773. local value = 1*rad/6.5
  1774. for i = 0, 199 do
  1775. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1776. expart.CFrame = expart.CFrame
  1777. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  1778. expart2.CFrame = expart.CFrame
  1779. value = value - 0.035*rad/30
  1780. if value < 7.5 then
  1781. partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
  1782. rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0)
  1783. partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
  1784. rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0)
  1785. end
  1786. if value < 0 then
  1787. dec2.Transparency = dec2.Transparency + 0.025
  1788. dec2a.Transparency = dec2a.Transparency + 0.025
  1789. dec2b.Transparency = dec2b.Transparency + 0.025
  1790. dec2ab.Transparency = dec2ab.Transparency + 0.025
  1791. expart.Transparency = expart.Transparency + 0.025
  1792. expart2.Transparency = expart2.Transparency + 0.025
  1793. rin.Transparency = rin.Transparency + 0.025
  1794. rin2.Transparency = rin2.Transparency + 0.025
  1795. end
  1796. swait()
  1797. end
  1798. game:GetService("Debris"):AddItem(expart, 1)
  1799. game:GetService("Debris"):AddItem(expart2, 1)
  1800. game:GetService("Debris"):AddItem(rin, 1)
  1801. game:GetService("Debris"):AddItem(rin2, 1)
  1802. end
  1803.  
  1804. function ExplodeShort(rad,par,pitch,vol,mindam,maxdam)
  1805. local expart = Instance.new("Part",char)
  1806. local expart2 = Instance.new("Part",char)
  1807. local partMesh = Instance.new("SpecialMesh",expart)
  1808. partMesh.MeshType = "Sphere"
  1809. local partMesh2 = Instance.new("SpecialMesh",expart2)
  1810. partMesh2.MeshType = "Sphere"
  1811. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
  1812. partMesh.Scale = vt(rad,rad,rad)
  1813. expart.Size = vt(1,1,1)
  1814. expart.Transparency = 0
  1815. expart.Anchored = true
  1816. expart.Material = "Neon"
  1817. expart.BrickColor = bc("White")
  1818. expart.CFrame = par.CFrame
  1819. partMesh2.Scale = vt(rad,rad,rad)
  1820. expart2.Size = vt(1.15,1.15,1.15)
  1821. expart2.Transparency = 0.5
  1822. expart2.Anchored = true
  1823. expart2.Material = "Neon"
  1824. expart2.BrickColor = par.BrickColor
  1825. expart2.CFrame = par.CFrame
  1826. expart.CanCollide = false
  1827. expart2.CanCollide = false
  1828. MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal")
  1829. local value = 1*rad/6.5
  1830. for i = 0, 75 do
  1831. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1832. expart.CFrame = expart.CFrame
  1833. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  1834. expart2.CFrame = expart.CFrame
  1835. value = value - 0.035*rad/5
  1836. if value < 0 then
  1837. value = 0
  1838. expart.Transparency = expart.Transparency + 0.05
  1839. expart2.Transparency = expart2.Transparency + 0.05
  1840. end
  1841. swait()
  1842. end
  1843. game:GetService("Debris"):AddItem(expart, 1)
  1844. game:GetService("Debris"):AddItem(expart2, 1)
  1845. end
  1846.  
  1847. function AreaDanger(rad,par,mindam,maxdam)
  1848. local expart = Instance.new("Part",char)
  1849. local partMesh = Instance.new("SpecialMesh",expart)
  1850. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  1851. partMesh.MeshType = "Sphere"
  1852. partMesh.Scale = vt(rad,rad,rad)
  1853. expart.Size = vt(1,1,1)
  1854. expart.Transparency = 0.5
  1855. expart.Anchored = true
  1856. expart.Material = "Neon"
  1857. expart.CanCollide = false
  1858. expart.BrickColor = par.BrickColor
  1859. expart.CFrame = par.CFrame
  1860. local value = 1*rad/5
  1861. MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1)
  1862. for i = 0, 14 do
  1863. wait()
  1864. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1865. expart.CFrame = expart.CFrame
  1866. value = value - 0.035*rad
  1867. if value < 0 then
  1868. value = 0
  1869. end
  1870. end
  1871. wait(0.25)
  1872. CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
  1873. wait(0.5)
  1874. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
  1875. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
  1876. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  1877. MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025)
  1878. for i = 0, 14 do
  1879. wait()
  1880. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1881. expart.CFrame = expart.CFrame
  1882. value = value - 0.035*rad/2
  1883. end
  1884. expart.Transparency = 1
  1885. game:GetService("Debris"):AddItem(expart, 5)
  1886. end
  1887.  
  1888. function Swarmsplosions(negrad,rad,par,mindam,maxdam)
  1889. CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
  1890. CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
  1891. CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
  1892. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  1893. MagniDamageWithEffect(par, 25, 5,10, 0, "Normal")
  1894. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025)
  1895. for i = 0, 24 do
  1896. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,25,0.005,math.random(1,2))
  1897. end
  1898. for i = 0, 24 do
  1899. local expart = Instance.new("Part",char)
  1900. expart.Transparency = 1
  1901. expart.Anchored = true
  1902. expart.CanCollide = false
  1903. expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad))
  1904. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
  1905. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  1906. MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal")
  1907. MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025)
  1908. for i = 0, 9 do
  1909. MagicShockTrailAlt2(origcolor,expart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,5,0.05,math.random(1,2))
  1910. end
  1911. game:GetService("Debris"):AddItem(expart, 2)
  1912. wait(0.1)
  1913. end
  1914. end
  1915.  
  1916. function EXterPlosion(par)
  1917. CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
  1918. CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
  1919. CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
  1920. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  1921. MagniDamageWithEffect(par, 500, 80,99, 0, "Normal")
  1922. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005)
  1923. MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1)
  1924. for i = 0, 24 do
  1925. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*10,-0.05*10,500,0.1,math.random(1,2))
  1926. end
  1927. for i = 0, 24 do
  1928. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*5,-0.05*5,50,0.005,math.random(1,2))
  1929. end
  1930. end
  1931. ----
  1932.  
  1933. local stackingpower = 1
  1934.  
  1935. function HellsCore()
  1936. attack = true
  1937. --[[for i = 0,1,0.1 do
  1938. swait()
  1939. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),0.3)
  1940. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  1941. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
  1942. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1943. end]]--
  1944.  
  1945. local rng = Instance.new("Part", char)
  1946. CFuncs["Sound"].Create("rbxassetid://401466969", root, 1, 0.6)
  1947. rng.Anchored = true
  1948. rng.BrickColor = origcolor
  1949. rng.CanCollide = false
  1950. rng.FormFactor = 3
  1951. rng.Name = "Ring"
  1952. rng.Material = "Neon"
  1953. rng.Size = Vector3.new(1, 1, 1)
  1954. rng.Transparency = 1
  1955. rng.TopSurface = 0
  1956. rng.BottomSurface = 0
  1957. rng.CFrame = root.CFrame + Vector3.new(0,-2.5,0)
  1958. local rngm = Instance.new("SpecialMesh", rng)
  1959. rngm.MeshType = "Brick"
  1960. local dec = Instance.new("Decal",rng)
  1961. dec.Texture = "http://www.roblox.com/asset/?id=401466968"
  1962. dec.Face = "Top"
  1963. local dec2 = dec:Clone()
  1964. dec2.Parent = rng
  1965. dec2.Face = "Bottom"
  1966.  
  1967. local scaler2 = 1
  1968. scaler2 = 1*3
  1969. for i = 0,10,0.1 do
  1970. swait()
  1971. scaler2 = scaler2 - 0.01*3
  1972. rngm.Scale = rngm.Scale + Vector3.new(scaler2, 0, scaler2)
  1973. end
  1974. wait(3)
  1975. for i = 0,10,0.1 do
  1976. swait()
  1977. scaler2 = scaler2 - 0.01*3
  1978. dec.Transparency = dec.Transparency + 0.01
  1979. dec2.Transparency = dec2.Transparency + 0.01
  1980. rngm.Scale = rngm.Scale + Vector3.new(scaler2, 0, scaler2)
  1981. end
  1982. rng:Destroy()
  1983. attack = false
  1984. end
  1985.  
  1986.  
  1987. function FaceMouse()
  1988. Cam = workspace.CurrentCamera
  1989. return {
  1990. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  1991. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  1992. }
  1993. end
  1994.  
  1995. function FaceMouse2()
  1996. Cam = workspace.CurrentCamera
  1997. return {
  1998. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  1999. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2000. }
  2001. end
  2002.  
  2003.  
  2004. local HoldingZ = false
  2005. local HoldingX = false
  2006. local HoldingC = false
  2007. local HoldingV = false
  2008. local HoldingB = false
  2009.  
  2010.  
  2011. function RingEffect(pos,startsize,size,col)
  2012. local lb = Instance.new("Part")
  2013. lb.Parent = char
  2014. lb.BrickColor = col
  2015. lb.CanCollide = false
  2016. lb.Material = "Neon"
  2017. lb.Anchored = true
  2018. lb.TopSurface = 0
  2019. lb.BottomSurface = 0
  2020. lb.Transparency = 1
  2021. lb.Size = vt(1,1,1)
  2022. lb.CFrame = pos
  2023. local thingery = Instance.new("SpecialMesh",lb)
  2024. thingery.MeshType = "Brick"
  2025. thingery.Scale = vt(startsize,0.1,startsize)
  2026. local dec2 = Instance.new("Texture", lb)
  2027. dec2.Face = "Top"
  2028. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  2029. dec2.Color3 = lb.Color
  2030. dec2.Parent = lb
  2031. dec2.StudsPerTileU = startsize
  2032. dec2.StudsPerTileV = startsize
  2033. local dec2b = dec2:Clone()
  2034. dec2b.Face = "Bottom"
  2035. dec2b.Parent = lb
  2036. local randomrot = math.random(1,2)
  2037. coroutine.resume(coroutine.create(function()
  2038. for i = 0, 19 do
  2039. swait()
  2040. if randomrot == 1 then
  2041. lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(5),0)
  2042. elseif randomrot == 2 then
  2043. lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(-5),0)
  2044. end
  2045. dec2.Transparency = dec2.Transparency + 0.05
  2046. dec2b.Transparency = dec2b.Transparency + 0.05
  2047. dec2.StudsPerTileU = dec2.StudsPerTileU + size
  2048. dec2.StudsPerTileV = dec2.StudsPerTileV + size
  2049. dec2b.StudsPerTileU = dec2b.StudsPerTileU + size
  2050. dec2b.StudsPerTileV = dec2b.StudsPerTileV + size
  2051. thingery.Scale = thingery.Scale + vt(size,0,size)
  2052. end
  2053. lb:Destroy()
  2054. end))
  2055. end
  2056.  
  2057. function SlowRingEffect(pos,startsize,size,col)
  2058. local lb = Instance.new("Part")
  2059. lb.Parent = char
  2060. lb.BrickColor = col
  2061. lb.CanCollide = false
  2062. lb.Material = "Neon"
  2063. lb.Anchored = true
  2064. lb.TopSurface = 0
  2065. lb.BottomSurface = 0
  2066. lb.Transparency = 1
  2067. lb.Size = vt(1,1,1)
  2068. lb.CFrame = pos
  2069. local thingery = Instance.new("SpecialMesh",lb)
  2070. thingery.MeshType = "Brick"
  2071. thingery.Scale = vt(startsize,0.1,startsize)
  2072. local dec2 = Instance.new("Decal", lb)
  2073. dec2.Face = "Top"
  2074. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  2075. dec2.Color3 = lb.Color
  2076. dec2.Parent = lb
  2077. local dec2b = dec2:Clone()
  2078. dec2b.Face = "Bottom"
  2079. dec2b.Parent = lb
  2080. local randomrot = math.random(1,2)
  2081. coroutine.resume(coroutine.create(function()
  2082. for i = 0, 49 do
  2083. swait()
  2084. if randomrot == 1 then
  2085. lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(5),0)
  2086. elseif randomrot == 2 then
  2087. lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(-5),0)
  2088. end
  2089. dec2.Transparency = dec2.Transparency + 0.02
  2090. dec2b.Transparency = dec2b.Transparency + 0.02
  2091. thingery.Scale = thingery.Scale + vt(size,0,size)
  2092. end
  2093. lb:Destroy()
  2094. end))
  2095. end
  2096.  
  2097.  
  2098. function groundringaa(pos)
  2099. local rng = Instance.new("Part", char)
  2100. rng.Anchored = true
  2101. rng.BrickColor = origcolor
  2102. rng.CanCollide = false
  2103. rng.FormFactor = 3
  2104. rng.Name = "Ring"
  2105. rng.Size = Vector3.new(1, 1, 1)
  2106. rng.Transparency = 1
  2107. rng.TopSurface = 0
  2108. rng.BottomSurface = 0
  2109. rng.CFrame = pos
  2110. local rngm = Instance.new("SpecialMesh", rng)
  2111. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2112. rngm.Scale = Vector3.new(100,100,5)
  2113. local scaler2 = -10/2
  2114. coroutine.resume(coroutine.create(function()
  2115. for i = 0,10,0.1 do
  2116. swait()
  2117. scaler2 = scaler2 + 0.1/2
  2118. rng.Transparency = rng.Transparency - 0.01
  2119. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, 0)
  2120. end
  2121. rng:Destroy()
  2122. end))
  2123. end
  2124.  
  2125. function groundringbb(pos)
  2126. local rng = Instance.new("Part", char)
  2127. rng.Anchored = true
  2128. rng.BrickColor = origcolor
  2129. rng.CanCollide = false
  2130. rng.FormFactor = 3
  2131. rng.Name = "Ring"
  2132. rng.Size = Vector3.new(1, 1, 1)
  2133. rng.Transparency = 0
  2134. rng.TopSurface = 0
  2135. rng.BottomSurface = 0
  2136. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  2137. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  2138. local rngm = Instance.new("SpecialMesh", rng)
  2139. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2140. rngm.Scale = Vector3.new(0,0,5)
  2141. local scaler2 = 10
  2142. coroutine.resume(coroutine.create(function()
  2143. for i = 0,10*2,0.1 do
  2144. swait()
  2145. scaler2 = scaler2 - 0.1/2
  2146. rng.Transparency = rng.Transparency + 0.005
  2147. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, scaler2)
  2148. end
  2149. rng:Destroy()
  2150. end))
  2151. end
  2152.  
  2153. function groundglowaa(pos)
  2154. local rng = Instance.new("Part", char)
  2155. rng.Anchored = true
  2156. rng.BrickColor = origcolor
  2157. rng.CanCollide = false
  2158. rng.FormFactor = 3
  2159. rng.Material = "Neon"
  2160. rng.Name = "Ring"
  2161. rng.Size = Vector3.new(1, 1, 1)
  2162. rng.Transparency = 0
  2163. rng.TopSurface = 0
  2164. rng.BottomSurface = 0
  2165. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  2166. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  2167. local rngm = Instance.new("SpecialMesh", rng)
  2168. rngm.MeshType = "Sphere"
  2169. rngm.Scale = Vector3.new(0,0,25)
  2170. local scaler2 = 10*2
  2171. coroutine.resume(coroutine.create(function()
  2172. for i = 0,10*2,0.1 do
  2173. swait()
  2174. scaler2 = scaler2 - 0.1*2/2
  2175. rng.Transparency = rng.Transparency + 0.005
  2176. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, 0)
  2177. end
  2178. rng:Destroy()
  2179. end))
  2180. end
  2181.  
  2182. function bemaa(pos)
  2183. local rng = Instance.new("Part", char)
  2184. rng.Anchored = true
  2185. rng.BrickColor = origcolor
  2186. rng.CanCollide = false
  2187. rng.FormFactor = 3
  2188. rng.Material = "Neon"
  2189. rng.Name = "Ring"
  2190. rng.Size = Vector3.new(1, 1, 1)
  2191. rng.Transparency = 0
  2192. rng.TopSurface = 0
  2193. rng.BottomSurface = 0
  2194. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  2195. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  2196. local rngm = Instance.new("SpecialMesh", rng)
  2197. rngm.MeshType = "Sphere"
  2198. rngm.Scale = Vector3.new(0,0,10000)
  2199. local scaler2 = 1
  2200. coroutine.resume(coroutine.create(function()
  2201. for i = 0,99,0.1 do
  2202. swait()
  2203. scaler2 = scaler2 - 0.0025
  2204. rng.Transparency = rng.Transparency + 0.0025
  2205. rngm.Scale = rngm.Scale + Vector3.new(scaler2/5, scaler2/5, 0)
  2206. end
  2207. rng:Destroy()
  2208. end))
  2209. end
  2210.  
  2211. function bemaashake(pos)
  2212. local rng = Instance.new("Part", char)
  2213. rng.Anchored = true
  2214. rng.BrickColor = origcolor
  2215. rng.CanCollide = false
  2216. rng.FormFactor = 3
  2217. rng.Material = "Neon"
  2218. rng.Name = "Ring"
  2219. rng.Size = Vector3.new(1, 1, 1)
  2220. rng.Transparency = 0
  2221. rng.TopSurface = 0
  2222. rng.BottomSurface = 0
  2223. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  2224. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  2225. local rngm = Instance.new("SpecialMesh", rng)
  2226. rngm.MeshType = "Sphere"
  2227. local oof = Instance.new("Part",char)
  2228. oof.Parent = rng
  2229. oof.CFrame = rng.CFrame
  2230. oof.CanCollide = false
  2231. oof.Anchored = true
  2232. oof.Transparency = 1
  2233. rngm.Scale = Vector3.new(0,0,10000)
  2234. local scaler2 = 1*10
  2235. coroutine.resume(coroutine.create(function()
  2236. for i = 0,99,0.1 do
  2237. swait()
  2238. scaler2 = scaler2 - 0.0025*10
  2239. rng.CFrame = oof.CFrame + Vector3.new(math.random(-1,1),0,math.random(-1,1))
  2240. rng.Transparency = rng.Transparency + 0.0025
  2241. rngm.Scale = rngm.Scale + Vector3.new(scaler2/5, scaler2/5, 0)
  2242. end
  2243. rng:Destroy()
  2244. end))
  2245. end
  2246.  
  2247. function groundringlarge(pos)
  2248. local rng = Instance.new("Part", char)
  2249. rng.Anchored = true
  2250. rng.BrickColor = origcolor
  2251. rng.CanCollide = false
  2252. rng.FormFactor = 3
  2253. rng.Name = "Ring"
  2254. rng.Size = Vector3.new(1, 1, 1)
  2255. rng.Transparency = 0
  2256. rng.TopSurface = 0
  2257. rng.BottomSurface = 0
  2258. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  2259. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  2260. local rngm = Instance.new("SpecialMesh", rng)
  2261. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2262. rngm.Scale = Vector3.new(0,0,5)
  2263. local scaler2 = 10*10
  2264. coroutine.resume(coroutine.create(function()
  2265. for i = 0,10*2,0.1 do
  2266. swait()
  2267. scaler2 = scaler2 - 0.1*10/2
  2268. rng.Transparency = rng.Transparency + 0.005
  2269. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, scaler2)
  2270. end
  2271. rng:Destroy()
  2272. end))
  2273. end
  2274.  
  2275. function sphere(bonuspeed,type,pos,scale,value,color)
  2276. local type = type
  2277. local rng = Instance.new("Part", char)
  2278. rng.Anchored = true
  2279. rng.BrickColor = color
  2280. rng.CanCollide = false
  2281. rng.FormFactor = 3
  2282. rng.Name = "Ring"
  2283. rng.Material = "Neon"
  2284. rng.Size = Vector3.new(1, 1, 1)
  2285. rng.Transparency = 0
  2286. rng.TopSurface = 0
  2287. rng.BottomSurface = 0
  2288. rng.CFrame = pos
  2289. local rngm = Instance.new("SpecialMesh", rng)
  2290. rngm.MeshType = "Sphere"
  2291. rngm.Scale = scale
  2292. local scaler2 = 1
  2293. if type == "Add" then
  2294. scaler2 = 1*value
  2295. elseif type == "Divide" then
  2296. scaler2 = 1/value
  2297. end
  2298. coroutine.resume(coroutine.create(function()
  2299. for i = 0,10/bonuspeed,0.1 do
  2300. swait()
  2301. if type == "Add" then
  2302. scaler2 = scaler2 - 0.01*value/bonuspeed
  2303. elseif type == "Divide" then
  2304. scaler2 = scaler2 - 0.01/value*bonuspeed
  2305. end
  2306. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2307. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2308. end
  2309. rng:Destroy()
  2310. end))
  2311. end
  2312. Humanoid.Animator.Parent = nil
  2313.  
  2314. function AppearMutatedLimbs()
  2315. hum.WalkSpeed = 0
  2316. hum.MaxHealth = math.huge
  2317. attack = true
  2318. for i = 0,14,0.1 do
  2319. swait()
  2320. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.1)
  2321. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.1)
  2322. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(20),math.rad(0),math.rad(0)),.1)
  2323. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0 + 10 * math.cos(sine / 1))),.1)
  2324. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.1)
  2325. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-10 - 10 * math.cos(sine / 1))),.1)
  2326. end
  2327. for i = 0,8,0.1 do
  2328. swait()
  2329. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.1)
  2330. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.1)
  2331. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(20),math.rad(0),math.rad(0)),.1)
  2332. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(20)),.1)
  2333. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.1)
  2334. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(0 - 10 * math.cos(sine / 1))),.1)
  2335. end
  2336. for i = 0,2,0.1 do
  2337. swait()
  2338. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  2339. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  2340. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(80)),.4)
  2341. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  2342. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4)
  2343. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(60 - 10 * math.cos(sine / 1))),.4)
  2344. end
  2345. for i, v in pairs(MutantParts:GetChildren()) do
  2346. if v:IsA("Part") then
  2347. v.Transparency = 0
  2348. end
  2349. end
  2350. local bld = Instance.new("ParticleEmitter",larm)
  2351. bld.LightEmission = 0.1
  2352. bld.Texture = "rbxassetid://284205403"
  2353. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  2354. bld.Rate = 500
  2355. bld.Lifetime = NumberRange.new(1)
  2356. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  2357. bld.Acceleration = vt(0,-25,0)
  2358. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  2359. bld.Speed = NumberRange.new(10,25)
  2360. bld.EmissionDirection = "Bottom"
  2361. bld.VelocitySpread = 100
  2362. bld.Rotation = NumberRange.new(-500,500)
  2363. bld.RotSpeed = NumberRange.new(-500,500)
  2364. local bldef = Instance.new("ParticleEmitter",larm)
  2365. bldef.LightEmission = 0.1
  2366. bldef.Texture = "rbxassetid://284205403"
  2367. bldef.Color = ColorSequence.new(Color3.new(0.5,0,0))
  2368. bldef.Rate = 25
  2369. bldef.Lifetime = NumberRange.new(1)
  2370. bldef.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
  2371. bldef.Acceleration = vt(0,-5,0)
  2372. bldef.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  2373. bldef.Speed = NumberRange.new(0,0,0)
  2374. bldef.EmissionDirection = "Bottom"
  2375. bldef.VelocitySpread = 150
  2376. bldef.Rotation = NumberRange.new(-500,500)
  2377. bldef.RotSpeed = NumberRange.new(-500,500)
  2378. game:GetService("Debris"):AddItem(bld,3)
  2379. CFuncs["Sound"].Create("rbxassetid://429400881", larm, 2.5, 1)
  2380. CFuncs["Sound"].Create("rbxassetid://206082327", larm, 0.75, 1)
  2381. for i = 0,1,0.1 do
  2382. swait()
  2383. char["Body Colors"].LeftArmColor = BrickColor.new("Shamrock")
  2384. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8)
  2385. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8)
  2386. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-60)),.8)
  2387. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(60)),.8)
  2388. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  2389. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-60 - 10 * math.cos(sine / 1))),.8)
  2390. end
  2391. bld.Enabled = false
  2392. attack = false
  2393. hum.WalkSpeed = 6
  2394. end
  2395.  
  2396. function AppearMutatedLimbs2()
  2397. hum.WalkSpeed = 0
  2398. attack = true
  2399. LeftModeUnlocked = true
  2400. for i = 0,8,0.1 do
  2401. swait()
  2402. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.1)
  2403. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.1)
  2404. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(20),math.rad(0),math.rad(0)),.1)
  2405. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-20)),.1)
  2406. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 - 10 * math.cos(sine / 1)),math.rad(90 + 10 * math.cos(sine / 1))),.1)
  2407. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(0 - 10 * math.cos(sine / 1))),.1)
  2408. end
  2409. for i = 0,2,0.1 do
  2410. swait()
  2411. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  2412. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  2413. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-90)),.4)
  2414. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  2415. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 - 10 * math.cos(sine / 1)),math.rad(20 + 10 * math.cos(sine / 1))),.4)
  2416. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(0 - 10 * math.cos(sine / 1))),.4)
  2417. end
  2418. for i, v in pairs(MutantParts2:GetChildren()) do
  2419. if v:IsA("Part") then
  2420. v.Transparency = 0
  2421. end
  2422. end
  2423. local bld = Instance.new("ParticleEmitter",rarm)
  2424. bld.LightEmission = 0.1
  2425. bld.Texture = "rbxassetid://284205403"
  2426. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  2427. bld.Rate = 500
  2428. bld.Lifetime = NumberRange.new(1)
  2429. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  2430. bld.Acceleration = vt(0,-25,0)
  2431. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  2432. bld.Speed = NumberRange.new(10,25)
  2433. bld.EmissionDirection = "Bottom"
  2434. bld.VelocitySpread = 100
  2435. bld.Rotation = NumberRange.new(-500,500)
  2436. bld.RotSpeed = NumberRange.new(-500,500)
  2437. local bldef = Instance.new("ParticleEmitter",rarm)
  2438. bldef.LightEmission = 0.1
  2439. bldef.Texture = "rbxassetid://284205403"
  2440. bldef.Color = ColorSequence.new(Color3.new(0.5,0,0))
  2441. bldef.Rate = 25
  2442. bldef.Lifetime = NumberRange.new(1)
  2443. bldef.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
  2444. bldef.Acceleration = vt(0,-5,0)
  2445. bldef.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  2446. bldef.Speed = NumberRange.new(0,0,0)
  2447. bldef.EmissionDirection = "Bottom"
  2448. bldef.VelocitySpread = 150
  2449. bldef.Rotation = NumberRange.new(-500,500)
  2450. bldef.RotSpeed = NumberRange.new(-500,500)
  2451. game:GetService("Debris"):AddItem(bld,3)
  2452. CFuncs["Sound"].Create("rbxassetid://429400881", rarm, 2.5, 1)
  2453. CFuncs["Sound"].Create("rbxassetid://206082327", rarm, 0.75, 1)
  2454. for i = 0,1,0.1 do
  2455. swait()
  2456. char["Body Colors"].RightArmColor = BrickColor.new("Bright yellow")
  2457. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.8)
  2458. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.8)
  2459. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(20),math.rad(0),math.rad(0)),.8)
  2460. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-20)),.8)
  2461. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 - 10 * math.cos(sine / 1)),math.rad(90 + 10 * math.cos(sine / 1))),.8)
  2462. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(0 - 10 * math.cos(sine / 1))),.8)
  2463. end
  2464. bld.Enabled = false
  2465. attack = false
  2466. hum.WalkSpeed = 6
  2467. end
  2468. function TargetSelect(person)
  2469. local dd=coroutine.wrap(function()
  2470. if targetted ~= person then
  2471. targetted = person
  2472. img2.Size = UDim2.new(1,0,1,0)
  2473. img2.ImageTransparency = 0
  2474. img2.Position = UDim2.new(0,0,0,0)
  2475. img2.ImageColor3 = Color3.new(0,0,0)
  2476. print(targetted)
  2477. for i = 0, 2, 0.1 do
  2478. swait()
  2479. img2.Size = img2.Size + UDim2.new(.05,0,.05,0)
  2480. img2.Position = img2.Position + UDim2.new(-.025,0,-.025,0)
  2481. img2.ImageTransparency = img2.ImageTransparency + 0.05
  2482. end
  2483. end
  2484. end)
  2485. dd()
  2486. end
  2487. ANTIKILLZ = "zombieslayerwtf"
  2488. function FindNearestTorso(Position, Distance, SinglePlayer)
  2489. if SinglePlayer then
  2490. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  2491. end
  2492. local List = {}
  2493. for i, v in pairs(workspace:GetChildren()) do
  2494. if v:IsA("Model") then
  2495. if v:findFirstChild("Torso") then
  2496. if v ~= Character then
  2497. if (v.Torso.Position - Position).magnitude <= Distance then
  2498. table.insert(List, v)
  2499. end
  2500. end
  2501. end
  2502. end
  2503. end
  2504. return List
  2505. end
  2506.  
  2507. function LockOn()
  2508. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2509. TargetSelect(Mouse.Target.Parent)
  2510. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=743521450", Character, 1, 0.5)
  2511. elseif Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") == nil then
  2512. TargetSelect(Mouse.Target.Parent)
  2513. if Mouse.Target.Parent == workspace or Mouse.Target.Parent:IsA("Accessory") then
  2514. targetted = nil
  2515. end
  2516. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=743521450", Character, 1, 0.5)
  2517. end
  2518. end
  2519. function dmg(dude)
  2520. if dude.Name ~= ANTIKILLZ then
  2521. local bgf = Instance.new("BodyGyro",dude.Head)
  2522. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  2523. local val = Instance.new("BoolValue",dude)
  2524. val.Name = "IsHit"
  2525. local ds = coroutine.wrap(function()
  2526. if dude.Name ~= ANTIKILLZ then
  2527. killcount = killcount + 1
  2528. dude:WaitForChild("Torso"):BreakJoints()
  2529. wait(0.5)
  2530. targetted = nil
  2531. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.5, 0.3)
  2532. coroutine.resume(coroutine.create(function()
  2533. for i, v in pairs(dude:GetChildren()) do
  2534. if v:IsA("Accessory") then
  2535. v:Destroy()
  2536. end
  2537. if v:IsA("Humanoid") then
  2538. v:Destroy()
  2539. end
  2540. if v:IsA("CharacterMesh") then
  2541. v:Destroy()
  2542. end
  2543. if v:IsA("Model") then
  2544. v:Destroy()
  2545. end
  2546. if v:IsA("Part") then
  2547. for x, o in pairs(v:GetChildren()) do
  2548. if o:IsA("Decal") then
  2549. o:Destroy()
  2550. end
  2551. end
  2552. coroutine.resume(coroutine.create(function()
  2553. v.Material = "Neon"
  2554. v.CanCollide = false
  2555. local bld = Instance.new("ParticleEmitter",v)
  2556. bld.LightEmission = 1
  2557. bld.Texture = "rbxassetid://284205403"
  2558. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  2559. bld.Rate = 50
  2560. bld.Lifetime = NumberRange.new(1)
  2561. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,0,0)})
  2562. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  2563. bld.Speed = NumberRange.new(0,0,0)
  2564. bld.Rotation = NumberRange.new(-500,500)
  2565. bld.RotSpeed = NumberRange.new(-500,500)
  2566. local sbs = Instance.new("BodyPosition", v)
  2567. sbs.P = 3000
  2568. sbs.D = 1000
  2569. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  2570. sbs.position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  2571. v.Color = Color3.new(0,0,0)
  2572. end))
  2573. coroutine.resume(coroutine.create(function()
  2574. for i = 0, 49 do
  2575. swait(1)
  2576. v.Transparency = v.Transparency + 0.02
  2577. end
  2578. v:Destroy()
  2579. dude:Destroy()
  2580. end))
  2581. end
  2582. end
  2583. end))
  2584. else
  2585. bgf:Destroy()
  2586. sphere(1,"Add",dude:WaitForChild("Torso").CFrame,vt(10,10,10),-0.005,BrickColor.new("Really red"))
  2587. end
  2588. end)
  2589. ds()
  2590. end
  2591. end
  2592.  
  2593.  
  2594. local Grabbed = false
  2595.  
  2596. function QuickStab()
  2597. attack = true
  2598. hum.WalkSpeed = 0
  2599. swait(1)
  2600. CFuncs["Sound"].Create("rbxassetid://743521656", char, 1, 0.8)
  2601. RootPart.CFrame = targetted.Torso.CFrame * CFrame.new(0,0,3)
  2602. if targetted.Name ~= ANTIKILLZ then
  2603. local grab = nil
  2604. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 5)) do
  2605. if v:FindFirstChild('Head') then
  2606. Grabbed = true
  2607. grab = v
  2608. end
  2609. end
  2610. if Grabbed == true then
  2611. for i = 0,2,0.1 do
  2612. swait()
  2613. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  2614. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  2615. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(80)),.4)
  2616. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  2617. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4)
  2618. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(60 - 10 * math.cos(sine / 1))),.4)
  2619. end
  2620. dmg(grab)
  2621. local bld = Instance.new("ParticleEmitter",targetted:WaitForChild("Torso"))
  2622. bld.LightEmission = 0.1
  2623. bld.Texture = "rbxassetid://284205403"
  2624. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  2625. bld.Rate = 500
  2626. bld.Lifetime = NumberRange.new(1)
  2627. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  2628. bld.Acceleration = vt(0,-25,0)
  2629. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  2630. bld.Speed = NumberRange.new(10,50)
  2631. bld.EmissionDirection = "Front"
  2632. bld.VelocitySpread = 25
  2633. bld.Rotation = NumberRange.new(-500,500)
  2634. bld.RotSpeed = NumberRange.new(-500,500)
  2635. game:GetService("Debris"):AddItem(bld,3)
  2636. CFuncs["Sound"].Create("rbxassetid://206082327", targetted.Torso, 2.5, 0.9)
  2637. for i = 0,1,0.1 do
  2638. swait()
  2639. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8)
  2640. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8)
  2641. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
  2642. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  2643. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  2644. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-80 - 10 * math.cos(sine / 1))),.8)
  2645. end
  2646. bld.Enabled = false
  2647. end
  2648. else
  2649. for i = 0,8,0.1 do
  2650. swait()
  2651. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  2652. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  2653. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(60)),.4)
  2654. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.8)
  2655. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4)
  2656. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 5 * math.cos(sine / 1)),math.rad(60 - 5 * math.cos(sine / 1))),.4)
  2657. end
  2658. local randomized = math.random(1,3)
  2659. if randomized == 1 then
  2660. chatfunc("No... i cant.",Color3.new(0.5,0,0))
  2661. elseif randomized == 2 then
  2662. chatfunc("Why would i do this...",Color3.new(0.5,0,0))
  2663. elseif randomized == 3 then
  2664. chatfunc("Oh... i thought you're my enemy...",Color3.new(0.5,0,0))
  2665. end
  2666. for i = 0,3,0.1 do
  2667. swait()
  2668. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  2669. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  2670. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
  2671. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(90)),.8)
  2672. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4)
  2673. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-60 - 10 * math.cos(sine / 1))),.4)
  2674. end
  2675. end
  2676. Grabbed = false
  2677. attack = false
  2678. hum.WalkSpeed = 6
  2679. end
  2680.  
  2681.  
  2682. function BlinkingStab()
  2683. attack = true
  2684. hum.WalkSpeed = 0
  2685. swait(1)
  2686. if targetted.Name ~= ANTIKILLZ then
  2687. for i = 0,2,0.1 do
  2688. swait()
  2689. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  2690. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  2691. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(10),math.rad(0),math.rad(80)),.4)
  2692. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
  2693. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
  2694. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-80 - 10 * math.cos(sine / 1))),.4)
  2695. end
  2696. RootPart.CFrame = targetted.Torso.CFrame * CFrame.new(0,0,2)
  2697. CFuncs["Sound"].Create("rbxassetid://743521497", char, 1, 1)
  2698. dmg(targetted)
  2699. local bld = Instance.new("ParticleEmitter",targetted:WaitForChild("Torso"))
  2700. bld.LightEmission = 0.1
  2701. bld.Texture = "rbxassetid://284205403"
  2702. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  2703. bld.Rate = 500
  2704. bld.Lifetime = NumberRange.new(1)
  2705. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  2706. bld.Acceleration = vt(0,-25,0)
  2707. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  2708. bld.Speed = NumberRange.new(10,50)
  2709. bld.EmissionDirection = "Front"
  2710. bld.VelocitySpread = 25
  2711. bld.Rotation = NumberRange.new(-500,500)
  2712. bld.RotSpeed = NumberRange.new(-500,500)
  2713. game:GetService("Debris"):AddItem(bld,3)
  2714. CFuncs["Sound"].Create("rbxassetid://429400881", targetted.Torso, 1,1)
  2715. for i = 0,1,0.1 do
  2716. swait()
  2717. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8)
  2718. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8)
  2719. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
  2720. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  2721. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  2722. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-80 - 10 * math.cos(sine / 1))),.8)
  2723. end
  2724. bld.Enabled = false
  2725. else
  2726. for i = 0,8,0.1 do
  2727. swait()
  2728. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  2729. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  2730. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(10),math.rad(0),math.rad(80)),.4)
  2731. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
  2732. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
  2733. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-80 - 10 * math.cos(sine / 1))),.4)
  2734. end
  2735. local randomized = math.random(1,3)
  2736. if randomized == 1 then
  2737. chatfunc("Wait.. a minute... wrong guy...",Color3.new(0.5,0,0))
  2738. elseif randomized == 2 then
  2739. chatfunc("I forgot about you...",Color3.new(0.5,0,0))
  2740. elseif randomized == 3 then
  2741. chatfunc("Oh. sorry...",Color3.new(0.5,0,0))
  2742. end
  2743. for i = 0,3,0.1 do
  2744. swait()
  2745. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  2746. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  2747. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
  2748. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(90)),.8)
  2749. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4)
  2750. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-60 - 10 * math.cos(sine / 1))),.4)
  2751. end
  2752. end
  2753. attack = false
  2754. hum.WalkSpeed = 6
  2755. end
  2756.  
  2757.  
  2758. function Tele()
  2759. sphere(3,"Add",root.CFrame,vt(10,10,10),-0.1,BrickColor.new("White"))
  2760. sphere(10,"Add",root.CFrame,vt(10,10,10),0.1,BrickColor.new("White"))
  2761. CFuncs["Sound"].Create("rbxassetid://743521656", char, 1, 0.8)
  2762. RootPart.CFrame = targetted.Torso.CFrame * CFrame.new(0,0,3)
  2763. sphere(3,"Add",root.CFrame,vt(10,10,10),-0.1,BrickColor.new("White"))
  2764. sphere(10,"Add",root.CFrame,vt(10,10,10),0.1,BrickColor.new("White"))
  2765. end
  2766.  
  2767. function uhhnolikeokthen()
  2768. hum.WalkSpeed = 0
  2769. attack = true
  2770. CFuncs["Sound"].Create("rbxassetid://163315655", root, 1,1)
  2771. for i = 0,10,0.1 do
  2772. swait()
  2773. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
  2774. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
  2775. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.1)
  2776. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 15 * math.cos(sine / 1))),.1)
  2777. RW.C0=clerp(RW.C0,cf(1.05,0.4 + 0.1 * math.cos(sine / 28),-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.1)
  2778. LW.C0=clerp(LW.C0,cf(-1.05,0.4 + 0.1 * math.cos(sine / 28),-0.5)*angles(math.rad(140),math.rad(0 + 5 * math.cos(sine / 1)),math.rad(50 - 5 * math.cos(sine / 1))),.1)
  2779. end
  2780. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("White"))
  2781. sphere(6,"Add",root.CFrame,vt(0,0,0),0.5,BrickColor.new("White"))
  2782. sphere(9,"Add",root.CFrame,vt(0,0,0),0.75,BrickColor.new("White"))
  2783. CFuncs["Sound"].Create("rbxassetid://1213175909", root, 3,1)
  2784. CFuncs["Sound"].Create("rbxassetid://239000203", root, 2,1)
  2785. CFuncs["Sound"].Create("rbxassetid://579687077", root, 2,0.9)
  2786. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 25)) do
  2787. if v:FindFirstChild('Torso') then
  2788. dmg(v)
  2789. CFuncs["Sound"].Create("rbxassetid://206082327", v.Torso, 1, 0.9)
  2790. local bld = Instance.new("ParticleEmitter",v.Torso)
  2791. bld.LightEmission = 0.1
  2792. bld.Texture = "rbxassetid://284205403"
  2793. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  2794. bld.Rate = 500
  2795. bld.Lifetime = NumberRange.new(1)
  2796. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  2797. bld.Acceleration = vt(0,-25,0)
  2798. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  2799. bld.Speed = NumberRange.new(10,50)
  2800. bld.EmissionDirection = "Front"
  2801. bld.VelocitySpread = 2500
  2802. bld.Rotation = NumberRange.new(-500,500)
  2803. bld.RotSpeed = NumberRange.new(-500,500)
  2804. coroutine.resume(coroutine.create(function()
  2805. swait(4)
  2806. bld.Enabled = false
  2807. game:GetService("Debris"):AddItem(bld,3)
  2808. end))
  2809. end
  2810. end
  2811. for i = 0,28,0.1 do
  2812. swait()
  2813. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.5)
  2814. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.5)
  2815. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  2816. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 1))),.5)
  2817. RW.C0=clerp(RW.C0,cf(1.45,0.4 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-20),math.rad(0 - 3 * math.cos(sine / 1)),math.rad(80 + 3 * math.cos(sine / 1))),.5)
  2818. LW.C0=clerp(LW.C0,cf(-1.45,0.4 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-20),math.rad(0 + 3 * math.cos(sine / 1)),math.rad(-80 - 3 * math.cos(sine / 1))),.5)
  2819. end
  2820. attack = false
  2821. hum.WalkSpeed = 6
  2822. end
  2823.  
  2824. function deadworld()
  2825. hum.WalkSpeed = 0
  2826. attack = false
  2827. chatfunc("You... you will regret this!",Color3.new(0.5,0,0))
  2828. for i = 0,10,0.1 do
  2829. swait()
  2830. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
  2831. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
  2832. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.1)
  2833. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 15 * math.cos(sine / 1))),.1)
  2834. RW.C0=clerp(RW.C0,cf(1.05,0.4 + 0.1 * math.cos(sine / 28),-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.1)
  2835. LW.C0=clerp(LW.C0,cf(-1.05,0.4 + 0.1 * math.cos(sine / 28),-0.5)*angles(math.rad(140),math.rad(0 + 5 * math.cos(sine / 1)),math.rad(50 - 5 * math.cos(sine / 1))),.1)
  2836. end
  2837. coroutine.resume(coroutine.create(function()
  2838. CFuncs["Sound"].Create("rbxassetid://1213175909", char, 1,1)
  2839. sphere(3,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
  2840. sphere(6,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
  2841. sphere(9,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
  2842. coroutine.resume(coroutine.create(function()
  2843. for i = 0, 9 do
  2844. swait(3)
  2845. sphere(1,"Add",root.CFrame*CFrame.new(math.random(-75,75),math.random(-75,75),math.random(-75,75)),vt(0,0,0),2,BrickColor.new("Really red"))
  2846. end
  2847. end))
  2848. CFuncs["Sound"].Create("rbxassetid://579687077", char, 5,1)
  2849. CFuncs["Sound"].Create("rbxassetid://239000203", char, 1,1)
  2850. local blastpitch = 1
  2851. for i = 0,2 do
  2852. wait(1.5)
  2853. sphere(3,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
  2854. sphere(6,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
  2855. sphere(9,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
  2856. coroutine.resume(coroutine.create(function()
  2857. for i = 0, 9 do
  2858. swait(3)
  2859. sphere(1,"Add",root.CFrame*CFrame.new(math.random(-75,75),math.random(-75,75),math.random(-75,75)),vt(0,0,0),2,BrickColor.new("Really red"))
  2860. end
  2861. end))
  2862. blastpitch = blastpitch - 0.15
  2863. CFuncs["Sound"].Create("rbxassetid://579687077", char, 1,blastpitch)
  2864. end
  2865. wait(2)
  2866. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 250000000)) do
  2867. if v:FindFirstChild('Torso') then
  2868. dmg(v)
  2869. end
  2870. end
  2871. tors:Destroy()
  2872. CFuncs["Sound"].Create("rbxassetid://239000203", char, 2,0.75)
  2873. CFuncs["Sound"].Create("rbxassetid://579687077", char, 2,0.5)
  2874. sphere(1,"Add",root.CFrame,vt(0,0,0),9,BrickColor.new("Crimson"))
  2875. sphere(2,"Add",root.CFrame,vt(0,0,0),9,BrickColor.new("Crimson"))
  2876. sphere(3,"Add",root.CFrame,vt(0,0,0),9,BrickColor.new("Crimson"))
  2877. coroutine.resume(coroutine.create(function()
  2878. for i = 0, 49 do
  2879. swait(3)
  2880. sphere(1,"Add",root.CFrame*CFrame.new(math.random(-175,175),math.random(-175,175),math.random(-175,175)),vt(0,0,0),2,BrickColor.new("Really red"))
  2881. sphere(1,"Add",root.CFrame*CFrame.new(math.random(-375,375),math.random(-375,375),math.random(-375,375)),vt(0,0,0),8,BrickColor.new("Really red"))
  2882. end
  2883. end))
  2884. end))
  2885. for i = 0,280,0.1 do
  2886. swait()
  2887. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.5)
  2888. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.5)
  2889. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  2890. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 1))),.5)
  2891. RW.C0=clerp(RW.C0,cf(1.45,0.4 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-20),math.rad(0 - 3 * math.cos(sine / 1)),math.rad(80 + 3 * math.cos(sine / 1))),.5)
  2892. LW.C0=clerp(LW.C0,cf(-1.45,0.4 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-20),math.rad(0 + 3 * math.cos(sine / 1)),math.rad(-80 - 3 * math.cos(sine / 1))),.5)
  2893. end
  2894. attack = false
  2895. hum.WalkSpeed = 6
  2896. end
  2897. coroutine.resume(coroutine.create(function()
  2898. AppearMutatedLimbs()
  2899. end))
  2900.  
  2901. mouse.Button1Down:connect(function()
  2902. if attack == false and targetted ~= nil then
  2903. BlinkingStab()
  2904. end
  2905. end)
  2906.  
  2907. mouse.KeyDown:connect(function(k)
  2908. if k == "q" and attack == false then
  2909. LockOn()
  2910. end
  2911. if k == "e" and attack == false and targetted ~= nil then
  2912. Tele()
  2913. end
  2914. if k == "z" and attack == false and targetted ~= nil then
  2915. QuickStab()
  2916. end
  2917. if k == "x" and attack == false then
  2918. uhhnolikeokthen()
  2919. end
  2920. if k == "r" and attack == false and unlockedA == true and LeftModeUnlocked == false then
  2921. AppearMutatedLimbs2()
  2922. end
  2923. if k == "f" and attack == false and unlockedX == true then
  2924. deadworld()
  2925. end
  2926. if k == "c" and attack == false then
  2927. attack = true
  2928. chatfunc("HAH",Color3.new(0.5,0,0))
  2929. CFuncs["Sound"].Create("rbxassetid://695281161", root, 5,1.4)
  2930. for i = 0, 1, 0.1 do
  2931. swait()
  2932. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.9)
  2933. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.9)
  2934. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.5,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.9)
  2935. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-40),math.rad(0),math.rad(0 + 10 * math.cos(sine / 1))),.9)
  2936. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-80),math.rad(0),math.rad(10)),.9)
  2937. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-80),math.rad(0),math.rad(-10)),.9)
  2938. end
  2939. attack = false
  2940. end
  2941. end)
  2942. idleanim=.4
  2943. while true do
  2944. swait()
  2945. imgl.Rotation = imgl.Rotation + 3
  2946. imgl2.Rotation = imgl2.Rotation - 3
  2947. img2.Rotation = img2.Rotation - 3
  2948. if targetted ~= nil then
  2949. abss.Adornee = targetted:FindFirstChild("head") or targetted:FindFirstChild("UpperTorso")
  2950. abss.Enabled = true
  2951. elseif targetted == nil then
  2952. abss.Adornee = nil
  2953. abss.Enabled = false
  2954. end
  2955. while true and imgl.Rotation >= 360 do
  2956. imgl.Rotation = 0
  2957. imgl2.Rotation = 0
  2958. img2.Rotation = 0
  2959. end
  2960. uhh.Rotation = math.random(-1,1)
  2961. uhh.Position = UDim2.new(-0.15, 0, 0.35, 0) + UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  2962. uhh.Text = "Kills : " ..killcount
  2963. if killcount < maxA then
  2964. uhh2.Text = "Required kills for second mutated arm: " ..requirekillA-killcount
  2965. elseif killcount >= maxA then
  2966. unlockedA = true
  2967. uhh2.Text = "Second mutated arm unlocked. (R)"
  2968. end
  2969. if killcount < maxX then
  2970. uhh3.Text = "Required kills for the end: " ..requirekillX-killcount
  2971. elseif killcount >= maxX then
  2972. unlockedX = true
  2973. uhh3.Text = "The end unlocked. (F to activate)"
  2974. end
  2975. sine = sine + change
  2976. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2977. local velderp=RootPart.Velocity.y
  2978. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2979. if equipped==true or equipped==false then
  2980. if attack==false then
  2981. idle=idle+1
  2982. else
  2983. idle=0
  2984. end
  2985. if idle>=500 then
  2986. if attack==false then
  2987. --Sheath()
  2988. end
  2989. end
  2990. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2991. Anim="Jump"
  2992. if attack==false then
  2993. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  2994. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  2995. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  2996. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  2997. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1)
  2998. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1)
  2999. end
  3000. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  3001. Anim="Fall"
  3002. if attack==false then
  3003. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  3004. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  3005. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3006. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3007. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(50)),.1)
  3008. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(-50)),.1)
  3009. end
  3010. elseif torvel<1 and hitfloor~=nil then
  3011. Anim="Idle"
  3012. if attack==false then
  3013. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.1)
  3014. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.1)
  3015. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(20),math.rad(0),math.rad(0)),.1)
  3016. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0 - 10 * math.cos(sine / 1))),.1)
  3017. if LeftModeUnlocked == false then
  3018. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.1)
  3019. else
  3020. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20 - 10 * math.cos(sine / 1)),math.rad(0),math.rad(10 + 10 * math.cos(sine / 1))),.1)
  3021. end
  3022. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-10 - 10 * math.cos(sine / 1))),.1)
  3023. end
  3024. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  3025. Anim="Walk"
  3026. if attack==false then
  3027. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10 + 40 * math.cos(sine / 18))),.1)
  3028. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10 + 40 * math.cos(sine / 18))),.1)
  3029. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(10),math.rad(0),math.rad(0)),.1)
  3030. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0 + 10 * math.cos(sine / 1))),.1)
  3031. if LeftModeUnlocked == false then
  3032. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20 - 40 * math.cos(sine / 18)),math.rad(0),math.rad(10)),.1)
  3033. else
  3034. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20 - 10 * math.cos(sine / 1)),math.rad(0),math.rad(10 + 10 * math.cos(sine / 1))),.1)
  3035. end
  3036. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-10 - 10 * math.cos(sine / 1))),.1)
  3037. end
  3038. elseif torvel>=22 and hitfloor~=nil then
  3039. Anim="Run"
  3040. if attack==false then
  3041. RH.C0=clerp(RH.C0,cf(1,-0.75 - 0.25 * math.cos(sine / 3),-0.25 - 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
  3042. LH.C0=clerp(LH.C0,cf(-1,-0.75 + 0.25 * math.cos(sine / 3),-0.25 + 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
  3043. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.125 + 0.125 * math.cos(sine / 3))*angles(math.rad(20),math.rad(0),math.rad(0 - 15 * math.cos(sine / 6))),.1)
  3044. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 15 * math.cos(sine / 6))),.1)
  3045. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 125 * math.cos(sine / 6)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 3))),.1)
  3046. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 125 * math.cos(sine / 6)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 3))),.1)
  3047. end
  3048. end
  3049. end
  3050. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement