Advertisement
gecksad

Untitled

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