Advertisement
Guest User

765875876578

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