bmrx13

covefe

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