Advertisement
Josemmoya

...

Feb 23rd, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 71.79 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility by WaverlyCole & Fireboltofdeath");print("https://github.com/WaverlyCole/FE-Compatibility-VoidSb-")
  2. local Wrapper = {};Wrapper.Fake = {};Wrapper.Real = {};Wrapper.Data = {};
  3. local sGame = game;local sScript = script;local sOwner = owner;local sInstance = Instance;local sLoadLibrary = LoadLibrary
  4. Wrapper.Event = Instance.new("RemoteEvent");Wrapper.Event.Name = "UserInput";
  5. Wrapper.CreateObject = function(connections, index)
  6. local proxy = newproxy (true);local meta = getmetatable (proxy);
  7. local runbind = function (self, i, ...) connections[i]:Fire (...); end;
  8. while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end;
  9. meta.__index = function (self, i)
  10. if (i == 'TriggerEvent') then return runbind end;
  11. return connections[i] and connections[i].Event or index[i];
  12. end;
  13. meta.__newindex = index;meta.__metatable = false;return proxy
  14. end;
  15. Wrapper.Mouse = Wrapper.CreateObject({"KeyUp","KeyDown","Button1Down","Button1Up","Move","Button2Down","Button2Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
  16. Wrapper.UserInputService = Wrapper.CreateObject({"InputBegan","InputEnded"},{})
  17. Wrapper.ContextActionService = {Actions={};BindAction = function(self,actionName,Func,touch,...)self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil end;UnBindAction = function(self,actionName,Func,touch,...)self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil end};
  18. Wrapper.Sandbox = function(...)
  19. local Unwrap = {...};
  20. for obi = 1,#Unwrap do
  21. local Object = Unwrap[obi];
  22. if (Wrapper.Fake[Object] == nil and Wrapper.Real[Object] == nil) then
  23. local Type = typeof(Object);local Replacement = Object;
  24. if (Type == "function") then
  25. Replacement = function(...)
  26. local IsRoblox = not (pcall(function() string.dump(Object) end))
  27. if IsRoblox then
  28. return Object(Wrapper.Unsandbox(...))
  29. end
  30. return Object(Wrapper.Sandbox(...))
  31. end
  32. elseif (Type == "table") then
  33. Replacement = {};
  34. setmetatable(Replacement, {
  35. __index = function(self, i)
  36. return Wrapper.Sandbox(Object[Wrapper.Unsandbox(i)])
  37. end,
  38. __newindex = function(self,i,v)
  39. Object[Wrapper.Unsandbox(i)] = Wrapper.Unsandbox(v)
  40. end;
  41. })
  42. elseif (Type == "Instance") then
  43. Replacement = newproxy(true);
  44. local Mt = getmetatable(Replacement);
  45. Mt.__namecall = function(self, ...)
  46. local Pack = {...};local Name = Pack[#Pack];table.remove(Pack, #Pack);
  47. local Rest = nil;pcall(function()Rest = Object[Name];end);
  48. for g, x in pairs (Wrapper.InstanceMT["GET"]) do
  49. if (Object:IsA(g) or g == "Global") then
  50. for t, v in pairs(x) do
  51. for str in string.gmatch(t .. ",", "(%w+),") do
  52. if (Name == str) then
  53. if typeof(v) == "function" then
  54. return Wrapper.Sandbox(v(Wrapper.Unsandbox(self), Wrapper.Unsandbox(unpack(Pack))))
  55. else
  56. return v;
  57. end
  58. end
  59. end
  60. end
  61. end
  62. end
  63. if (Rest == nil) then
  64. if Wrapper.Sandbox(sGame):GetService(unpack(Pack)) then return Wrapper.Sandbox(sGame):GetService(unpack(Pack))end;
  65. return Wrapper.Sandbox(Object[Name]);
  66. elseif (typeof(Rest) == "function") then
  67. return Wrapper.Sandbox(Rest(Wrapper.Unsandbox(self), Wrapper.Unsandbox(unpack(Pack))))
  68. end
  69. return Wrapper.Sandbox(Object[Name]);
  70. end
  71. Mt.__index = function(self, i)
  72. local Rest = nil;pcall(function()Rest = Object[i];end)
  73. for g, x in pairs (Wrapper.InstanceMT["GET"]) do
  74. if (Object:IsA(g) or g == "Global") then
  75. for t, v in pairs(x) do
  76. for str in string.gmatch(t .. ",", "(%w+),") do
  77. if (i == str) then
  78. if typeof(v) == "function" then
  79. return function(...)return Wrapper.Sandbox(v(Wrapper.Unsandbox(self), Wrapper.Unsandbox(...)))end;
  80. else
  81. return v;
  82. end
  83. end
  84. end
  85. end
  86. end
  87. end
  88. if (Object:IsA("Sound") and i == "PlaybackLoudness") then return Wrapper.SoundLoudness[Wrapper.Unsandbox(Object)];end;
  89. if (Rest == nil) then
  90. if Wrapper.Sandbox(sGame):GetService(i) then return Wrapper.Sandbox(sGame):GetService(i)end;
  91. return Wrapper.Sandbox(Object[i]);
  92. elseif (typeof(Rest) == "function") then
  93. local isService,Service = pcall(function() return sGame:GetService(i) end)
  94. if isService and Service then return Wrapper.Sandbox(Service) end
  95. return function(self, ...)
  96. return Wrapper.Sandbox(Rest(Wrapper.Unsandbox(self), Wrapper.Unsandbox(...)))
  97. end
  98. end
  99. return Wrapper.Sandbox(Object[i]);
  100. end
  101. Mt.__newindex = function(self, i, v)
  102. for g,x in pairs (Wrapper.InstanceMT["SET"]) do
  103. if (Object:IsA(g)) then
  104. for t, v in pairs(x) do
  105. for str in string.gmatch( t .. ",", "(%w+),") do
  106. if v(Wrapper.Unsandbox(self, i, v)) == true then
  107. Object[Wrapper.Unsandbox(i)] = Wrapper.Unsandbox(v);return
  108. end
  109. end
  110. end
  111. end
  112. end
  113. Object[Wrapper.Unsandbox(i)] = Wrapper.Unsandbox(v);
  114. end
  115. Mt.__tostring = function(self) return tostring(Object) end
  116. --elseif (Type == "") then -- Etc
  117. end
  118. Wrapper.Fake[Object] = Replacement;Wrapper.Real[Replacement] = Object;Unwrap[obi] = Replacement;
  119. else
  120. return Wrapper.Fake[Object] or Object;
  121. end
  122. end
  123. return unpack(Unwrap);
  124. end
  125. Wrapper.Unsandbox = function(...)
  126. local Unsandbox = {...};
  127. for i,v in pairs (Unsandbox) do Unsandbox[i] = Wrapper.Real[v] or Unsandbox[i]end;
  128. return unpack(Unsandbox)
  129. end
  130. Wrapper.Services = {
  131. ['contextactionservice'] = Wrapper.ContextActionService;
  132. ["userinputservice"] = Wrapper.UserInputService;
  133. }
  134. Wrapper.InstanceMT = {
  135. ["GET"] = {
  136. ["Global"] = {
  137. ["IsFake,isFake"] = function(self)return true;end;
  138. };
  139. ["Player"] = {
  140. ["mouse,Mouse,getMouse,GetMouse"] = function(self)return Wrapper.Mouse;end;
  141. };
  142. ["Players"] = {
  143. ["localPlayer,LocalPlayer"] = Wrapper.Sandbox(owner)
  144. };
  145. ["DataModel"] = {
  146. ["getService,GetService"] = function(self,service)
  147. if Wrapper.Services[service:lower()] then return Wrapper.Sandbox(Wrapper.Services[service:lower()])end;
  148. return Wrapper.Sandbox(sGame:GetService(service))
  149. end
  150. };
  151. ["RunService"] = {
  152. ["renderstepped,renderStepped,RenderStepped"] = sGame:GetService("RunService").Stepped;
  153. }
  154. };
  155. ["SET"] = {
  156. }
  157. }
  158. Wrapper.SoundLoudness = {};
  159. Wrapper.Event.OnServerEvent:Connect(function(FiredBy,Input)
  160. if FiredBy ~= sOwner then return end
  161. if Input.MouseEvent then
  162. Wrapper.Mouse.Target = Input.Target;Wrapper.Mouse.Hit = Input.Hit;Wrapper.Mouse:TriggerEvent("Move")
  163. elseif Input.Sound then
  164. if Wrapper.SoundLoudness[Input.Sound] then Wrapper.SoundLoudness[Input.Sound] = Input.Loudness end
  165. else
  166. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  167. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Wrapper.Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end
  168. if Input.UserInputType == Enum.UserInputType.MouseButton2 then return Wrapper.Mouse:TriggerEvent(Begin and "Button2Down" or "Button2Up") end
  169. for _,Action in pairs(Wrapper.ContextActionService.Actions) do
  170. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  171. end
  172. Wrapper.Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());Wrapper.UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  173. end
  174. end);
  175. Wrapper.Event.Parent = NLS([[
  176. local Player = owner;local Sounds = {};local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse();
  177. local Input = function(Input,gameProcessedEvent)
  178. if gameProcessedEvent then return end;
  179. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  180. end
  181. Event.OnClientEvent:connect(function(Args)
  182. if Args[1] == "NewSound" and Args[2]:IsA("Sound") then table.insert(Sounds,Args[2]) end
  183. end)
  184. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  185. local Hit,Target;while wait(1/30) do
  186. for x,Sound in pairs(Sounds) do if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end; end;
  187. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  188. Hit = Mouse.Hit;Target = Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  189. end
  190. end]],sOwner.Character)
  191. Instance = {
  192. ["new"] = function(Type,Parent)
  193. local Real = sInstance.new(Type,Wrapper.Unsandbox(Parent))
  194. if Type:lower() == "sound" then
  195. if not Parent then
  196. Parent = sOwner.Character
  197. end
  198. Wrapper.SoundLoudness[Real] = 0;Wrapper.Event:FireClient(sOwner,{"NewSound",Real})
  199. end
  200. return Wrapper.Sandbox(Real)
  201. end
  202. }
  203. LoadLibrary = function(Library)
  204. if Library == "RbxUtility" then
  205. return setmetatable({},{
  206. __tostring = function() return "RbxUtility" end;
  207. __index = function(self, Index)
  208. if Index:lower() == "create" then
  209. return function(Type) return function(Data)
  210. Data = Data or {};local Inst = Instance.new(Type)
  211. for x,y in pairs(Data) do Inst[x] = y end
  212. return Inst
  213. end;end;
  214. end
  215. return sLoadLibrary(Library)[Index]
  216. end})
  217. end
  218. return sLoadLibrary(Library)
  219. end
  220. owner = Wrapper.Sandbox(owner);game = Wrapper.Sandbox(game)workspace = Wrapper.Sandbox(workspace)
  221. Game= game;Workspace = workspace;
  222.  
  223. --//Paste script below this line.
  224. -----------------------
  225. --[[ Name : Inked Monster ]]--
  226. -------------------------------------------------------
  227. --A script By makhail07
  228.  
  229. --Discord Creterisk#2958
  230.  
  231. --NOTE THIS SCRIPT WAS PURELY MADE FROM MY FUCKING IMAGINATION
  232. --IF IT HAPPENS TO LOOK LIKE ANOTHER SCRIPT
  233. --DONT CALL IT A FUCKING BOOTLEG THANK YOU AND ENJOY THE SCRIPT
  234. --YOU FUCKING SKIDS,
  235. --For Those who log/decompile this, If you sell or trade this,
  236. --and I find out who you are, i will take massive action.
  237.  
  238. -------------------------------------------------------
  239.  
  240. local FavIDs = {
  241. 340106355, --Nefl Crystals
  242. 927529620, --Dimension
  243. 876981900, --Fantasy
  244. 398987889, --Ordinary Days
  245. 1117396305, --Oh wait, it's you.
  246. 885996042, --Action Winter Journey
  247. 919231299, --Sprawling Idiot Effigy
  248. 743466274, --Good Day Sunshine
  249. 727411183, --Knife Fight
  250. 1402748531, --The Earth Is Counting On You!
  251. 595230126 --Robot Language
  252. }
  253.  
  254.  
  255.  
  256. --The reality of my life isn't real but a Universe -makhail07
  257. wait(0.2)
  258. local plr = game:service'Players'.LocalPlayer
  259. print('Local User is '..plr.Name)
  260. print('Inked Monster Loaded')
  261. print('Wat')
  262. local char = plr.Character
  263. local hum = char.Humanoid
  264. local hed = char.Head
  265. local root = char.HumanoidRootPart
  266. local rootj = root.RootJoint
  267. local tors = char.Torso
  268. local ra = char["Right Arm"]
  269. local la = char["Left Arm"]
  270. local rl = char["Right Leg"]
  271. local ll = char["Left Leg"]
  272. local neck = tors["Neck"]
  273. local mouse = plr:GetMouse()
  274. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  275. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  276. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  277. local maincolor = BrickColor.new("Institutional white")
  278. -------------------------------------------------------
  279. --Start Whitelist and Invincibility--
  280. -------------------------------------------------------
  281. ff = Instance.new("ForceField",char)
  282. ff.Visible = false
  283. hum.Name = "Base"
  284. hum.MaxHealth = 1.0E298
  285. hum.Health = 1.0E298
  286. game:GetService("RunService"):BindToRenderStep("Bbae", 0, function()
  287. if hum.Health > 0.1 and hum.Health < 1.0E298 then
  288. hum.MaxHealth = 1.0E298
  289. hum.Health = 1.0E298
  290. end
  291. end)
  292. -------------------------------------------------------
  293. --End Whitelist and Invincibility--
  294. -------------------------------------------------------
  295.  
  296. -------------------------------------------------------
  297. --Start Good Stuff--
  298. -------------------------------------------------------
  299. cam = game.Workspace.CurrentCamera
  300. CF = CFrame.new
  301. angles = CFrame.Angles
  302. attack = false
  303. Euler = CFrame.fromEulerAnglesXYZ
  304. Rad = math.rad
  305. IT = Instance.new
  306. BrickC = BrickColor.new
  307. Cos = math.cos
  308. Acos = math.acos
  309. Sin = math.sin
  310. Asin = math.asin
  311. Abs = math.abs
  312. Mrandom = math.random
  313. Floor = math.floor
  314. -------------------------------------------------------
  315. --End Good Stuff--
  316. -------------------------------------------------------
  317. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  318. RSH, LSH = nil, nil
  319. RW = Instance.new("Weld")
  320. LW = Instance.new("Weld")
  321. RH = tors["Right Hip"]
  322. LH = tors["Left Hip"]
  323. RSH = tors["Right Shoulder"]
  324. LSH = tors["Left Shoulder"]
  325. RSH.Parent = nil
  326. LSH.Parent = nil
  327. RW.Name = "RW"
  328. RW.Part0 = tors
  329. RW.C0 = CF(1.5, 0.5, 0)
  330. RW.C1 = CF(0, 0.5, 0)
  331. RW.Part1 = ra
  332. RW.Parent = tors
  333. LW.Name = "LW"
  334. LW.Part0 = tors
  335. LW.C0 = CF(-1.5, 0.5, 0)
  336. LW.C1 = CF(0, 0.5, 0)
  337. LW.Part1 = la
  338. LW.Parent = tors
  339. Effects = {}
  340. -------------------------------------------------------
  341. --Start HeartBeat--
  342. -------------------------------------------------------
  343. ArtificialHB = Instance.new("BindableEvent", script)
  344. ArtificialHB.Name = "Heartbeat"
  345. script:WaitForChild("Heartbeat")
  346.  
  347. frame = 1 / 60
  348. tf = 0
  349. allowframeloss = false
  350. tossremainder = false
  351.  
  352.  
  353. lastframe = tick()
  354. script.Heartbeat:Fire()
  355.  
  356.  
  357. game:GetService("RunService").Heartbeat:connect(function(s, p)
  358. tf = tf + s
  359. if tf >= frame then
  360. if allowframeloss then
  361. script.Heartbeat:Fire()
  362. lastframe = tick()
  363. else
  364. for i = 1, math.floor(tf / frame) do
  365. script.Heartbeat:Fire()
  366. end
  367. lastframe = tick()
  368. end
  369. if tossremainder then
  370. tf = 0
  371. else
  372. tf = tf - frame * math.floor(tf / frame)
  373. end
  374. end
  375. end)
  376. -------------------------------------------------------
  377. --End HeartBeat--
  378. -------------------------------------------------------
  379.  
  380. -------------------------------------------------------
  381. --Start Important Functions--
  382. -------------------------------------------------------
  383. function swait(num)
  384. if num == 0 or num == nil then
  385. game:service("RunService").Stepped:wait(0)
  386. else
  387. for i = 0, num do
  388. game:service("RunService").Stepped:wait(0)
  389. end
  390. end
  391. end
  392. function thread(f)
  393. coroutine.resume(coroutine.create(f))
  394. end
  395. function clerp(a, b, t)
  396. local qa = {
  397. QuaternionFromCFrame(a)
  398. }
  399. local qb = {
  400. QuaternionFromCFrame(b)
  401. }
  402. local ax, ay, az = a.x, a.y, a.z
  403. local bx, by, bz = b.x, b.y, b.z
  404. local _t = 1 - t
  405. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  406. end
  407. function QuaternionFromCFrame(cf)
  408. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  409. local trace = m00 + m11 + m22
  410. if trace > 0 then
  411. local s = math.sqrt(1 + trace)
  412. local recip = 0.5 / s
  413. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  414. else
  415. local i = 0
  416. if m00 < m11 then
  417. i = 1
  418. end
  419. if m22 > (i == 0 and m00 or m11) then
  420. i = 2
  421. end
  422. if i == 0 then
  423. local s = math.sqrt(m00 - m11 - m22 + 1)
  424. local recip = 0.5 / s
  425. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  426. elseif i == 1 then
  427. local s = math.sqrt(m11 - m22 - m00 + 1)
  428. local recip = 0.5 / s
  429. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  430. elseif i == 2 then
  431. local s = math.sqrt(m22 - m00 - m11 + 1)
  432. local recip = 0.5 / s
  433. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  434. end
  435. end
  436. end
  437. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  438. local xs, ys, zs = x + x, y + y, z + z
  439. local wx, wy, wz = w * xs, w * ys, w * zs
  440. local xx = x * xs
  441. local xy = x * ys
  442. local xz = x * zs
  443. local yy = y * ys
  444. local yz = y * zs
  445. local zz = z * zs
  446. 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))
  447. end
  448. function QuaternionSlerp(a, b, t)
  449. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  450. local startInterp, finishInterp
  451. if cosTheta >= 1.0E-4 then
  452. if 1 - cosTheta > 1.0E-4 then
  453. local theta = math.acos(cosTheta)
  454. local invSinTheta = 1 / Sin(theta)
  455. startInterp = Sin((1 - t) * theta) * invSinTheta
  456. finishInterp = Sin(t * theta) * invSinTheta
  457. else
  458. startInterp = 1 - t
  459. finishInterp = t
  460. end
  461. elseif 1 + cosTheta > 1.0E-4 then
  462. local theta = math.acos(-cosTheta)
  463. local invSinTheta = 1 / Sin(theta)
  464. startInterp = Sin((t - 1) * theta) * invSinTheta
  465. finishInterp = Sin(t * theta) * invSinTheta
  466. else
  467. startInterp = t - 1
  468. finishInterp = t
  469. end
  470. 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
  471. end
  472. function rayCast(Position, Direction, Range, Ignore)
  473. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  474. end
  475. local RbxUtility = LoadLibrary("RbxUtility")
  476. local Create = RbxUtility.Create
  477.  
  478. -------------------------------------------------------
  479. --Start Damage Function--
  480. -------------------------------------------------------
  481. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  482. if hit.Parent == nil then
  483. return
  484. end
  485. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  486. for _, v in pairs(hit.Parent:children()) do
  487. if v:IsA("Humanoid") then
  488. h = v
  489. end
  490. end
  491. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  492.  
  493. hit.Parent:FindFirstChild("Head"):BreakJoints()
  494. end
  495.  
  496. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  497. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  498. if hit.Parent.DebounceHit.Value == true then
  499. return
  500. end
  501. end
  502. if insta == true then
  503. hit.Parent:FindFirstChild("Head"):BreakJoints()
  504. end
  505. local c = Create("ObjectValue"){
  506. Name = "creator",
  507. Value = game:service("Players").LocalPlayer,
  508. Parent = h,
  509. }
  510. game:GetService("Debris"):AddItem(c, .5)
  511. if HitSound ~= nil and HitPitch ~= nil then
  512. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  513. end
  514. local Damage = math.random(minim, maxim)
  515. local blocked = false
  516. local block = hit.Parent:findFirstChild("Block")
  517. if block ~= nil then
  518. if block.className == "IntValue" then
  519. if block.Value > 0 then
  520. blocked = true
  521. block.Value = block.Value - 1
  522. print(block.Value)
  523. end
  524. end
  525. end
  526. if blocked == false then
  527. h.Health = h.Health - Damage
  528. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  529. else
  530. h.Health = h.Health - (Damage / 2)
  531. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  532. end
  533. if Type == "Knockdown" then
  534. local hum = hit.Parent.Humanoid
  535. hum.PlatformStand = true
  536. coroutine.resume(coroutine.create(function(HHumanoid)
  537. swait(1)
  538. HHumanoid.PlatformStand = false
  539. end), hum)
  540. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  541. local bodvol = Create("BodyVelocity"){
  542. velocity = angle * knockback,
  543. P = 5000,
  544. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  545. Parent = hit,
  546. }
  547. local rl = Create("BodyAngularVelocity"){
  548. P = 3000,
  549. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  550. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  551. Parent = hit,
  552. }
  553. game:GetService("Debris"):AddItem(bodvol, .5)
  554. game:GetService("Debris"):AddItem(rl, .5)
  555. elseif Type == "Normal" then
  556. local vp = Create("BodyVelocity"){
  557. P = 500,
  558. maxForce = Vector3.new(math.huge, 0, math.huge),
  559. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  560. }
  561. if knockback > 0 then
  562. vp.Parent = hit.Parent.Torso
  563. end
  564. game:GetService("Debris"):AddItem(vp, .5)
  565. elseif Type == "Up" then
  566. local bodyVelocity = Create("BodyVelocity"){
  567. velocity = Vector3.new(0, 20, 0),
  568. P = 5000,
  569. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  570. Parent = hit,
  571. }
  572. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  573. elseif Type == "DarkUp" then
  574. coroutine.resume(coroutine.create(function()
  575. for i = 0, 1, 0.1 do
  576. swait()
  577. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  578. end
  579. end))
  580. local bodyVelocity = Create("BodyVelocity"){
  581. velocity = Vector3.new(0, 20, 0),
  582. P = 5000,
  583. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  584. Parent = hit,
  585. }
  586. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  587. elseif Type == "Snare" then
  588. local bp = Create("BodyPosition"){
  589. P = 2000,
  590. D = 100,
  591. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  592. position = hit.Parent.Torso.Position,
  593. Parent = hit.Parent.Torso,
  594. }
  595. game:GetService("Debris"):AddItem(bp, 1)
  596. elseif Type == "Freeze" then
  597. local BodPos = Create("BodyPosition"){
  598. P = 50000,
  599. D = 1000,
  600. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  601. position = hit.Parent.Torso.Position,
  602. Parent = hit.Parent.Torso,
  603. }
  604. local BodGy = Create("BodyGyro") {
  605. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  606. P = 20e+003,
  607. Parent = hit.Parent.Torso,
  608. cframe = hit.Parent.Torso.CFrame,
  609. }
  610. hit.Parent.Torso.Anchored = true
  611. coroutine.resume(coroutine.create(function(Part)
  612. swait(1.5)
  613. Part.Anchored = false
  614. end), hit.Parent.Torso)
  615. game:GetService("Debris"):AddItem(BodPos, 3)
  616. game:GetService("Debris"):AddItem(BodGy, 3)
  617. end
  618. local debounce = Create("BoolValue"){
  619. Name = "DebounceHit",
  620. Parent = hit.Parent,
  621. Value = true,
  622. }
  623. game:GetService("Debris"):AddItem(debounce, Delay)
  624. c = Create("ObjectValue"){
  625. Name = "creator",
  626. Value = Player,
  627. Parent = h,
  628. }
  629. game:GetService("Debris"):AddItem(c, .5)
  630. end
  631. end
  632. -------------------------------------------------------
  633. --End Damage Function--
  634. -------------------------------------------------------
  635.  
  636. -------------------------------------------------------
  637. --Start Damage Function Customization--
  638. -------------------------------------------------------
  639. function ShowDamage(Pos, Text, Time, Color)
  640. local Rate = (1 / 30)
  641. local Pos = (Pos or Vector3.new(0, 0, 0))
  642. local Text = (Text or "")
  643. local Time = (Time or 2)
  644. local Color = (Color or Color3.new(1, 0, 1))
  645. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  646. EffectPart.Anchored = true
  647. local BillboardGui = Create("BillboardGui"){
  648. Size = UDim2.new(3, 0, 3, 0),
  649. Adornee = EffectPart,
  650. Parent = EffectPart,
  651. }
  652. local TextLabel = Create("TextLabel"){
  653. BackgroundTransparency = 1,
  654. Size = UDim2.new(1, 0, 1, 0),
  655. Text = Text,
  656. Font = "Bodoni",
  657. TextColor3 = Color,
  658. TextScaled = true,
  659. TextStrokeColor3 = Color3.fromRGB(0,0,0),
  660. Parent = BillboardGui,
  661. }
  662. game.Debris:AddItem(EffectPart, (Time))
  663. EffectPart.Parent = game:GetService("Workspace")
  664. delay(0, function()
  665. local Frames = (Time / Rate)
  666. for Frame = 1, Frames do
  667. wait(Rate)
  668. local Percent = (Frame / Frames)
  669. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  670. TextLabel.TextTransparency = Percent
  671. end
  672. if EffectPart and EffectPart.Parent then
  673. EffectPart:Destroy()
  674. end
  675. end)
  676. end
  677. -------------------------------------------------------
  678. --End Damage Function Customization--
  679. -------------------------------------------------------
  680.  
  681. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  682. for _, c in pairs(workspace:children()) do
  683. local hum = c:findFirstChild("Humanoid")
  684. if hum ~= nil then
  685. local head = c:findFirstChild("Head")
  686. if head ~= nil then
  687. local targ = head.Position - Part.Position
  688. local mag = targ.magnitude
  689. if magni >= mag and c.Name ~= plr.Name then
  690. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  691. end
  692. end
  693. end
  694. end
  695. end
  696.  
  697.  
  698. CFuncs = {
  699. Part = {
  700. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  701. local Part = Create("Part")({
  702. Parent = Parent,
  703. Reflectance = Reflectance,
  704. Transparency = Transparency,
  705. CanCollide = false,
  706. Locked = true,
  707. BrickColor = BrickColor.new(tostring(BColor)),
  708. Name = Name,
  709. Size = Size,
  710. Material = Material
  711. })
  712. RemoveOutlines(Part)
  713. return Part
  714. end
  715. },
  716. Mesh = {
  717. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  718. local Msh = Create(Mesh)({
  719. Parent = Part,
  720. Offset = OffSet,
  721. Scale = Scale
  722. })
  723. if Mesh == "SpecialMesh" then
  724. Msh.MeshType = MeshType
  725. Msh.MeshId = MeshId
  726. end
  727. return Msh
  728. end
  729. },
  730. Mesh = {
  731. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  732. local Msh = Create(Mesh)({
  733. Parent = Part,
  734. Offset = OffSet,
  735. Scale = Scale
  736. })
  737. if Mesh == "SpecialMesh" then
  738. Msh.MeshType = MeshType
  739. Msh.MeshId = MeshId
  740. end
  741. return Msh
  742. end
  743. },
  744. Weld = {
  745. Create = function(Parent, Part0, Part1, C0, C1)
  746. local Weld = Create("Weld")({
  747. Parent = Parent,
  748. Part0 = Part0,
  749. Part1 = Part1,
  750. C0 = C0,
  751. C1 = C1
  752. })
  753. return Weld
  754. end
  755. },
  756. Sound = {
  757. Create = function(id, par, vol, pit)
  758. coroutine.resume(coroutine.create(function()
  759. local S = Create("Sound")({
  760. Volume = vol,
  761. Pitch = pit or 1,
  762. SoundId = id,
  763. Parent = par or workspace
  764. })
  765. wait()
  766. S:play()
  767. game:GetService("Debris"):AddItem(S, 6)
  768. end))
  769. end
  770. },
  771. ParticleEmitter = {
  772. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  773. local fp = Create("ParticleEmitter")({
  774. Parent = Parent,
  775. Color = ColorSequence.new(Color1, Color2),
  776. LightEmission = LightEmission,
  777. Size = Size,
  778. Texture = Texture,
  779. Transparency = Transparency,
  780. ZOffset = ZOffset,
  781. Acceleration = Accel,
  782. Drag = Drag,
  783. LockedToPart = LockedToPart,
  784. VelocityInheritance = VelocityInheritance,
  785. EmissionDirection = EmissionDirection,
  786. Enabled = Enabled,
  787. Lifetime = LifeTime,
  788. Rate = Rate,
  789. Rotation = Rotation,
  790. RotSpeed = RotSpeed,
  791. Speed = Speed,
  792. VelocitySpread = VelocitySpread
  793. })
  794. return fp
  795. end
  796. }
  797. }
  798. function RemoveOutlines(part)
  799. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  800. end
  801. function CreatePart1(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  802. local Part = Create("Part")({
  803. formFactor = FormFactor,
  804. Parent = Parent,
  805. Reflectance = Reflectance,
  806. Transparency = Transparency,
  807. CanCollide = false,
  808. Locked = true,
  809. BrickColor = BrickColor.new(tostring(BColor)),
  810. Name = Name,
  811. Size = Size,
  812. Material = Material
  813. })
  814. RemoveOutlines(Part)
  815. return Part
  816. end
  817. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  818. local NEWPART = IT("Part")
  819. NEWPART.formFactor = FORMFACTOR
  820. NEWPART.Reflectance = REFLECTANCE
  821. NEWPART.Transparency = TRANSPARENCY
  822. NEWPART.CanCollide = false
  823. NEWPART.Locked = true
  824. NEWPART.Anchored = true
  825. if ANCHOR == false then
  826. NEWPART.Anchored = false
  827. end
  828. NEWPART.BrickColor = BrickC(tostring(BRICKCOLOR))
  829. NEWPART.Name = NAME
  830. NEWPART.Size = SIZE
  831. NEWPART.Position = tors.Position
  832. NEWPART.Material = MATERIAL
  833. NEWPART:BreakJoints()
  834. NEWPART.Parent = PARENT
  835. return NEWPART
  836. end
  837. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  838. local Msh = Create(Mesh)({
  839. Parent = Part,
  840. Offset = OffSet,
  841. Scale = Scale
  842. })
  843. if Mesh == "SpecialMesh" then
  844. Msh.MeshType = MeshType
  845. Msh.MeshId = MeshId
  846. end
  847. return Msh
  848. end
  849. function CreateWeld(Parent, Part0, Part1, C0, C1)
  850. local Weld = Create("Weld")({
  851. Parent = Parent,
  852. Part0 = Part0,
  853. Part1 = Part1,
  854. C0 = C0,
  855. C1 = C1
  856. })
  857. return Weld
  858. end
  859.  
  860.  
  861. -------------------------------------------------------
  862. --Start Effect Function--
  863. -------------------------------------------------------
  864. EffectModel = Instance.new("Model", char)
  865. Effects = {
  866. Block = {
  867. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  868. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  869. prt.Anchored = true
  870. prt.CFrame = cframe
  871. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  872. game:GetService("Debris"):AddItem(prt, 10)
  873. if Type == 1 or Type == nil then
  874. table.insert(Effects, {
  875. prt,
  876. "Block1",
  877. delay,
  878. x3,
  879. y3,
  880. z3,
  881. msh
  882. })
  883. elseif Type == 2 then
  884. table.insert(Effects, {
  885. prt,
  886. "Block2",
  887. delay,
  888. x3,
  889. y3,
  890. z3,
  891. msh
  892. })
  893. else
  894. table.insert(Effects, {
  895. prt,
  896. "Block3",
  897. delay,
  898. x3,
  899. y3,
  900. z3,
  901. msh
  902. })
  903. end
  904. end
  905. },
  906. Sphere = {
  907. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  908. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  909. prt.Anchored = true
  910. prt.CFrame = cframe
  911. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  912. game:GetService("Debris"):AddItem(prt, 10)
  913. table.insert(Effects, {
  914. prt,
  915. "Cylinder",
  916. delay,
  917. x3,
  918. y3,
  919. z3,
  920. msh
  921. })
  922. end
  923. },
  924. Cylinder = {
  925. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  926. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  927. prt.Anchored = true
  928. prt.CFrame = cframe
  929. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  930. game:GetService("Debris"):AddItem(prt, 10)
  931. table.insert(Effects, {
  932. prt,
  933. "Cylinder",
  934. delay,
  935. x3,
  936. y3,
  937. z3,
  938. msh
  939. })
  940. end
  941. },
  942. Wave = {
  943. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  944. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  945. prt.Anchored = true
  946. prt.CFrame = cframe
  947. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  948. game:GetService("Debris"):AddItem(prt, 10)
  949. table.insert(Effects, {
  950. prt,
  951. "Cylinder",
  952. delay,
  953. x3 / 60,
  954. y3 / 60,
  955. z3 / 60,
  956. msh
  957. })
  958. end
  959. },
  960. Ring = {
  961. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  962. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  963. prt.Anchored = true
  964. prt.CFrame = cframe
  965. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  966. game:GetService("Debris"):AddItem(prt, 10)
  967. table.insert(Effects, {
  968. prt,
  969. "Cylinder",
  970. delay,
  971. x3,
  972. y3,
  973. z3,
  974. msh
  975. })
  976. end
  977. },
  978. Break = {
  979. Create = function(brickcolor, cframe, x1, y1, z1)
  980. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  981. prt.Anchored = true
  982. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  983. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  984. local num = math.random(10, 50) / 1000
  985. game:GetService("Debris"):AddItem(prt, 10)
  986. table.insert(Effects, {
  987. prt,
  988. "Shatter",
  989. num,
  990. prt.CFrame,
  991. math.random() - math.random(),
  992. 0,
  993. math.random(50, 100) / 100
  994. })
  995. end
  996. },
  997. Spiral = {
  998. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  999. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1000. prt.Anchored = true
  1001. prt.CFrame = cframe
  1002. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1003. game:GetService("Debris"):AddItem(prt, 10)
  1004. table.insert(Effects, {
  1005. prt,
  1006. "Cylinder",
  1007. delay,
  1008. x3,
  1009. y3,
  1010. z3,
  1011. msh
  1012. })
  1013. end
  1014. },
  1015. Push = {
  1016. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1017. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1018. prt.Anchored = true
  1019. prt.CFrame = cframe
  1020. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1021. game:GetService("Debris"):AddItem(prt, 10)
  1022. table.insert(Effects, {
  1023. prt,
  1024. "Cylinder",
  1025. delay,
  1026. x3,
  1027. y3,
  1028. z3,
  1029. msh
  1030. })
  1031. end
  1032. }
  1033. }
  1034. function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
  1035. local fp = IT("Part")
  1036. fp.formFactor = formfactor
  1037. fp.Parent = parent
  1038. fp.Reflectance = reflectance
  1039. fp.Transparency = transparency
  1040. fp.CanCollide = false
  1041. fp.Locked = true
  1042. fp.BrickColor = brickcolor
  1043. fp.Name = name
  1044. fp.Size = size
  1045. fp.Position = tors.Position
  1046. RemoveOutlines(fp)
  1047. fp.Material = "SmoothPlastic"
  1048. fp:BreakJoints()
  1049. return fp
  1050. end
  1051.  
  1052. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1053. local mesh = IT(Mesh)
  1054. mesh.Parent = part
  1055. if Mesh == "SpecialMesh" then
  1056. mesh.MeshType = meshtype
  1057. if meshid ~= "nil" then
  1058. mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
  1059. end
  1060. end
  1061. mesh.Offset = offset
  1062. mesh.Scale = scale
  1063. return mesh
  1064. end
  1065.  
  1066. function Magic(bonuspeed, type, pos, scale, value, color, MType)
  1067. local type = type
  1068. local rng = Instance.new("Part", char)
  1069. rng.Anchored = true
  1070. rng.BrickColor = color
  1071. rng.CanCollide = false
  1072. rng.FormFactor = 3
  1073. rng.Name = "Ring"
  1074. rng.Material = "Neon"
  1075. rng.Size = Vector3.new(1, 1, 1)
  1076. rng.Transparency = 0
  1077. rng.TopSurface = 0
  1078. rng.BottomSurface = 0
  1079. rng.CFrame = pos
  1080. local rngm = Instance.new("SpecialMesh", rng)
  1081. rngm.MeshType = MType
  1082. rngm.Scale = scale
  1083. local scaler2 = 1
  1084. if type == "Add" then
  1085. scaler2 = 1 * value
  1086. elseif type == "Divide" then
  1087. scaler2 = 1 / value
  1088. end
  1089. coroutine.resume(coroutine.create(function()
  1090. for i = 0, 10 / bonuspeed, 0.1 do
  1091. swait()
  1092. if type == "Add" then
  1093. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1094. elseif type == "Divide" then
  1095. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1096. end
  1097. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1098. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  1099. end
  1100. rng:Destroy()
  1101. end))
  1102. end
  1103.  
  1104. function Eviscerate(dude)
  1105. if dude.Name ~= char then
  1106. local bgf = IT("BodyGyro", dude.Head)
  1107. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1108. local val = IT("BoolValue", dude)
  1109. val.Name = "IsHit"
  1110. local ds = coroutine.wrap(function()
  1111. dude:WaitForChild("Head"):BreakJoints()
  1112. wait(0.5)
  1113. target = nil
  1114. coroutine.resume(coroutine.create(function()
  1115. for i, v in pairs(dude:GetChildren()) do
  1116. if v:IsA("Accessory") then
  1117. v:Destroy()
  1118. end
  1119. if v:IsA("Humanoid") then
  1120. v:Destroy()
  1121. end
  1122. if v:IsA("CharacterMesh") then
  1123. v:Destroy()
  1124. end
  1125. if v:IsA("Model") then
  1126. v:Destroy()
  1127. end
  1128. if v:IsA("Part") or v:IsA("MeshPart") then
  1129. for x, o in pairs(v:GetChildren()) do
  1130. if o:IsA("Decal") then
  1131. o:Destroy()
  1132. end
  1133. end
  1134. coroutine.resume(coroutine.create(function()
  1135. v.Material = "Neon"
  1136. v.CanCollide = false
  1137. local PartEmmit1 = IT("ParticleEmitter", v)
  1138. PartEmmit1.LightEmission = 1
  1139. PartEmmit1.Texture = "rbxassetid://284205403"
  1140. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1141. PartEmmit1.Rate = 150
  1142. PartEmmit1.Lifetime = NumberRange.new(1)
  1143. PartEmmit1.Size = NumberSequence.new({
  1144. NumberSequenceKeypoint.new(0, 0.75, 0),
  1145. NumberSequenceKeypoint.new(1, 0, 0)
  1146. })
  1147. PartEmmit1.Transparency = NumberSequence.new({
  1148. NumberSequenceKeypoint.new(0, 0, 0),
  1149. NumberSequenceKeypoint.new(1, 1, 0)
  1150. })
  1151. PartEmmit1.Speed = NumberRange.new(0, 0)
  1152. PartEmmit1.VelocitySpread = 30000
  1153. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  1154. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  1155. local BodPoss = IT("BodyPosition", v)
  1156. BodPoss.P = 3000
  1157. BodPoss.D = 1000
  1158. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1159. BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1160. v.Color = maincolor.Color
  1161. coroutine.resume(coroutine.create(function()
  1162. for i = 0, 49 do
  1163. swait(1)
  1164. v.Transparency = v.Transparency + 0.08
  1165. end
  1166. wait(0.5)
  1167. PartEmmit1.Enabled = false
  1168. wait(3)
  1169. v:Destroy()
  1170. dude:Destroy()
  1171. end))
  1172. end))
  1173. end
  1174. end
  1175. end))
  1176. end)
  1177. ds()
  1178. end
  1179. end
  1180.  
  1181. function FindNearestHead(Position, Distance, SinglePlayer)
  1182. if SinglePlayer then
  1183. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  1184. end
  1185. local List = {}
  1186. for i, v in pairs(workspace:GetChildren()) do
  1187. if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  1188. table.insert(List, v)
  1189. end
  1190. end
  1191. return List
  1192. end
  1193.  
  1194. function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
  1195. local type = type
  1196. local rng = Instance.new("Part", char)
  1197. rng.Anchored = true
  1198. rng.BrickColor = color
  1199. rng.CanCollide = false
  1200. rng.FormFactor = 3
  1201. rng.Name = "Ring"
  1202. rng.Material = "Neon"
  1203. rng.Size = Vector3.new(1, 1, 1)
  1204. rng.Transparency = 0
  1205. rng.TopSurface = 0
  1206. rng.BottomSurface = 0
  1207. rng.CFrame = pos
  1208. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  1209. local rngm = Instance.new("SpecialMesh", rng)
  1210. rngm.MeshType = MType
  1211. rngm.Scale = Vector3.new(x1, y1, z1)
  1212. local scaler2 = 1
  1213. local speeder = FastSpeed
  1214. if type == "Add" then
  1215. scaler2 = 1 * value
  1216. elseif type == "Divide" then
  1217. scaler2 = 1 / value
  1218. end
  1219. coroutine.resume(coroutine.create(function()
  1220. for i = 0, 10 / bonuspeed, 0.1 do
  1221. swait()
  1222. if type == "Add" then
  1223. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1224. elseif type == "Divide" then
  1225. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1226. end
  1227. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  1228. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  1229. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1230. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  1231. end
  1232. rng:Destroy()
  1233. end))
  1234. end
  1235.  
  1236. function SoulSteal(dude)
  1237. if dude.Name ~= char then
  1238. local bgf = IT("BodyGyro", dude.Head)
  1239. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1240. local val = IT("BoolValue", dude)
  1241. val.Name = "IsHit"
  1242. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  1243. local soulst = coroutine.wrap(function()
  1244. local soul = Instance.new("Part",dude)
  1245. soul.Size = Vector3.new(1,1,1)
  1246. soul.CanCollide = false
  1247. soul.Anchored = false
  1248. soul.Position = torso.Position
  1249. soul.Transparency = 1
  1250. local PartEmmit1 = IT("ParticleEmitter", soul)
  1251. PartEmmit1.LightEmission = 1
  1252. PartEmmit1.Texture = "rbxassetid://569507414"
  1253. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1254. PartEmmit1.Rate = 250
  1255. PartEmmit1.Lifetime = NumberRange.new(1.6)
  1256. PartEmmit1.Size = NumberSequence.new({
  1257. NumberSequenceKeypoint.new(0, 1, 0),
  1258. NumberSequenceKeypoint.new(1, 0, 0)
  1259. })
  1260. PartEmmit1.Transparency = NumberSequence.new({
  1261. NumberSequenceKeypoint.new(0, 0, 0),
  1262. NumberSequenceKeypoint.new(1, 1, 0)
  1263. })
  1264. PartEmmit1.Speed = NumberRange.new(0, 0)
  1265. PartEmmit1.VelocitySpread = 30000
  1266. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  1267. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  1268. local BodPoss = IT("BodyPosition", soul)
  1269. BodPoss.P = 3000
  1270. BodPoss.D = 1000
  1271. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1272. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1273. wait(1.6)
  1274. soul.Touched:connect(function(hit)
  1275. if hit.Parent == char then
  1276. soul:Destroy()
  1277. end
  1278. end)
  1279. wait(1.2)
  1280. while soul do
  1281. swait()
  1282. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1283. BodPoss.Position = tors.Position
  1284. end
  1285. end)
  1286. soulst()
  1287. end
  1288. end
  1289. function FaceMouse()
  1290. local Cam = workspace.CurrentCamera
  1291. return {
  1292. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  1293. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  1294. }
  1295. end
  1296. -------------------------------------------------------
  1297. --End Effect Function--
  1298. -------------------------------------------------------
  1299. function Cso(ID, PARENT, VOLUME, PITCH)
  1300. local NSound = nil
  1301. coroutine.resume(coroutine.create(function()
  1302. NSound = IT("Sound", PARENT)
  1303. NSound.Volume = VOLUME
  1304. NSound.Pitch = PITCH
  1305. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1306. swait()
  1307. NSound:play()
  1308. game:GetService("Debris"):AddItem(NSound, 10)
  1309. end))
  1310. return NSound
  1311. end
  1312. function CameraEnshaking(Length, Intensity)
  1313. coroutine.resume(coroutine.create(function()
  1314. local intensity = 1 * Intensity
  1315. local rotM = 0.01 * Intensity
  1316. for i = 0, Length, 0.1 do
  1317. swait()
  1318. intensity = intensity - 0.05 * Intensity / Length
  1319. rotM = rotM - 5.0E-4 * Intensity / Length
  1320. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  1321. cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM)
  1322. end
  1323. hum.CameraOffset = Vector3.new(0, 0, 0)
  1324. end))
  1325. end
  1326.  
  1327. local Particle = IT("ParticleEmitter",nil)
  1328. Particle.Enabled = false
  1329. --Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
  1330. Particle.LightEmission = 0.5
  1331. Particle.Rate = 150
  1332. Particle.ZOffset = 1
  1333. Particle.Rotation = NumberRange.new(-180, 180)
  1334. Particle.RotSpeed = NumberRange.new(-180, 180)
  1335. Particle.Texture = "http://www.roblox.com/asset/?id=284205403"
  1336. Particle.Color = ColorSequence.new(Color3.new(0,0,0),Color3.new(0,0,0))
  1337.  
  1338. function ParticleEmitter(Table)
  1339. local PRTCL = Particle:Clone()
  1340. local Speed = Table.Speed or 5
  1341. local Drag = Table.Drag or 0
  1342. local Size1 = Table.Size1 or 1
  1343. local Size2 = Table.Size2 or 5
  1344. local Lifetime1 = Table.Lifetime1 or 1
  1345. local Lifetime2 = Table.Lifetime2 or 1.5
  1346. local Parent = Table.Parent or tors
  1347. local Emit = Table.Emit or 100
  1348. local Offset = Table.Offset or 360
  1349. local Acel = Table.Acel or Vector3.new(0,-50,0)
  1350. local Enabled = Table.Enabled or false
  1351. PRTCL.Parent = Parent
  1352. PRTCL.Size = NumberSequence.new(Size1,Size2)
  1353. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1354. PRTCL.Speed = NumberRange.new(Speed)
  1355. PRTCL.VelocitySpread = Offset
  1356. PRTCL.Drag = Drag
  1357. PRTCL.Acceleration = Acel
  1358. if Enabled == false then
  1359. PRTCL:Emit(Emit)
  1360. game:GetService("Debris"):AddItem(PRTCL,Lifetime2)
  1361. else
  1362. PRTCL.Enabled = true
  1363. end
  1364. return PRTCL
  1365. end
  1366. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 1.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = rl, Emit = 900, Offset = 360, Enabled = true})
  1367. --PRT.LockedToPart = true
  1368. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 1.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = ll, Emit = 900, Offset = 360, Enabled = true})
  1369. --PRT.LockedToPart = true
  1370. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 1.1, Size2 = 0.3, Lifetime1 = 0.3, Lifetime2 = 1.5, Parent = tors, Emit = 900, Offset = 360, Enabled = true})
  1371. --PRT.LockedToPart = true
  1372. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 1.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = ra, Emit = 900, Offset = 360, Enabled = true})
  1373. --PRT.LockedToPart = true
  1374. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 1.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = la, Emit = 900, Offset = 360, Enabled = true})
  1375. --PRT.LockedToPart = true
  1376. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  1377. local NEWWELD = IT(TYPE)
  1378. NEWWELD.Part0 = PART0
  1379. NEWWELD.Part1 = PART1
  1380. NEWWELD.C0 = C0
  1381. NEWWELD.C1 = C1
  1382. NEWWELD.Parent = PARENT
  1383. return NEWWELD
  1384. end
  1385.  
  1386. function MakeForm(PART,TYPE)
  1387. local MSH = nil
  1388. if TYPE == "Cyl" then
  1389. MSH = IT("CylinderMesh",PART)
  1390. elseif TYPE == "Ball" then
  1391. MSH = IT("SpecialMesh",PART)
  1392. MSH.MeshType = "Sphere"
  1393. elseif TYPE == "Wedge" then
  1394. MSH = IT("SpecialMesh",PART)
  1395. MSH.MeshType = "Wedge"
  1396. elseif TYPE == "Block" then
  1397. MSH = IT("SpecialMesh",PART)
  1398. MSH.MeshType = "Brick"
  1399. end
  1400. return MSH
  1401. end
  1402.  
  1403. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  1404. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  1405. end
  1406.  
  1407. function Sink(position,radius)
  1408. for i,v in ipairs(workspace:GetChildren()) do
  1409. if v:FindFirstChild("Hit2By"..plr.Name) == nil then
  1410. local body = v:GetChildren()
  1411. for part = 1, #body do
  1412. if(v:FindFirstChild("Hit2By"..plr.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= char) then
  1413. if(body[part].Position - position).Magnitude < radius then
  1414. if v.ClassName == "Model" then
  1415. v:FindFirstChildOfClass("Humanoid").Name = "Humanoid"
  1416. if v:FindFirstChild("Humanoid") then
  1417. local defence = Instance.new("BoolValue",v)
  1418. defence.Name = ("Hit2By"..plr.Name)
  1419. if v.Humanoid.Health ~= 0 then
  1420. local TORS = v:FindFirstChild("HumanoidRootPart") or v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  1421. if TORS ~= nil then
  1422. local HITFLOOR2, HITPOS2 = Raycast(TORS.Position, (CF(TORS.Position, TORS.Position + Vector3.new(0, -1, 0))).lookVector, 25 * TORS.Size.Y/2, v)
  1423. coroutine.resume(coroutine.create(function()
  1424. if HITFLOOR2 ~= nil then
  1425. TORS.Anchored = true
  1426. local Hole2 = CreatePart(3, EffectModel, "Neon", 0, 0, "Really black", "Hole", Vector3.new(TORS.Size.X*4,0,TORS.Size.X*4))
  1427. Hole2.Color = Color3.new(0,0,0)
  1428. local MESH = MakeForm(Hole2,"Cyl")
  1429. MESH.Scale = Vector3.new(0,1,0)
  1430. Hole2.CFrame = CF(HITPOS2)
  1431. for i = 1, 10 do
  1432. swait()
  1433. MESH.Scale = MESH.Scale + Vector3.new(0.1,0,0.1)
  1434. end
  1435. --Cso("160440683", v:FindFirstChild("Head"), 10, .8)
  1436. Cso("154955269", v:FindFirstChild("Head"), 10, 1)
  1437. repeat
  1438. swait()
  1439. TORS.CFrame = TORS.CFrame * CF(0,-0.1,0)
  1440. --MESH.Scale = MESH.Scale + Vector3.new(0,1.6,0)
  1441. until TORS.Position.Y<position.Y-4
  1442. v:remove()
  1443. for i = 1, 10 do
  1444. swait()
  1445. MESH.Scale = MESH.Scale - Vector3.new(0.1,0,0.1)
  1446. end
  1447. Hole2:remove()
  1448. end
  1449. end))
  1450. end
  1451. end
  1452. end
  1453. end
  1454. --body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  1455. end
  1456. end
  1457. end
  1458. end
  1459. end
  1460. end
  1461. function Trail(Part)
  1462. local TRAIL = Part:Clone()
  1463. TRAIL.CanCollide = false
  1464. TRAIL.Anchored = true
  1465. TRAIL.Parent = EffectModel
  1466. TRAIL.Name = "Trail"
  1467. local TRANS = Part.Transparency
  1468. coroutine.resume(coroutine.create(function()
  1469. for i = 1, 20 do
  1470. swait()
  1471. TRAIL.Transparency = TRAIL.Transparency + ((1-TRANS)/20)
  1472. end
  1473. TRAIL:remove()
  1474. end))
  1475. end
  1476. function getRegion(point,range,ignore)
  1477. return workspace:FindPartsInRegion3WithIgnoreList(Region3.new(point-Vector3.new(1,1,1)*range/2,point+Vector3.new(1,1,1)*range/2),ignore,100)
  1478. end
  1479.  
  1480. function GetTorso(char)
  1481. return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
  1482. end
  1483.  
  1484. local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end}
  1485.  
  1486. NewInstance = function(instance,parent,properties)
  1487. local inst = Instance.new(instance)
  1488. inst.Parent = parent
  1489. if(properties)then
  1490. for i,v in next, properties do
  1491. pcall(function() inst[i] = v end)
  1492. end
  1493. end
  1494. return inst;
  1495. end
  1496.  
  1497. function Part(parent,color,material,size,cframe,anchored,cancollide)
  1498. local part = Instance.new("Part")
  1499. part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or Color3.new(0,0,0)
  1500. part.Material = material or Enum.Material.SmoothPlastic
  1501. part.TopSurface,part.BottomSurface=10,10
  1502. part.Size = size or Vector3.new(1,1,1)
  1503. part.CFrame = cframe or CF(0,0,0)
  1504. part.Anchored = anchored or true
  1505. part.CanCollide = cancollide or false
  1506. part.Parent = parent or char
  1507. return part
  1508. end
  1509. -------------------------------------------------------
  1510. --End Important Functions--
  1511. -------------------------------------------------------
  1512.  
  1513.  
  1514. -------------------------------------------------------
  1515. --Start Customization--
  1516. -------------------------------------------------------
  1517. local Player_Size = 1
  1518. if Player_Size ~= 1 then
  1519. root.Size = root.Size * Player_Size
  1520. tors.Size = tors.Size * Player_Size
  1521. hed.Size = hed.Size * Player_Size
  1522. ra.Size = ra.Size * Player_Size
  1523. la.Size = la.Size * Player_Size
  1524. rl.Size = rl.Size * Player_Size
  1525. ll.Size = ll.Size * Player_Size
  1526. ----------------------------------------------------------------------------------
  1527. rootj.Parent = root
  1528. neck.Parent = tors
  1529. RW.Parent = tors
  1530. LW.Parent = tors
  1531. RH.Parent = tors
  1532. LH.Parent = tors
  1533. ----------------------------------------------------------------------------------
  1534. rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1535. rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1536. neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
  1537. neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
  1538. RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
  1539. LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
  1540. ----------------------------------------------------------------------------------
  1541. RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1542. LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1543. RH.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1544. LH.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1545. --hat.Parent = Character
  1546. end
  1547. ----------------------------------------------------------------------------------
  1548. local SONG = 257187456
  1549. local SONG2 = 0
  1550. local Music = Instance.new("Sound",tors)
  1551. Music.Volume = 2.5
  1552. Music.Looped = true
  1553. Music.Pitch = 1 --Pitcher
  1554. ----------------------------------------------------------------------------------
  1555. local equipped = false
  1556. local idle = 0
  1557. local change = 1
  1558. local val = 0
  1559. local toim = 0
  1560. local idleanim = 0.4
  1561. local sine = 0
  1562. local Sit = 1
  1563. local Mode = "Normal"
  1564. ----------------------------------------------------------------------------------
  1565. hum.WalkSpeed = 16
  1566. hum.JumpPower = 57
  1567. --hum.Animator.Parent = nil
  1568. ----------------------------------------------------------------------------------
  1569. local Hole = CreatePart(3, EffectModel, "Neon", 0, 0, "Really black", "Hole", Vector3.new(5,0,5))
  1570. local MESH = MakeForm(Hole,"Cyl")
  1571. local ROBLOXIDLEANIMATION = IT("Animation")
  1572. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  1573. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  1574. local ANIMATOR = hum.Animator
  1575. local ANIMATE = char.Animate
  1576. -------------------------------------------------------
  1577. --End Customization--
  1578. -------------------------------------------------------
  1579.  
  1580.  
  1581. -------------------------------------------------------
  1582. --Start Attacks N Stuff--
  1583. -------------------------------------------------------
  1584. function InkyWarp()
  1585. attack = true
  1586. attack = true
  1587. hum.WalkSpeed = 0
  1588. root.Anchored = true
  1589. for i = 0, 4, 0.1 do
  1590. swait()
  1591. rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, 0 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(0 - 2.5 * Sin(sine / 24)), Rad(0)), 0.15)
  1592. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 6.5 * Cos(sine / 12)), Rad(0), Rad(20 * Cos(sine / 12))), 0.3)
  1593. RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size + 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(84), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  1594. LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-84), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  1595. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-6 + 4.5 * Sin(sine / 12)), Rad(25 + 2.5 * Sin(sine / 12)), Rad(25 + 4.5 * Sin(sine / 12))), 0.1)
  1596. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(7 + 4.5 * Sin(sine / 12)), Rad(0 + 2.5 * Sin(sine / 12)), Rad(-13 - 4.5 * Sin(sine / 12))), 0.1)
  1597. end
  1598. for i = 0, 2, 0.1 do
  1599. swait()
  1600. rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, -15 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(0 - 2.5 * Sin(sine / 24)), Rad(0)), 0.15)
  1601. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 6.5 * Cos(sine / 12)), Rad(0), Rad(20 * Cos(sine / 12))), 0.3)
  1602. RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size + 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(84), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  1603. LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-84), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  1604. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-6 + 4.5 * Sin(sine / 12)), Rad(25 + 2.5 * Sin(sine / 12)), Rad(25 + 4.5 * Sin(sine / 12))), 0.1)
  1605. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(7 + 4.5 * Sin(sine / 12)), Rad(0 + 2.5 * Sin(sine / 12)), Rad(-13 - 4.5 * Sin(sine / 12))), 0.1)
  1606. end
  1607. for i = 1, 50 do
  1608. swait()
  1609. Trail(Hole)
  1610. MESH.Scale = MESH.Scale - Vector3.new(0.02,0,0.02)
  1611. end
  1612. local ORIGINPOS = root.Position
  1613. root.CFrame = CF(Vector3.new(mouse.Hit.p.X,root.Position.Y,mouse.Hit.p.Z),ORIGINPOS)
  1614. Cso("154955269", tors, 10, .8)
  1615. for i = 1, 50 do
  1616. swait()
  1617. MESH.Scale = MESH.Scale + Vector3.new(0.02,0,0.02)
  1618. end
  1619. for i = 0, 4, 0.1 do
  1620. swait()
  1621. rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, 0 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(0 - 2.5 * Sin(sine / 24)), Rad(0)), 0.15)
  1622. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 6.5 * Cos(sine / 12)), Rad(0), Rad(20 * Cos(sine / 12))), 0.3)
  1623. RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size + 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(84), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  1624. LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-84), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  1625. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-6 + 4.5 * Sin(sine / 12)), Rad(25 + 2.5 * Sin(sine / 12)), Rad(25 + 4.5 * Sin(sine / 12))), 0.1)
  1626. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(7 + 4.5 * Sin(sine / 12)), Rad(0 + 2.5 * Sin(sine / 12)), Rad(-13 - 4.5 * Sin(sine / 12))), 0.1)
  1627. end
  1628. attack = false
  1629. hum.WalkSpeed = 16
  1630. root.Anchored = false
  1631. end
  1632.  
  1633. -------------------------------------------------------
  1634. --End Attacks N Stuff--
  1635. -------------------------------------------------------
  1636. mouse.KeyDown:connect(function(key)
  1637. if attack == false then
  1638. if key == 'z' then
  1639. InkyWarp()
  1640. elseif key == 'p' and Mode == "Normal" then
  1641. Mode = "Chase"
  1642. SONG = 428651593
  1643. hum.WalkSpeed = 28
  1644. elseif key == 'p' and Mode == "Chase" then
  1645. Mode = "Normal"
  1646. SONG = 257187456
  1647. hum.WalkSpeed = 16
  1648. end
  1649. end
  1650. end)
  1651.  
  1652.  
  1653.  
  1654.  
  1655.  
  1656.  
  1657.  
  1658.  
  1659. -------------------------------------------------------
  1660. --Start Animations--
  1661. -------------------------------------------------------
  1662. print("By Makhail07")
  1663. coroutine.resume(coroutine.create(function()
  1664. while wait() do
  1665. if hitfloor ~= nil then
  1666. Hole.CFrame = CF(posfloor)
  1667. end
  1668. Sink(Hole.Position, Hole.Size.X/2.2 * MESH.Scale.X)
  1669. Hole.Color = Color3.new(0,0,0)
  1670. Trail(Hole)
  1671. end
  1672. end))
  1673. while true do
  1674. swait()
  1675. sine = sine + change
  1676. ANIMATE.Parent = nil
  1677. local IDLEANIMATION = hum:LoadAnimation(ROBLOXIDLEANIMATION)
  1678. IDLEANIMATION:Play()
  1679. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1680. local velderp = root.Velocity.y
  1681. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4 * Player_Size, char)
  1682. if equipped == true or equipped == false then
  1683. if attack == false then
  1684. idle = idle + 1
  1685. else
  1686. idle = 0
  1687. end
  1688. if 1 < root.Velocity.y and hitfloor == nil then
  1689. Anim = "Jump"
  1690. if attack == false then
  1691. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.15)
  1692. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(0 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1693. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * RHCF * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
  1694. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
  1695. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1)
  1696. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
  1697. end
  1698. elseif -1 > root.Velocity.y and hitfloor == nil then
  1699. Anim = "Fall"
  1700. if attack == false then
  1701. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(15), Rad(0), Rad(0)), 0.15)
  1702. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1703. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * RHCF * angles(Rad(-9.5), Rad(0), Rad(20)), 0.15)
  1704. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.4 - 0.1 * Cos(sine / 20)* Player_Size, -.5* Player_Size) * LHCF * angles(Rad(-9.5), Rad(0), Rad(20)), 0.15)
  1705. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(75 + 4.5 * Sin(sine / 20))), 0.1)
  1706. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-75 - 4.5 * Sin(sine / 20))), 0.1)
  1707. end
  1708. elseif torvel < 1 and hitfloor ~= nil then
  1709. Anim = "Idle"
  1710. change = 1
  1711. if attack == false then
  1712. if Mode == "Normal" then
  1713. rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, 0 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(0 - 2.5 * Sin(sine / 24)), Rad(0)), 0.15)
  1714. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 6.5 * Cos(sine / 12)), Rad(0), Rad(20 * Cos(sine / 12))), 0.3)
  1715. RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size + 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(84), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  1716. LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-84), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  1717. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-6 + 4.5 * Sin(sine / 12)), Rad(25 + 2.5 * Sin(sine / 12)), Rad(25 + 4.5 * Sin(sine / 12))), 0.1)
  1718. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(7 + 4.5 * Sin(sine / 12)), Rad(0 + 2.5 * Sin(sine / 12)), Rad(-13 - 4.5 * Sin(sine / 12))), 0.1)
  1719. elseif Mode == "Chase" then
  1720. rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, 0 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(0 - 2.5 * Sin(sine / 24)), Rad(0)), 0.15)
  1721. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-6.5 * Cos(sine / 12)), Rad(10), Rad(0)), 0.3)
  1722. RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size + 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(84), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  1723. LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-84), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  1724. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-6 + 4.5 * Sin(sine / 12)), Rad(25 + 2.5 * Sin(sine / 12)), Rad(5)), 0.1)
  1725. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(7 + 4.5 * Sin(sine / 12)), Rad(0 + 2.5 * Sin(sine / 12)), Rad(-5)), 0.1)
  1726. end
  1727. end
  1728. elseif (tors.Velocity).magnitude < 200 and hitfloor ~= nil then
  1729. Anim = "Walk"
  1730. change = 1.1
  1731. if attack == false then
  1732. if Mode == "Normal" then
  1733. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.13 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(10 * Cos(sine / 7))), 0.15)
  1734. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  1735. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-10 - 25 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 15 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1736. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.8 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-10 + 25 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 15 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1737. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(57) * Cos(sine / 7) , Rad(10 * Cos(sine / 7)), Rad(10) - ra.RotVelocity.Y / 75), 0.1)
  1738. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(-57) * Cos(sine / 7) , Rad(10 * Cos(sine / 7)) , Rad(-10) + la.RotVelocity.Y / 75), 0.1)
  1739. elseif Mode == "Chase" then
  1740. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.13 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(17 + 8 * Cos(sine / 7))), 0.15)
  1741. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(-17) - hed.RotVelocity.Y / 15), 0.3)
  1742. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 5 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 15 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1743. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.8 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 5 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 15 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1744. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(90) , Rad(10 * Cos(sine / 7)), Rad(28) - ra.RotVelocity.Y / 75), 0.1)
  1745. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(-57) * Cos(sine / 7) , Rad(10 * Cos(sine / 7)) , Rad(-10) + la.RotVelocity.Y / 75), 0.1)
  1746. end
  1747. end
  1748. end
  1749. end
  1750. for _, c in pairs(char:GetDescendants()) do
  1751. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  1752. c.Material = "Neon"
  1753. c.Color = Color3.new(0,0,0)
  1754. if c:FindFirstChildOfClass("SpecialMesh") then
  1755. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1756. end
  1757. if c == hed then
  1758. if c:FindFirstChild("face") then
  1759. c.face:remove()
  1760. end
  1761. end
  1762. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1763. c.Color = Color3.new(1,0,0)
  1764. c.Material = "Neon"
  1765. elseif c.ClassName == "CharacterMesh" then
  1766. c:remove()
  1767. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  1768. c:remove()
  1769. local shirt = Instance.new("Shirt",char)
  1770. shirt.ShirtTemplate = "rbxassetid://166148446"
  1771. local pants = Instance.new("Pants",char)
  1772. pants.PantsTemplate = "rbxassetid://166148597"
  1773. local bdycolors = char["Body Colors"]
  1774. bdycolors.HeadColor3 = whitecolor
  1775. bdycolors.LeftArmColor3 = whitecolor
  1776. bdycolors.LeftLegColor3 = whitecolor
  1777. bdycolors.RightArmColor3 = whitecolor
  1778. bdycolors.RightLegColor3 = whitecolor
  1779. bdycolors.TorsoColor3 = whitecolor
  1780. end
  1781. end
  1782. Music.SoundId = "rbxassetid://"..SONG
  1783. Music.Looped = true
  1784. Music.Pitch = 1
  1785. Music.Volume = 5
  1786. Music.Parent = tors
  1787. Music:Resume()
  1788. if 0 < #Effects then
  1789. for e = 1, #Effects do
  1790. if Effects[e] ~= nil then
  1791. local Thing = Effects[e]
  1792. if Thing ~= nil then
  1793. local Part = Thing[1]
  1794. local Mode = Thing[2]
  1795. local Delay = Thing[3]
  1796. local IncX = Thing[4]
  1797. local IncY = Thing[5]
  1798. local IncZ = Thing[6]
  1799. if 1 >= Thing[1].Transparency then
  1800. if Thing[2] == "Block1" then
  1801. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1802. local Mesh = Thing[1].Mesh
  1803. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1804. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1805. elseif Thing[2] == "Block2" then
  1806. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1807. local Mesh = Thing[7]
  1808. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1809. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1810. elseif Thing[2] == "Block3" then
  1811. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0)
  1812. local Mesh = Thing[7]
  1813. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1814. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1815. elseif Thing[2] == "Cylinder" then
  1816. local Mesh = Thing[1].Mesh
  1817. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1818. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1819. elseif Thing[2] == "Blood" then
  1820. local Mesh = Thing[7]
  1821. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1822. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1823. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1824. elseif Thing[2] == "Elec" then
  1825. local Mesh = Thing[1].Mesh
  1826. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1827. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1828. elseif Thing[2] == "Disappear" then
  1829. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1830. elseif Thing[2] == "Shatter" then
  1831. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1832. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1833. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1834. Thing[6] = Thing[6] + Thing[5]
  1835. end
  1836. else
  1837. Part.Parent = nil
  1838. table.remove(Effects, e)
  1839. end
  1840. end
  1841. end
  1842. end
  1843. end
  1844. end
  1845. -------------------------------------------------------
  1846. --End Animations And Script--
  1847. -------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement