Advertisement
End_Wolf

Untitled

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