Advertisement
doryna2281337

Untitled

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