Advertisement
DerpzDeNugget

Help me

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