Advertisement
Oscar55555

Untitled

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