Advertisement
HenloMyDude

nani

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