Advertisement
EnderPlayBro

Untitled

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