Advertisement
DerpzDeNugget

Educational Purposes Only

Aug 5th, 2018
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 53.43 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. --hi fat
  175. --why did i make this? because I'm BORED.
  176. --also i took the base for this script from memeusv2 so if it's simular you know why
  177. wait()
  178. local Player = game.Players.localPlayer
  179. local Character = Player.Character
  180. local plr = game:service'Players'.LocalPlayer
  181. local Humanoid = Character.Humanoid
  182. local char = plr.Character
  183. local hum = char.Humanoid
  184. local ra = char["Right Arm"]
  185. local la= char["Left Arm"]
  186. local rl= char["Right Leg"]
  187. local ll = char["Left Leg"]
  188. local hed = char.Head
  189. local root = char.HumanoidRootPart
  190. local rootj = root.RootJoint
  191. local tors = char.Torso
  192. local mouse = plr:GetMouse()
  193. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  194. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  195. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  196. local cam = game.Workspace.CurrentCamera
  197. trazx = Instance.new("ParticleEmitter")
  198. c = game.Players.LocalPlayer.Character
  199. local sine=0
  200. Character.Head.face.Texture = "rbxassetid://183225545"
  201.  
  202. -------------------------------------------------------
  203. --Start Good Stuff--
  204. -------------------------------------------------------
  205. CF = CFrame.new
  206. angles = CFrame.Angles
  207. attack = false
  208. timetofly = true
  209. Euler = CFrame.fromEulerAnglesXYZ
  210. Rad = math.rad
  211. IT = Instance.new
  212. BrickC = BrickColor.new
  213. Cos = math.cos
  214. Acos = math.acos
  215. Sin = math.sin
  216. Asin = math.asin
  217. Abs = math.abs
  218. Mrandom = math.random
  219. Floor = math.floor
  220. random = math.random
  221. radian = math.rad
  222. Vec3 = Vector3.new
  223. cFrame = CFrame.new
  224. Euler = CFrame.fromEulerAnglesXYZ
  225. -------------------------------------------------------
  226. --End Good Stuff--
  227. -------------------------------------------------------
  228. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  229. RSH, LSH = nil, nil
  230. RW = Instance.new("Weld")
  231. LW = Instance.new("Weld")
  232. RH = tors["Right Hip"]
  233. LH = tors["Left Hip"]
  234. RSH = tors["Right Shoulder"]
  235. LSH = tors["Left Shoulder"]
  236. RSH.Parent = nil
  237. LSH.Parent = nil
  238. RW.Name = "RW"
  239. RW.Part0 = tors
  240. RW.C0 = CF(1.5, 0.5, 0)
  241. RW.C1 = CF(0, 0.5, 0)
  242. RW.Part1 = ra
  243. RW.Parent = tors
  244. LW.Name = "LW"
  245. LW.Part0 = tors
  246. LW.C0 = CF(-1.5, 0.5, 0)
  247. LW.C1 = CF(0, 0.5, 0)
  248. LW.Part1 = la
  249. LW.Parent = tors
  250. Effects = {}
  251.  
  252. -------------------------------------------------------
  253. --Start HeartBeat--
  254. -------------------------------------------------------
  255. ArtificialHB = Instance.new("BindableEvent", script)
  256. ArtificialHB.Name = "Heartbeat"
  257. script:WaitForChild("Heartbeat")
  258.  
  259. frame = 1 / 60
  260. tf = 0
  261. allowframeloss = false
  262. tossremainder = false
  263.  
  264.  
  265. lastframe = tick()
  266. script.Heartbeat:Fire()
  267.  
  268.  
  269. game:GetService("RunService").Heartbeat:connect(function(s, p)
  270. tf = tf + s
  271. if tf >= frame then
  272. if allowframeloss then
  273. script.Heartbeat:Fire()
  274. lastframe = tick()
  275. else
  276. for i = 1, math.floor(tf / frame) do
  277. script.Heartbeat:Fire()
  278. end
  279. lastframe = tick()
  280. end
  281. if tossremainder then
  282. tf = 0
  283. else
  284. tf = tf - frame * math.floor(tf / frame)
  285. end
  286. end
  287. end)
  288. -------------------------------------------------------
  289. --End HeartBeat--
  290. -------------------------------------------------------
  291.  
  292. function CameraEnshaking(Length, Intensity) --Took Straight from StarGlitcher!
  293. coroutine.resume(coroutine.create(function()
  294. local intensity = 1 * Intensity
  295. local rotM = 0.01 * Intensity
  296. for i = 0, Length, 0.1 do
  297. swait()
  298. intensity = intensity - 0.05 * Intensity / Length
  299. rotM = rotM - 5.0E-4 * Intensity / Length
  300. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  301. cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
  302. end
  303. Humanoid.CameraOffset = Vec3(0, 0, 0)
  304. end))
  305. end
  306.  
  307. local joyemoji = Instance.new('ParticleEmitter', tors)
  308. joyemoji.VelocitySpread = 2000
  309. joyemoji.Lifetime = NumberRange.new(1)
  310. joyemoji.Speed = NumberRange.new(40)
  311. joy= {}
  312. for i=0, 19 do
  313. joy[#joy+ 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  314. end
  315. joyemoji.Size = NumberSequence.new(joy)
  316. joyemoji.Rate = 0
  317. joyemoji.LockedToPart = false
  318. joyemoji.LightEmission = 0
  319. joyemoji.Texture = "rbxassetid://1176402123"
  320. joyemoji.Color = ColorSequence.new(BrickColor.new("Institutional white").Color)
  321.  
  322.  
  323. local LIT = Instance.new('ParticleEmitter', tors)
  324. LIT.VelocitySpread = 2000
  325. LIT.Lifetime = NumberRange.new(1)
  326. LIT.Speed = NumberRange.new(45)
  327. nani= {}
  328. for i=0, 19 do
  329. nani[#nani+ 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  330. end
  331. LIT.Size = NumberSequence.new(nani)
  332. LIT.Rate = 0
  333. LIT.LockedToPart = false
  334. LIT.LightEmission = 0
  335. LIT.Texture = "rbxassetid://1492670151"
  336. LIT.Color = ColorSequence.new(BrickColor.new("Institutional white").Color)
  337.  
  338. local toast = Instance.new('ParticleEmitter', tors)
  339. toast.VelocitySpread = 2000
  340. toast.Lifetime = NumberRange.new(1)
  341. toast.Speed = NumberRange.new(60)
  342. toasterstoasttoast= {}
  343. for i=0, 19 do
  344. toasterstoasttoast[#toasterstoasttoast+ 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  345. end
  346. toast.Size = NumberSequence.new(toasterstoasttoast)
  347. toast.Rate = 0
  348. toast.LockedToPart = false
  349. toast.LightEmission = 0
  350. toast.Texture = "rbxassetid://436096230"
  351. toast.Color = ColorSequence.new(BrickColor.new("Institutional white").Color)
  352.  
  353. local ok = Instance.new('ParticleEmitter', tors)
  354. ok.VelocitySpread = 2000
  355. ok.Lifetime = NumberRange.new(1)
  356. ok.Speed = NumberRange.new(50)
  357. cool= {}
  358. for i=0, 19 do
  359. cool[#cool+ 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  360. end
  361. ok.Size = NumberSequence.new(cool)
  362. ok.Rate = 0
  363. ok.LockedToPart = false
  364. ok.LightEmission = 0
  365. ok.Texture = "rbxassetid://636768448"
  366. ok.Color = ColorSequence.new(BrickColor.new("Institutional white").Color)
  367.  
  368. -------------------------------------------------------
  369. --Start Kyu's shitty stuff--
  370. -------------------------------------------------------
  371.  
  372. function ragdoll(model)
  373. local char = model
  374. torso = char.HumanoidRootPart
  375. torso2 = char.Torso
  376. LW.Parent = nil
  377. RW.Parent = nil
  378. LH.Parent = nil
  379. RH.Parent = nil
  380. if hum ~= nil then
  381. hum.PlatformStand = true
  382. end
  383.  
  384. local Head = char:FindFirstChild("Head")
  385. if Head then
  386. local Neck = Instance.new("Weld")
  387. Neck.Name = "Neck"
  388. Neck.Part0 = torso
  389. Neck.Part1 = Head
  390. Neck.C0 = CFrame.new(0, 1.5, 0)
  391. Neck.C1 = CFrame.new()
  392. Neck.Parent = torso
  393. end
  394. local Limb = char:FindFirstChild("Right Arm")
  395. if Limb then
  396.  
  397. Limb.CFrame = torso.CFrame * CFrame.new(1.5, 0, 0)
  398. local Joint = Instance.new("Glue")
  399. Joint.Name = "RightShoulder"
  400. Joint.Part0 = torso
  401. Joint.Part1 = Limb
  402. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  403. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  404. Joint.Parent = torso
  405.  
  406. local B = Instance.new("Part")
  407. B.TopSurface = 0
  408. B.BottomSurface = 0
  409. B.formFactor = "Symmetric"
  410. B.Size = Vector3.new(1, 1, 1)
  411. B.Transparency = 1
  412. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  413. B.Parent = char
  414. local W = Instance.new("Weld")
  415. W.Part0 = Limb
  416. W.Part1 = B
  417. W.C0 = CFrame.new(0, -0.5, 0)
  418. W.Parent = Limb
  419.  
  420. end
  421. local Limb = char:FindFirstChild("Left Arm")
  422. if Limb then
  423.  
  424. Limb.CFrame = torso.CFrame * CFrame.new(-1.5, 0, 0)
  425. local Joint = Instance.new("Glue")
  426. Joint.Name = "LeftShoulder"
  427. Joint.Part0 = torso
  428. Joint.Part1 = Limb
  429. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  430. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  431. Joint.Parent = torso
  432.  
  433. local B = Instance.new("Part")
  434. B.TopSurface = 0
  435. B.BottomSurface = 0
  436. B.formFactor = "Symmetric"
  437. B.Size = Vector3.new(1, 1, 1)
  438. B.Transparency = 1
  439. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  440. B.Parent = char
  441. local W = Instance.new("Weld")
  442. W.Part0 = Limb
  443. W.Part1 = B
  444. W.C0 = CFrame.new(0, -0.5, 0)
  445. W.Parent = Limb
  446.  
  447. end
  448. local Limb = char:FindFirstChild("Right Leg")
  449. if Limb then
  450.  
  451. Limb.CFrame = torso.CFrame * CFrame.new(0.5, -2, 0)
  452. local Joint = Instance.new("Glue")
  453. Joint.Name = "RightHip"
  454. Joint.Part0 = torso
  455. Joint.Part1 = Limb
  456. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  457. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  458. Joint.Parent = torso
  459.  
  460. local B = Instance.new("Part")
  461. B.TopSurface = 0
  462. B.BottomSurface = 0
  463. B.formFactor = "Symmetric"
  464. B.Size = Vector3.new(1, 1, 1)
  465. B.Transparency = 1
  466. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  467. B.Parent = char
  468. local W = Instance.new("Weld")
  469. W.Part0 = Limb
  470. W.Part1 = B
  471. W.C0 = CFrame.new(0, -0.5, 0)
  472. W.Parent = Limb
  473.  
  474. end
  475. local Limb = char:FindFirstChild("Left Leg")
  476. if Limb then
  477.  
  478. Limb.CFrame = torso.CFrame * CFrame.new(-0.5, -2, 0)
  479. local Joint = Instance.new("Glue")
  480. Joint.Name = "LeftHip"
  481. Joint.Part0 = torso
  482. Joint.Part1 = Limb
  483. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  484. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  485. Joint.Parent = torso
  486.  
  487. local B = Instance.new("Part")
  488. B.TopSurface = 0
  489. B.BottomSurface = 0
  490. B.formFactor = "Symmetric"
  491. B.Size = Vector3.new(1, 1, 1)
  492. B.Transparency = 1
  493. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  494. B.Parent = char
  495. local W = Instance.new("Weld")
  496. W.Part0 = Limb
  497. W.Part1 = B
  498. W.C0 = CFrame.new(0, -0.5, 0)
  499. W.Parent = Limb
  500.  
  501. end
  502. --[
  503. local Bar = Instance.new("Part")
  504. Bar.TopSurface = 0
  505. Bar.BottomSurface = 0
  506. Bar.formFactor = "Symmetric"
  507. Bar.Size = Vector3.new(1, 1, 1)
  508. Bar.Transparency = 1
  509. Bar.CFrame = torso.CFrame * CFrame.new(0, 0.5, 0)
  510. Bar.Parent = char
  511. local Weld = Instance.new("Weld")
  512. Weld.Part0 = torso
  513. Weld.Part1 = Bar
  514. Weld.C0 = CFrame.new(0, 0.5, 0)
  515. Weld.Parent = torso
  516. --]]
  517.  
  518. torso.CFrame = CFrame.new(torso.Position)*CFrame.Angles(math.rad(20),math.rad(torso.Orientation.Y),math.rad(torso.Orientation.Z))
  519.  
  520. end
  521.  
  522. -------------------------------------------------------
  523. --End Kyu's shitty stuff--
  524. -------------------------------------------------------
  525.  
  526. -------------------------------------------------------
  527. --Start Important Functions--
  528. -------------------------------------------------------
  529. function swait(num)
  530. if num == 0 or num == nil then
  531. game:service("RunService").Stepped:wait(0)
  532. else
  533. for i = 0, num do
  534. game:service("RunService").Stepped:wait(0)
  535. end
  536. end
  537. end
  538. function thread(f)
  539. coroutine.resume(coroutine.create(f))
  540. end
  541. function clerp(a, b, t)
  542. local qa = {
  543. QuaternionFromCFrame(a)
  544. }
  545. local qb = {
  546. QuaternionFromCFrame(b)
  547. }
  548. local ax, ay, az = a.x, a.y, a.z
  549. local bx, by, bz = b.x, b.y, b.z
  550. local _t = 1 - t
  551. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  552. end
  553. function QuaternionFromCFrame(cf)
  554. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  555. local trace = m00 + m11 + m22
  556. if trace > 0 then
  557. local s = math.sqrt(1 + trace)
  558. local recip = 0.5 / s
  559. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  560. else
  561. local i = 0
  562. if m00 < m11 then
  563. i = 1
  564. end
  565. if m22 > (i == 0 and m00 or m11) then
  566. i = 2
  567. end
  568. if i == 0 then
  569. local s = math.sqrt(m00 - m11 - m22 + 1)
  570. local recip = 0.5 / s
  571. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  572. elseif i == 1 then
  573. local s = math.sqrt(m11 - m22 - m00 + 1)
  574. local recip = 0.5 / s
  575. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  576. elseif i == 2 then
  577. local s = math.sqrt(m22 - m00 - m11 + 1)
  578. local recip = 0.5 / s
  579. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  580. end
  581. end
  582. end
  583. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  584. local xs, ys, zs = x + x, y + y, z + z
  585. local wx, wy, wz = w * xs, w * ys, w * zs
  586. local xx = x * xs
  587. local xy = x * ys
  588. local xz = x * zs
  589. local yy = y * ys
  590. local yz = y * zs
  591. local zz = z * zs
  592. 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))
  593. end
  594. function QuaternionSlerp(a, b, t)
  595. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  596. local startInterp, finishInterp
  597. if cosTheta >= 1.0E-4 then
  598. if 1 - cosTheta > 1.0E-4 then
  599. local theta = math.acos(cosTheta)
  600. local invSinTheta = 1 / Sin(theta)
  601. startInterp = Sin((1 - t) * theta) * invSinTheta
  602. finishInterp = Sin(t * theta) * invSinTheta
  603. else
  604. startInterp = 1 - t
  605. finishInterp = t
  606. end
  607. elseif 1 + cosTheta > 1.0E-4 then
  608. local theta = math.acos(-cosTheta)
  609. local invSinTheta = 1 / Sin(theta)
  610. startInterp = Sin((t - 1) * theta) * invSinTheta
  611. finishInterp = Sin(t * theta) * invSinTheta
  612. else
  613. startInterp = t - 1
  614. finishInterp = t
  615. end
  616. 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
  617. end
  618. function rayCast(Position, Direction, Range, Ignore)
  619. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  620. end
  621. local RbxUtility = LoadLibrary("RbxUtility")
  622. local Create = RbxUtility.Create
  623.  
  624. -------------------------------------------------------
  625. --Start Damage Function--
  626. -------------------------------------------------------
  627. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  628. if hit.Parent == nil then
  629. return
  630. end
  631. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  632. for _, v in pairs(hit.Parent:children()) do
  633. if v:IsA("Humanoid") then
  634. h = v
  635. end
  636. end
  637. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  638. warn'No R15 allowed'
  639. hit.Parent:FindFirstChild("Head"):BreakJoints()
  640. end
  641.  
  642. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  643. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  644. if hit.Parent.DebounceHit.Value == true then
  645. return
  646. end
  647. end
  648. if insta == true then
  649. hit.Parent:FindFirstChild("Head"):BreakJoints()
  650. end
  651. local c = Create("ObjectValue"){
  652. Name = "creator",
  653. Value = game:service("Players").LocalPlayer,
  654. Parent = h,
  655. }
  656. game:GetService("Debris"):AddItem(c, .5)
  657. if HitSound ~= nil and HitPitch ~= nil then
  658. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  659. end
  660. local Damage = math.random(minim, maxim)
  661. local blocked = false
  662. local block = hit.Parent:findFirstChild("Block")
  663. if block ~= nil then
  664. if block.className == "IntValue" then
  665. if block.Value > 0 then
  666. blocked = true
  667. block.Value = block.Value - 1
  668. print(block.Value)
  669. end
  670. end
  671. end
  672. if blocked == false then
  673. h.Health = h.Health - Damage
  674. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  675. else
  676. h.Health = h.Health - (Damage / 2)
  677. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  678. end
  679. if Type == "Knockdown" then
  680. local hum = hit.Parent.Humanoid
  681. hum.PlatformStand = true
  682. coroutine.resume(coroutine.create(function(HHumanoid)
  683. swait(1)
  684. HHumanoid.PlatformStand = false
  685. end), hum)
  686. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  687. local bodvol = Create("BodyVelocity"){
  688. velocity = angle * knockback,
  689. P = 5000,
  690. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  691. Parent = hit,
  692. }
  693. local rl = Create("BodyAngularVelocity"){
  694. P = 3000,
  695. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  696. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  697. Parent = hit,
  698. }
  699. game:GetService("Debris"):AddItem(bodvol, .5)
  700. game:GetService("Debris"):AddItem(rl, .5)
  701. elseif Type == "Normal" then
  702. local vp = Create("BodyVelocity"){
  703. P = 500,
  704. maxForce = Vector3.new(math.huge, 0, math.huge),
  705. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  706. }
  707. if knockback > 0 then
  708. vp.Parent = hit.Parent.Torso
  709. end
  710. game:GetService("Debris"):AddItem(vp, .5)
  711. elseif Type == "Up" then
  712. local bodyVelocity = Create("BodyVelocity"){
  713. velocity = Vector3.new(0, 20, 0),
  714. P = 5000,
  715. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  716. Parent = hit,
  717. }
  718. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  719. elseif Type == "DarkUp" then
  720. coroutine.resume(coroutine.create(function()
  721. for i = 0, 1, 0.1 do
  722. swait()
  723. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  724. end
  725. end))
  726. local bodyVelocity = Create("BodyVelocity"){
  727. velocity = Vector3.new(0, 20, 0),
  728. P = 5000,
  729. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  730. Parent = hit,
  731. }
  732. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  733. elseif Type == "Snare" then
  734. local bp = Create("BodyPosition"){
  735. P = 2000,
  736. D = 100,
  737. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  738. position = hit.Parent.Torso.Position,
  739. Parent = hit.Parent.Torso,
  740. }
  741. game:GetService("Debris"):AddItem(bp, 1)
  742. elseif Type == "Freeze" then
  743. local BodPos = Create("BodyPosition"){
  744. P = 50000,
  745. D = 1000,
  746. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  747. position = hit.Parent.Torso.Position,
  748. Parent = hit.Parent.Torso,
  749. }
  750. local BodGy = Create("BodyGyro") {
  751. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  752. P = 20e+003,
  753. Parent = hit.Parent.Torso,
  754. cframe = hit.Parent.Torso.CFrame,
  755. }
  756. hit.Parent.Torso.Anchored = true
  757. coroutine.resume(coroutine.create(function(Part)
  758. swait(1.5)
  759. Part.Anchored = false
  760. end), hit.Parent.Torso)
  761. game:GetService("Debris"):AddItem(BodPos, 3)
  762. game:GetService("Debris"):AddItem(BodGy, 3)
  763. end
  764. local debounce = Create("BoolValue"){
  765. Name = "DebounceHit",
  766. Parent = hit.Parent,
  767. Value = true,
  768. }
  769. game:GetService("Debris"):AddItem(debounce, Delay)
  770. c = Create("ObjectValue"){
  771. Name = "creator",
  772. Value = Player,
  773. Parent = h,
  774. }
  775. game:GetService("Debris"):AddItem(c, .5)
  776. end
  777. end
  778. -------------------------------------------------------
  779. --End Damage Function--
  780. -------------------------------------------------------
  781.  
  782. -------------------------------------------------------
  783. --Start Damage Function Customization--
  784. -------------------------------------------------------
  785. function ShowDamage(Pos, Text, Time, Color)
  786. local Rate = (1 / 30)
  787. local Pos = (Pos or Vector3.new(0, 0, 0))
  788. local Text = (Text or "")
  789. local Time = (Time or 2)
  790. local Color = (Color or Color3.new(1, 0, 1))
  791. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  792. EffectPart.Anchored = true
  793. local BillboardGui = Create("BillboardGui"){
  794. Size = UDim2.new(3, 0, 3, 0),
  795. Adornee = EffectPart,
  796. Parent = EffectPart,
  797. }
  798. local TextLabel = Create("TextLabel"){
  799. BackgroundTransparency = 1,
  800. Size = UDim2.new(1, 0, 1, 0),
  801. Text = Text,
  802. Font = "Highway",
  803. TextColor3 = Color,
  804. TextScaled = true,
  805. Parent = BillboardGui,
  806. }
  807. game.Debris:AddItem(EffectPart, (Time))
  808. EffectPart.Parent = game:GetService("Workspace")
  809. delay(0, function()
  810. local Frames = (Time / Rate)
  811. for Frame = 1, Frames do
  812. wait(Rate)
  813. local Percent = (Frame / Frames)
  814. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  815. TextLabel.TextTransparency = Percent
  816. end
  817. if EffectPart and EffectPart.Parent then
  818. EffectPart:Destroy()
  819. end
  820. end)
  821. end
  822. -------------------------------------------------------
  823. --End Damage Function Customization--
  824. -------------------------------------------------------
  825.  
  826. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  827. for _, c in pairs(workspace:children()) do
  828. local hum = c:findFirstChild("Humanoid")
  829. if hum ~= nil then
  830. local head = c:findFirstChild("Head")
  831. if head ~= nil then
  832. local targ = head.Position - Part.Position
  833. local mag = targ.magnitude
  834. if magni >= mag and c.Name ~= plr.Name then
  835. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=231917784", 1.2)
  836. end
  837. end
  838. end
  839. end
  840. end
  841.  
  842.  
  843. CFuncs = {
  844. Part = {
  845. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  846. local Part = Create("Part")({
  847. Parent = Parent,
  848. Reflectance = Reflectance,
  849. Transparency = Transparency,
  850. CanCollide = false,
  851. Locked = true,
  852. BrickColor = BrickColor.new(tostring(BColor)),
  853. Name = Name,
  854. Size = Size,
  855. Material = Material
  856. })
  857. RemoveOutlines(Part)
  858. return Part
  859. end
  860. },
  861. Mesh = {
  862. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  863. local Msh = Create(Mesh)({
  864. Parent = Part,
  865. Offset = OffSet,
  866. Scale = Scale
  867. })
  868. if Mesh == "SpecialMesh" then
  869. Msh.MeshType = MeshType
  870. Msh.MeshId = MeshId
  871. end
  872. return Msh
  873. end
  874. },
  875. Mesh = {
  876. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  877. local Msh = Create(Mesh)({
  878. Parent = Part,
  879. Offset = OffSet,
  880. Scale = Scale
  881. })
  882. if Mesh == "SpecialMesh" then
  883. Msh.MeshType = MeshType
  884. Msh.MeshId = MeshId
  885. end
  886. return Msh
  887. end
  888. },
  889. Weld = {
  890. Create = function(Parent, Part0, Part1, C0, C1)
  891. local Weld = Create("Weld")({
  892. Parent = Parent,
  893. Part0 = Part0,
  894. Part1 = Part1,
  895. C0 = C0,
  896. C1 = C1
  897. })
  898. return Weld
  899. end
  900. },
  901. Sound = {
  902. Create = function(id, par, vol, pit)
  903. coroutine.resume(coroutine.create(function()
  904. local S = Create("Sound")({
  905. Volume = vol,
  906. Pitch = pit or 1,
  907. SoundId = id,
  908. Parent = par or workspace
  909. })
  910. wait()
  911. S:play()
  912. game:GetService("Debris"):AddItem(S, 6)
  913. end))
  914. end
  915. },
  916. ParticleEmitter = {
  917. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  918. local fp = Create("ParticleEmitter")({
  919. Parent = Parent,
  920. Color = ColorSequence.new(Color1, Color2),
  921. LightEmission = LightEmission,
  922. Size = Size,
  923. Texture = Texture,
  924. Transparency = Transparency,
  925. ZOffset = ZOffset,
  926. Acceleration = Accel,
  927. Drag = Drag,
  928. LockedToPart = LockedToPart,
  929. VelocityInheritance = VelocityInheritance,
  930. EmissionDirection = EmissionDirection,
  931. Enabled = Enabled,
  932. Lifetime = LifeTime,
  933. Rate = Rate,
  934. Rotation = Rotation,
  935. RotSpeed = RotSpeed,
  936. Speed = Speed,
  937. VelocitySpread = VelocitySpread
  938. })
  939. return fp
  940. end
  941. }
  942. }
  943. function RemoveOutlines(part)
  944. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  945. end
  946. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  947. local Part = Create("Part")({
  948. formFactor = FormFactor,
  949. Parent = Parent,
  950. Reflectance = Reflectance,
  951. Transparency = Transparency,
  952. CanCollide = false,
  953. Locked = true,
  954. BrickColor = BrickColor.new(tostring(BColor)),
  955. Name = Name,
  956. Size = Size,
  957. Material = Material
  958. })
  959. RemoveOutlines(Part)
  960. return Part
  961. end
  962. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  963. local Msh = Create(Mesh)({
  964. Parent = Part,
  965. Offset = OffSet,
  966. Scale = Scale
  967. })
  968. if Mesh == "SpecialMesh" then
  969. Msh.MeshType = MeshType
  970. Msh.MeshId = MeshId
  971. end
  972. return Msh
  973. end
  974. function CreateWeld(Parent, Part0, Part1, C0, C1)
  975. local Weld = Create("Weld")({
  976. Parent = Parent,
  977. Part0 = Part0,
  978. Part1 = Part1,
  979. C0 = C0,
  980. C1 = C1
  981. })
  982. return Weld
  983. end
  984.  
  985.  
  986. -------------------------------------------------------
  987. --Start Effect Function--
  988. -------------------------------------------------------
  989. EffectModel = Instance.new("Model", char)
  990. Effects = {
  991. Block = {
  992. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  993. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  994. prt.Anchored = true
  995. prt.CFrame = cframe
  996. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  997. game:GetService("Debris"):AddItem(prt, 10)
  998. if Type == 1 or Type == nil then
  999. table.insert(Effects, {
  1000. prt,
  1001. "Block1",
  1002. delay,
  1003. x3,
  1004. y3,
  1005. z3,
  1006. msh
  1007. })
  1008. elseif Type == 2 then
  1009. table.insert(Effects, {
  1010. prt,
  1011. "Block2",
  1012. delay,
  1013. x3,
  1014. y3,
  1015. z3,
  1016. msh
  1017. })
  1018. else
  1019. table.insert(Effects, {
  1020. prt,
  1021. "Block3",
  1022. delay,
  1023. x3,
  1024. y3,
  1025. z3,
  1026. msh
  1027. })
  1028. end
  1029. end
  1030. },
  1031. Sphere = {
  1032. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1033. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1034. prt.Anchored = true
  1035. prt.CFrame = cframe
  1036. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0,0,0), Vector3.new(x1, y1, z1))
  1037. game:GetService("Debris"):AddItem(prt, 10)
  1038. table.insert(Effects, {
  1039. prt,
  1040. "Cylinder",
  1041. delay,
  1042. x3,
  1043. y3,
  1044. z3,
  1045. msh
  1046. })
  1047. end
  1048. },
  1049. Cylinder = {
  1050. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1051. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1052. prt.Anchored = true
  1053. prt.CFrame = cframe
  1054. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1055. game:GetService("Debris"):AddItem(prt, 10)
  1056. table.insert(Effects, {
  1057. prt,
  1058. "Cylinder",
  1059. delay,
  1060. x3,
  1061. y3,
  1062. z3,
  1063. msh
  1064. })
  1065. end
  1066. },
  1067. Wave = {
  1068. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1069. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1070. prt.Anchored = true
  1071. prt.CFrame = cframe
  1072. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  1073. game:GetService("Debris"):AddItem(prt, 10)
  1074. table.insert(Effects, {
  1075. prt,
  1076. "Cylinder",
  1077. delay,
  1078. x3 / 60,
  1079. y3 / 60,
  1080. z3 / 60,
  1081. msh
  1082. })
  1083. end
  1084. },
  1085. Ring = {
  1086. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1087. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1088. prt.Anchored = true
  1089. prt.CFrame = cframe
  1090. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1091. game:GetService("Debris"):AddItem(prt, 10)
  1092. table.insert(Effects, {
  1093. prt,
  1094. "Cylinder",
  1095. delay,
  1096. x3,
  1097. y3,
  1098. z3,
  1099. msh
  1100. })
  1101. end
  1102. },
  1103. Break = {
  1104. Create = function(brickcolor, cframe, x1, y1, z1)
  1105. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1106. prt.Anchored = true
  1107. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1108. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1109. local num = math.random(10, 50) / 1000
  1110. game:GetService("Debris"):AddItem(prt, 10)
  1111. table.insert(Effects, {
  1112. prt,
  1113. "Shatter",
  1114. num,
  1115. prt.CFrame,
  1116. math.random() - math.random(),
  1117. 0,
  1118. math.random(50, 100) / 100
  1119. })
  1120. end
  1121. },
  1122. Spiral = {
  1123. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1124. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1125. prt.Anchored = true
  1126. prt.CFrame = cframe
  1127. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1128. game:GetService("Debris"):AddItem(prt, 10)
  1129. table.insert(Effects, {
  1130. prt,
  1131. "Cylinder",
  1132. delay,
  1133. x3,
  1134. y3,
  1135. z3,
  1136. msh
  1137. })
  1138. end
  1139. },
  1140. Push = {
  1141. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1142. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1143. prt.Anchored = true
  1144. prt.CFrame = cframe
  1145. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1146. game:GetService("Debris"):AddItem(prt, 10)
  1147. table.insert(Effects, {
  1148. prt,
  1149. "Cylinder",
  1150. delay,
  1151. x3,
  1152. y3,
  1153. z3,
  1154. msh
  1155. })
  1156. end
  1157. }
  1158. }
  1159. -------------------------------------------------------
  1160. --End Effect Function--
  1161. -------------------------------------------------------
  1162.  
  1163. function CreateSound(ID, PARENT, VOLUME, PITCH) --Very important.
  1164. local NSound = nil
  1165. coroutine.resume(coroutine.create(function()
  1166. NSound = Instance.new("Sound", PARENT)
  1167. NSound.Volume = VOLUME
  1168. NSound.Pitch = PITCH
  1169. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1170. swait()
  1171. NSound:play()
  1172. game:GetService("Debris"):AddItem(NSound, 10)
  1173. end))
  1174. return NSound
  1175. end
  1176.  
  1177.  
  1178.  
  1179.  
  1180.  
  1181. -------------------------------------------------------
  1182. --End Important Functions--
  1183. -------------------------------------------------------
  1184.  
  1185. NEWS = Instance.new("Sound", tors) --O NO
  1186. NEWS.SoundId = "http://www.roblox.com/asset/?id=1742986731"
  1187. NEWS.Volume = 100
  1188. NEWS.Pitch = 1
  1189. NEWS.Looped = false
  1190. NEWS.TimePosition = 1
  1191.  
  1192. AAAAA = Instance.new("Sound", tors) --aaa
  1193. AAAAA.SoundId = "http://www.roblox.com/asset/?id=0"
  1194. AAAAA.Volume = 10
  1195. AAAAA.Pitch = 1
  1196. AAAAA.Looped = false
  1197. AAAAA.TimePosition = 1
  1198.  
  1199. MERKIO = Instance.new("Sound", tors) --why
  1200. MERKIO.SoundId = "http://www.roblox.com/asset/?id=1003012899"
  1201. MERKIO.Volume = 10
  1202. MERKIO.Pitch = 1
  1203. MERKIO.Looped = false
  1204. MERKIO.TimePosition = 0
  1205.  
  1206. -------------------------------------------------------
  1207. --Start Music Option--
  1208. -------------------------------------------------------
  1209. local Music = Instance.new("Sound",tors)
  1210. Music.Volume = 2.5
  1211. Music.SoundId = "rbxassetid://"
  1212. Music.Looped = true
  1213. Music.Pitch = 1 --Pitcher
  1214. Music:Play()
  1215. -------------------------------------------------------
  1216. --End Music Option--
  1217. -------------------------------------------------------
  1218. --hi fat >:)
  1219. -------------------------------------------------------
  1220. --Start Attacks N Stuff--
  1221. -------------------------------------------------------
  1222.  
  1223. function THEBESTOVERUSEDJOKEEVER() --oh god why did i make this a thing jeezus help me pls
  1224. attack = true
  1225. hum.WalkSpeed = 16
  1226. Character.Head.face.Texture = "rbxassetid://183225545"
  1227. NEWS:Play()
  1228. repeat
  1229. NEWS.Parent = tors
  1230. swait()
  1231. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(math.random(-25,25),math.random(-25,25),math.random(-25,25)), 0.15)
  1232. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.random(-25,25),math.random(-25,25),math.random(-25,25)), 0.3)
  1233. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.001 * Cos(sine / 20)) * RHCF * angles (math.random(-25,25),math.random(-25,25),math.random(-25,25)), 0.15)
  1234. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.001 * Cos(sine / 20)) * LHCF * angles(math.random(-25,25),math.random(-25,25),math.random(-25,25)), 0.15)
  1235. RW.C0 = clerp(RW.C0, CF(1.2, 0.5 + 0.05 * Sin(sine / 30), 0.001 * Cos(sine / 20)) * angles (math.random(-25,25),math.random(-25,25),math.random(-25,25)), 0.1)
  1236. LW.C0 = clerp(LW.C0, CF(-1.2, 0.5 + 0.05 * Sin(sine / 30), 0.001 * Cos(sine / 20)) * angles(math.random(-25,25),math.random(-25,25),math.random(-25,25)), 0.1)
  1237. until NEWS.Playing == false
  1238. game.Players.LocalPlayer.Character:BreakJoints()
  1239. local S = Instance.new("Explosion",workspace)
  1240. S.Position = tors.Position
  1241. S.BlastPressure = 9
  1242. S.BlastRadius = 30
  1243. S.ExplosionType = 0
  1244. attack = false
  1245. hum.WalkSpeed = 16
  1246. Character.Head.face.Texture = "rbxassetid://295197013"
  1247. attack = false
  1248. hum.WalkSpeed = 16
  1249. end
  1250.  
  1251. function sneakonehundred()
  1252. attack = true
  1253. hum.WalkSpeed = 0.03
  1254. Character.Head.face.Texture = "rbxassetid://183225545"
  1255. CreateSound("1542642349", tors, 10, 1.05)
  1256. for i = 0,20,0.1 do
  1257. swait()
  1258. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -2.64 + 0.1) * angles(Rad(90), Rad(0), Rad(0)), 0.15)
  1259. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-110), Rad(0), Rad(0)), 0.4)
  1260. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1261. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1262. RW.C0 = clerp(RW.C0, CF(1.3, 0.9 + 0.05 * Sin(sine / 30), 0.0001 * Cos(sine / 20)) * angles(Rad(1), Rad(0), Rad(-180)), 0.4)
  1263. LW.C0 = clerp(LW.C0, CF(-1.3, 0.8 + 0.05 * Sin(sine / 30), -0.0001 * Cos(sine / 20)) * angles(Rad(1), Rad(0), Rad(180)), 0.4)
  1264. end
  1265. CreateSound("138093919", tors, 10, 1.05)
  1266. wait(0.25)
  1267. Character.Head.face.Texture = "rbxassetid://1223903433"
  1268. for i = 0,7,0.1 do
  1269. swait()
  1270. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -2.64 + 0.1) * angles(Rad(90), Rad(0), Rad(0)), 0.15)
  1271. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-110), Rad(0), Rad(0)), 0.4)
  1272. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1273. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1274. RW.C0 = clerp(RW.C0, CF(1.3, 0.9 + 0.05 * Sin(sine / 30), 0.0001 * Cos(sine / 20)) * angles(Rad(40), Rad(0), Rad(-180)), 0.4)
  1275. LW.C0 = clerp(LW.C0, CF(-1.3, 0.8 + 0.05 * Sin(sine / 30), -0.0001 * Cos(sine / 20)) * angles(Rad(40), Rad(0), Rad(180)), 0.4)
  1276. end
  1277. Character.Head.face.Texture = "rbxassetid://183225545"
  1278. attack = false
  1279. hum.WalkSpeed = 16
  1280. end
  1281.  
  1282. function DANCEFORME()
  1283. attack = true
  1284. Character.Head.face.Texture = "rbxassetid://183225545"
  1285. MERKIO:Play()
  1286. repeat
  1287. for i = 0,0.7,0.2 do
  1288. swait()
  1289. MERKIO.Parent = tors
  1290. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.8)
  1291. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-0), Rad(0), Rad(0)), 0.9)
  1292. RH.C0 = clerp(RH.C0, CF(1.8, -0.1 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.8)
  1293. LH.C0 = clerp(LH.C0, CF(-1.8, -0.1 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.8)
  1294. RW.C0 = clerp(RW.C0, CF(1.5, 0.7 + 0.1 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(115)), 0.77)
  1295. LW.C0 = clerp(LW.C0, CF(-1.5, 0.7 + 0.1 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-115)), 0.67)
  1296. end
  1297. for i = 0,0.7,0.2 do
  1298. swait()
  1299. MERKIO.Parent = tors
  1300. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.8)
  1301. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-0), Rad(0), Rad(0)), 0.9)
  1302. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.8)
  1303. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.8)
  1304. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.7)
  1305. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-90)), 0.7)
  1306. end
  1307. until MERKIO.Playing == false
  1308. MERKIO:Stop()
  1309. Character.Head.face.Texture = "rbxassetid://183225545"
  1310. attack = false
  1311. hum.WalkSpeed = 16
  1312. end
  1313.  
  1314. function takethat()
  1315. attack = true
  1316. hum.WalkSpeed = 0
  1317. CreateSound("1238240145", tors, 10, 1.05)
  1318. for i = 0,8.3,0.1 do
  1319. swait()
  1320. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(90)), 0.7)
  1321. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(30), Rad(0), Rad(0)), 0.7)
  1322. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.7)
  1323. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.7)
  1324. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(-.6), Rad(0)), 0.7)
  1325. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-45), Rad(-.6), Rad(136 - 4.5 * Sin(sine / 20))), 0.7)
  1326. end
  1327. CreateSound("135165859", tors, 10, 1.05)
  1328. for i = 0,6,0.1 do
  1329. swait()
  1330. rootj.C0 = char.Torso.Neck.C0 * CFrame.Angles(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1331. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.85)
  1332. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.7)
  1333. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.7)
  1334. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.7)
  1335. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(-.6), Rad(0)), 0.7)
  1336. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-0), Rad(-.6), Rad(0 - 4.5 * Sin(sine / 20))), 0.7)
  1337. end
  1338. attack = false
  1339. hum.WalkSpeed = 16
  1340. end
  1341. function SCREAM()
  1342. attack = true
  1343. hum.WalkSpeed = 16
  1344. Character.Head.face.Texture = "rbxassetid://183225545"
  1345. local A = math.random(1,13)
  1346. if A == 1 then
  1347. AAAAA.SoundId = "rbxassetid://1213175909"
  1348. AAAAA.TimePosition = 0
  1349. end
  1350. if A == 2 then
  1351. AAAAA.SoundId = "rbxassetid://1439720915"
  1352. AAAAA.TimePosition = 0
  1353. end
  1354. if A == 3 then
  1355. AAAAA.SoundId = "rbxassetid://1213179504"
  1356. AAAAA.TimePosition = 0
  1357. end
  1358. if A == 4 then
  1359. AAAAA.SoundId = "rbxassetid://1129186687"
  1360. AAAAA.TimePosition = 0
  1361. end
  1362. if A == 5 then
  1363. AAAAA.SoundId = "rbxassetid://1163493843"
  1364. AAAAA.TimePosition = 0
  1365. end
  1366. if A == 6 then
  1367. AAAAA.SoundId = "rbxassetid://1163494840"
  1368. AAAAA.TimePosition = 0
  1369. end
  1370. if A == 7 then
  1371. AAAAA.SoundId = "rbxassetid://963936697"
  1372. AAAAA.TimePosition = 0
  1373. end
  1374. if A == 8 then
  1375. AAAAA.SoundId = "rbxassetid://1494176499"
  1376. AAAAA.TimePosition = 1
  1377. end
  1378. if A == 9 then
  1379. AAAAA.SoundId = "rbxassetid://1591656314"
  1380. AAAAA.TimePosition = 0
  1381. end
  1382. if A == 10 then
  1383. AAAAA.SoundId = "rbxassetid://130767645"
  1384. AAAAA.TimePosition = 0
  1385. end
  1386. if A == 11 then
  1387. AAAAA.SoundId = "rbxassetid://172818886"
  1388. AAAAA.TimePosition = 0
  1389. end
  1390. if A == 12 then
  1391. AAAAA.SoundId = "rbxassetid://1402021995"
  1392. AAAAA.TimePosition = 0
  1393. end
  1394. if A == 13 then
  1395. AAAAA.SoundId = "rbxassetid://130766856"
  1396. AAAAA.TimePosition = 0
  1397. end
  1398. AAAAA:Play()
  1399. repeat
  1400. swait()
  1401. AAAAA.Parent = tors
  1402. rootj.C0 = char.Torso.Neck.C0 * CFrame.Angles(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1403. until AAAAA.Playing == false
  1404. hum.WalkSpeed = 16
  1405. attack = false
  1406. hum.WalkSpeed = 16
  1407. end
  1408.  
  1409. MoreTaunts = false
  1410. mouse.KeyDown:connect(function(key)
  1411. if attack == false then
  1412. if MoreTaunts == false then
  1413. if key == 'q' then
  1414. THEBESTOVERUSEDJOKEEVER()
  1415. elseif key == 'e' then
  1416. SCREAM()
  1417. elseif key == 'r' then
  1418. sneakonehundred()
  1419. elseif key == 't' then
  1420. DANCEFORME()
  1421. elseif key == 'y' then
  1422. takethat()
  1423. end
  1424. end
  1425. end
  1426. end)
  1427.  
  1428. -------------------------------------------------------
  1429. --End Attacks N Stuff--
  1430. -------------------------------------------------------
  1431.  
  1432.  
  1433.  
  1434.  
  1435. while jumping do
  1436. Humanoid.Jump = true
  1437. wait(0.9)
  1438. end
  1439.  
  1440.  
  1441.  
  1442.  
  1443. -------------------------------------------------------
  1444. --Start Animations--
  1445. -------------------------------------------------------
  1446. local equipped = false
  1447. local idle = 0
  1448. local change = 1
  1449. local val = 0
  1450. local toim = 0
  1451. local idleanim = 0.4
  1452. hum.Animator.Parent = nil
  1453. while true do
  1454. swait()
  1455. sine = sine + change
  1456. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1457. local velderp = root.Velocity.y
  1458. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4, char)
  1459. if equipped == true or equipped == false then
  1460. if attack == false then
  1461. idle = idle + 1
  1462. else
  1463. idle = 0
  1464. end
  1465. if 1 < root.Velocity.y and hitfloor == nil then
  1466. Anim = "Jump"
  1467. if attack == false then
  1468. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(60)), 0.15)
  1469. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-0), Rad(0), Rad(0)), 0.3)
  1470. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1471. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1472. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.1)
  1473. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-90)), 0.1)
  1474. end
  1475. elseif -1 > root.Velocity.y and hitfloor == nil then
  1476. Anim = "Fall"
  1477. if attack == false then
  1478. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(180), Rad(0), Rad(0)), 0.15)
  1479. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-0), Rad(0), Rad(0)), 0.3)
  1480. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1481. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1482. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.1)
  1483. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-90)), 0.1)
  1484. end
  1485. elseif torvel < 1 and hitfloor ~= nil then
  1486. Anim = "Idle"
  1487. change = 1
  1488. if attack == false then
  1489. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  1490. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-0), Rad(0), Rad(0)), 0.3)
  1491. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1492. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1493. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.1)
  1494. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-90)), 0.1)
  1495. end
  1496. elseif tors.Velocity.magnitude < 50 and hitfloor ~= nil then
  1497. Anim = "Walk"
  1498. change = 1
  1499. if attack == false then
  1500. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0-255.45), Rad(0), Rad(0)), 0.15)
  1501. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-0), Rad(0), Rad(0)), 0.3)
  1502. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1503. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1504. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.1)
  1505. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-90)), 0.1)
  1506. end
  1507. end
  1508. end
  1509. if 0 < #Effects then
  1510. for e = 1, #Effects do
  1511. if Effects[e] ~= nil then
  1512. local Thing = Effects[e]
  1513. if Thing ~= nil then
  1514. local Part = Thing[1]
  1515. local Mode = Thing[2]
  1516. local Delay = Thing[3]
  1517. local IncX = Thing[4]
  1518. local IncY = Thing[5]
  1519. local IncZ = Thing[6]
  1520. if 1 >= Thing[1].Transparency then
  1521. if Thing[2] == "Block1" then
  1522. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1523. local Mesh = Thing[1].Mesh
  1524. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1525. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1526. elseif Thing[2] == "Block2" then
  1527. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1528. local Mesh = Thing[7]
  1529. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1530. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1531. elseif Thing[2] == "Block3" then
  1532. 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)
  1533. local Mesh = Thing[7]
  1534. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1535. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1536. elseif Thing[2] == "Cylinder" then
  1537. local Mesh = Thing[1].Mesh
  1538. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1539. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1540. elseif Thing[2] == "Blood" then
  1541. local Mesh = Thing[7]
  1542. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1543. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1544. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1545. elseif Thing[2] == "Elec" then
  1546. local Mesh = Thing[1].Mesh
  1547. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1548. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1549. elseif Thing[2] == "Disappear" then
  1550. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1551. elseif Thing[2] == "Shatter" then
  1552. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1553. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1554. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1555. Thing[6] = Thing[6] + Thing[5]
  1556. end
  1557. else
  1558. Part.Parent = nil
  1559. table.remove(Effects, e)
  1560. end
  1561. end
  1562. end
  1563. end
  1564. end
  1565. end
  1566. -------------------------------------------------------
  1567. --End Animations And Script--
  1568. -------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement