Advertisement
HenloMyDude

snow smol

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