Advertisement
Guest User

Untitled

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