Advertisement
ItzPartapika

mutant

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