Advertisement
zed_isJayTheLionJR

Uniited for a reason keep on scrolling

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