Advertisement
megaluxe

hentai bot

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