Advertisement
HenloMyDude

smolcreaturev2

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