Christoffer07700Extr

My CoffeeCopter Edit

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