Advertisement
WaverlyCoal

Dahnoob's Bat FE

Jul 22nd, 2018
27,619
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 73.53 KB | None | 0 0
  1. print("Making ServerScript")
  2. local remote = NS([[plr = owner
  3. keyingup = function() end
  4. spec = function() end
  5. cliham = function() end
  6. repeat
  7. wait(0.4)
  8. until plr.Character
  9. chr = plr.Character
  10. human = chr:FindFirstChild("Humanoid")
  11. selected = false
  12. equipd = false
  13. tors = chr.Torso
  14. rarm = chr["Right Arm"]
  15. larm = chr["Left Arm"]
  16. rleg = chr["Right Leg"]
  17. lleg = chr["Left Leg"]
  18. hrp = chr.HumanoidRootPart
  19. hed = chr.Head
  20. anim = human.Animator
  21. activu = false
  22. ragged = false
  23. batting = false
  24. Heartbeat = Instance.new("BindableEvent")
  25. Heartbeat.Name = "Heartbeat"
  26. Heartbeat.Parent = script
  27. frame = 0.03333333333333333
  28. tf = 0
  29. game:GetService("RunService").Heartbeat:connect(function(s, p)
  30. tf = tf + s
  31. if tf >= frame then
  32. for i = 1, math.floor(tf / frame) do
  33. Heartbeat:Fire()
  34. end
  35. tf = tf - frame * math.floor(tf / frame)
  36. end
  37. end)
  38. function swait(num)
  39. if num == 0 or num == nil then
  40. Heartbeat.Event:wait()
  41. else
  42. for i = 1, num do
  43. Heartbeat.Event:wait()
  44. end
  45. end
  46. end
  47. modz = Instance.new("Model")
  48. modz.Name = "efx"
  49. modz.Parent = chr
  50. RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  51. RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  52. LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  53. LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  54. RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  55. RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  56. LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  57. RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  58. LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  59. NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  60. NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  61. RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  62. local nscale = Instance.new("NumberValue")
  63. nscale.Value = 1
  64. nscale.Parent = nil
  65. RightShoulderC0 = CFrame.new(1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  66. RightShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  67. LeftShoulderC0 = CFrame.new(-1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  68. LeftShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  69. RightHipC0 = CFrame.new(0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  70. RightHipC1 = CFrame.new(0, 1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  71. LeftHipC0 = CFrame.new(-0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  72. LeftHipC1 = CFrame.new(0 * nscale.Value, 1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  73. RootJointC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  74. RootJointC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  75. NeckC0 = CFrame.new(0, 1 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  76. NeckC1 = CFrame.new(0, -0.5 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  77. nscale.Changed:connect(function()
  78. RightShoulderC0 = CFrame.new(1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  79. RightShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  80. LeftShoulderC0 = CFrame.new(-1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  81. LeftShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  82. RightHipC0 = CFrame.new(0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  83. RightHipC1 = CFrame.new(0, 1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  84. LeftHipC0 = CFrame.new(-0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  85. LeftHipC1 = CFrame.new(0 * nscale.Value, 1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  86. RootJointC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  87. RootJointC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  88. NeckC0 = CFrame.new(0, 1 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  89. NeckC1 = CFrame.new(0, -0.5 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  90. end)
  91. RS = tors:FindFirstChild("Right Shoulder")
  92. LS = tors:FindFirstChild("Left Shoulder")
  93. RH = tors:FindFirstChild("Right Hip")
  94. LH = tors:FindFirstChild("Left Hip")
  95. RJ = hrp:FindFirstChild("RootJoint")
  96. N = tors:FindFirstChild("Neck")
  97. cf = CFrame.new
  98. ang = CFrame.Angles
  99. rd = math.rad
  100. rd2 = math.random
  101. function nooutline(p)
  102. p.TopSurface, p.BottomSurface, p.LeftSurface, p.RightSurface, p.FrontSurface, p.BottomSurface = 10, 10, 10, 10, 10, 10
  103. end
  104. function makepart(color, name, reflec, trans, mater, parnt, cfram)
  105. local port = Instance.new("Part")
  106. port.BrickColor = BrickColor.new(color)
  107. port.Name = name
  108. port.Transparency = trans
  109. nooutline(port)
  110. port.Reflectance = reflec
  111. port.Material = mater
  112. port.Anchored = false
  113. port.CanCollide = false
  114. port.Locked = true
  115. port.Size = Vector3.new(0.2, 0.2, 0.2)
  116. port.Parent = parnt
  117. return port
  118. end
  119. function makemesh(meshtype, scale, meshid, parent)
  120. local mes = Instance.new("SpecialMesh")
  121. mes.MeshType = meshtype
  122. mes.Scale = scale
  123. if meshtype == "FileMesh" then
  124. mes.MeshId = meshid
  125. end
  126. mes.Parent = parent
  127. return mes
  128. end
  129. function makeweld(parent, p0, p1, c0, c1)
  130. local wel = Instance.new("Weld")
  131. wel.Part0 = p0
  132. wel.Part1 = p1
  133. wel.C0 = c0
  134. if c1 ~= nil then
  135. wel.C1 = c1
  136. end
  137. wel.Parent = parent
  138. return wel
  139. end
  140. local lauf1 = Instance.new("Sound")
  141. lauf1.SoundId = "rbxassetid://137473066"
  142. lauf1.Volume = 1.5
  143. lauf1.Pitch = 2
  144. lauf1.Parent = hrp
  145. function lerpz(joint, prop, cfrmz, alp)
  146. joint[prop] = joint[prop]:lerp(cfrmz, alp)
  147. end
  148. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  149. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  150. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  151. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  152. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  153. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  154. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  155. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  156. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  157. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  158. function resetlerp()
  159. RJ.C0 = RJC0
  160. RJ.C1 = RJC1
  161. N.C0 = NC0
  162. N.C1 = NC1
  163. RS.C0 = RSC0
  164. RS.C1 = RSC1
  165. LS.C0 = LSC0
  166. LS.C1 = LSC1
  167. RH.C0 = RHC0
  168. RH.C1 = RHC1
  169. LH.C0 = LHC0
  170. LH.C1 = LHC1
  171. end
  172. function test()
  173. if selected == false or activu == true then
  174. return
  175. end
  176. if ragged == false then
  177. ragged = true
  178. human.PlatformStand = true
  179. if rarm and tors:FindFirstChild("Right Shoulder") then
  180. tors:FindFirstChild("Right Shoulder"):Destroy()
  181. makegloo(tors, RightShoulderC0, RightShoulderC1, tors, rarm, "Right Shoulder")
  182. maketouchy(rarm, rarm, CFrame.new(0, 0.5, 0))
  183. end
  184. if larm and tors:FindFirstChild("Left Shoulder") then
  185. tors:FindFirstChild("Left Shoulder"):Destroy()
  186. makegloo(tors, LeftShoulderC0, LeftShoulderC1, tors, larm, "Left Shoulder")
  187. maketouchy(larm, larm, CFrame.new(0, 0.5, 0))
  188. end
  189. if rleg and tors:FindFirstChild("Right Hip") then
  190. tors:FindFirstChild("Right Hip"):Destroy()
  191. makegloo(tors, RightHipC0, RightHipC1, tors, rleg, "Right Hip")
  192. maketouchy(rleg, rleg, CFrame.new(0, 0.5, 0))
  193. end
  194. if lleg and tors:FindFirstChild("Left Hip") then
  195. tors:FindFirstChild("Left Hip"):Destroy()
  196. makegloo(tors, LeftHipC0, LeftHipC1, tors, lleg, "Left Hip")
  197. maketouchy(lleg, lleg, CFrame.new(0, 0.5, 0))
  198. end
  199. elseif ragged == true then
  200. ragged = false
  201. human.Jump = true
  202. if rarm and tors:FindFirstChild("Right Shoulder") then
  203. tors:FindFirstChild("Right Shoulder"):Destroy()
  204. makejoint(tors, RSC0, RSC1, tors, rarm, "Right Shoulder")
  205. rarm:FindFirstChild("touchy"):Destroy()
  206. end
  207. if larm and tors:FindFirstChild("Left Shoulder") then
  208. tors:FindFirstChild("Left Shoulder"):Destroy()
  209. makejoint(tors, LSC0, LSC1, tors, larm, "Left Shoulder")
  210. larm:FindFirstChild("touchy"):Destroy()
  211. end
  212. if rleg and tors:FindFirstChild("Right Hip") then
  213. tors:FindFirstChild("Right Hip"):Destroy()
  214. makejoint(tors, RHC0, RHC1, tors, rleg, "Right Hip")
  215. rleg:FindFirstChild("touchy"):Destroy()
  216. end
  217. if lleg and tors:FindFirstChild("Left Hip") then
  218. tors:FindFirstChild("Left Hip"):Destroy()
  219. makejoint(tors, LHC0, LHC1, tors, lleg, "Left Hip")
  220. lleg:FindFirstChild("touchy"):Destroy()
  221. end
  222. RS = tors:FindFirstChild("Right Shoulder")
  223. LS = tors:FindFirstChild("Left Shoulder")
  224. RH = tors:FindFirstChild("Right Hip")
  225. LH = tors:FindFirstChild("Left Hip")
  226. RJ = hrp:FindFirstChild("RootJoint")
  227. N = tors:FindFirstChild("Neck")
  228. end
  229. end
  230. function makegloo(paren, co, ci, parto, parti, nam)
  231. local gloo = Instance.new("Glue")
  232. gloo.Name = nam
  233. gloo.C0 = co
  234. gloo.C1 = ci
  235. gloo.Part0 = parto
  236. gloo.Part1 = parti
  237. gloo.Parent = paren
  238. end
  239. function makejoint(paren, co, ci, parto, parti, nam)
  240. local gloo = Instance.new("Motor6D")
  241. gloo.Name = nam
  242. gloo.C0 = co
  243. gloo.C1 = ci
  244. gloo.Part0 = parto
  245. gloo.Part1 = parti
  246. gloo.Parent = paren
  247. end
  248. function maketouchy(parent, limb, cframe)
  249. local pr = Instance.new("Part")
  250. pr.Name = "touchy"
  251. pr.Size = Vector3.new(1 * nscale.Value, 1 * nscale.Value, 1 * nscale.Value)
  252. pr.Transparency = 1
  253. pr.CustomPhysicalProperties = PhysicalProperties.new(0.55, 0.3, 0.5)
  254. pr.CanCollide = true
  255. pr.Anchored = false
  256. pr.Parent = parent
  257. local w = Instance.new("Weld")
  258. w.Part0 = pr
  259. w.Part1 = limb
  260. w.C0 = cframe
  261. w.Parent = pr
  262. end
  263. local dipperhat = chr:FindFirstChild("DXD_DipperHat")
  264. local dipperrot
  265. if dipperhat then
  266. dipperrot = dipperhat.Handle.HatAttachment.Rotation
  267. end
  268. function bat()
  269. if selected == false or activu == true then
  270. return
  271. end
  272. if batting == false then
  273. batting = true
  274. do
  275. local bmod = Instance.new("Model")
  276. bmod.Name = "bmodel"
  277. bmod.Parent = chr
  278. local hnd = makepart("Br. yellowish green", "hnd", 0, 0, "SmoothPlastic", bmod, rarm.CFrame)
  279. local hmes = makemesh("Head", Vector3.new(2, 9, 2), nil, hnd)
  280. local hwel = makeweld(hnd, hnd, rarm, ang(rd(90), rd(0), rd(0)) * cf(0, 1, 0), nil)
  281. local pt1 = makepart("Bright yellow", "pt1", 0, 0, "SmoothPlastic", bmod, rarm.CFrame)
  282. local p1m = makemesh("Head", Vector3.new(2.5, 2.5, 2.5), nil, pt1)
  283. local p1w = makeweld(pt1, pt1, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, 1, 0), nil)
  284. local pt2 = makepart("Bright yellow", "pt2", 0, 0, "SmoothPlastic", bmod, rarm.CFrame)
  285. local p2m = makemesh("FileMesh", Vector3.new(0.375, 0.375, 0.375), "rbxassetid://250640098", pt2)
  286. p2m.TextureId = "rbxassetid://250639536"
  287. local p2w = makeweld(pt2, pt2, hnd, ang(rd(180), rd(180), rd(0)) * cf(0, 1.225, 0.075), nil)
  288. local pt3 = makepart("Bright yellow", "pt3", 0, 0, "SmoothPlastic", bmod, rarm.CFrame)
  289. local p3m = makemesh("Head", Vector3.new(2.5, 2.5, 2.5), nil, pt3)
  290. local p3w = makeweld(pt3, pt3, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, -1, 0), nil)
  291. local pt4 = makepart("Bright yellow", "pt4", 0, 0, "SmoothPlastic", bmod, rarm.CFrame)
  292. local p4m = makemesh("FileMesh", Vector3.new(0.025, 0.025, 0.025), "rbxassetid://703458158", pt4)
  293. local p4w = makeweld(pt4, pt4, hnd, ang(rd(180), rd(0), rd(0)) * cf(0, -1.25, 0), nil)
  294. local pt5 = makepart("Bright yellow", "pt5", 0, 0, "SmoothPlastic", bmod, rarm.CFrame)
  295. local p5m = makemesh("Cylinder", Vector3.new(21.5, 6.25, 6.25), nil, pt5)
  296. local p5w = makeweld(pt5, pt5, hnd, ang(rd(0), rd(0), rd(90)) * cf(0, -4.025, 0), nil)
  297. local pt6 = makepart("Bright yellow", "pt6", 0, 0, "SmoothPlastic", bmod, rarm.CFrame)
  298. local p6m = makemesh("Head", Vector3.new(6.5, 6.5, 6.5), nil, pt6)
  299. local p6w = makeweld(pt6, pt6, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, -6.05, 0), nil)
  300. local pt7 = makepart("Bright yellow", "pt7", 0, 0, "SmoothPlastic", bmod, rarm.CFrame)
  301. local p7m = makemesh("FileMesh", Vector3.new(0.95, 0.95, 0.95), "rbxassetid://272942659", pt7)
  302. p7m.TextureId = "rbxassetid://272942750"
  303. local p7w = makeweld(pt7, pt7, hnd, ang(rd(0), rd(90), rd(0)) * cf(0, -6.2, 0), nil)
  304. local swingwoo = Instance.new("Sound")
  305. swingwoo.SoundId = "rbxassetid://10209640"
  306. swingwoo.Pitch = rd2(10, 11) / 10
  307. swingwoo.Name = "sweae"
  308. swingwoo.Volume = 1
  309. swingwoo.Parent = hrp
  310. clibat = function()
  311. if selected == false or activu == true or ragged == true then
  312. return
  313. end
  314. activu = true
  315. for _ = 1, 5 do
  316. swait()
  317. lerpz(RJ, "C0", RJC0 * cf(0, 0.5, 0) * ang(rd(-20), rd(10), rd(-40)), 0.7)
  318. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  319. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(-20), rd(179)), 0.7)
  320. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  321. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-20), rd(20), rd(30)), 0.7)
  322. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  323. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7)
  324. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  325. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-110)), 0.7)
  326. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  327. end
  328. local bon = Instance.new("Sound")
  329. bon.SoundId = "rbxassetid://135436482"
  330. bon.Pitch = rd2(10, 12) / 10
  331. bon.Volume = 1
  332. bon.Parent = hrp
  333. game.Debris:AddItem(bon, 1)
  334. bon:Play()
  335. swingwoo:Play()
  336. for X = 1, 5 do
  337. swait()
  338. if X > 1 then
  339. hito(pt5, 5, 10, 0.2, hrp.CFrame.lookVector * 25, Vector3.new(0, rd2(-5, 5), rd2(-40, 40)))
  340. end
  341. lerpz(RJ, "C0", RJC0 * cf(0, -0.5, 0) * ang(rd(60), rd(-10), rd(30)), 0.7)
  342. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  343. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(20), rd(40)), 0.7)
  344. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  345. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-70), rd(20), rd(30)), 0.7)
  346. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  347. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(20), rd(-40), rd(80)), 0.7)
  348. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  349. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(60)), 0.7)
  350. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  351. end
  352. activu = false
  353. end
  354. spec = function(keya)
  355. if selected == false or activu == true or ragged == true then
  356. return
  357. end
  358. if keya == "e" then
  359. activu = true
  360. local speed = human.WalkSpeed
  361. human.WalkSpeed = 0
  362. human:SetStateEnabled(3, false)
  363. local function expa()
  364. local sond = Instance.new("Sound")
  365. sond.Volume = 1.25
  366. sond.Pitch = 1
  367. sond.EmitterSize = 15
  368. sond.SoundId = "rbxassetid://315152748"
  369. sond.Parent = pt6
  370. sond:Play()
  371. for _ = 1, 3 do
  372. swait()
  373. hmes.Scale = hmes.Scale:lerp(Vector3.new(6, 27, 6), 0.7)
  374. p1m.Scale = p1m.Scale:lerp(Vector3.new(7.5, 7.5, 7.5), 0.7)
  375. p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 3, 0), 0.7)
  376. p2m.Scale = p2m.Scale:lerp(Vector3.new(1.125, 1.125, 1.125), 0.7)
  377. p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 3.6750000000000003, 0.22499999999999998), 0.7)
  378. p3m.Scale = p3m.Scale:lerp(Vector3.new(7.5, 7.5, 7.5), 0.7)
  379. p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -3, 0), 0.7)
  380. p4m.Scale = p4m.Scale:lerp(Vector3.new(0.07500000000000001, 0.07500000000000001, 0.07500000000000001), 0.7)
  381. p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -3.75, 0), 0.7)
  382. p5m.Scale = p5m.Scale:lerp(Vector3.new(64.5, 18.75, 18.75), 0.7)
  383. p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -12.075000000000001, 0), 0.7)
  384. p6m.Scale = p6m.Scale:lerp(Vector3.new(19.5, 19.5, 19.5), 0.7)
  385. p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -18.15, 0), 0.7)
  386. p7m.Scale = p7m.Scale:lerp(Vector3.new(2.8499999999999996, 2.8499999999999996, 2.8499999999999996), 0.7)
  387. p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -18.6, 0), 0.7)
  388. end
  389. for _ = 1, 5 do
  390. swait()
  391. hmes.Scale = hmes.Scale:lerp(Vector3.new(4, 18, 4), 0.7)
  392. p1m.Scale = p1m.Scale:lerp(Vector3.new(5, 5, 5), 0.7)
  393. p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 2, 0), 0.7)
  394. p2m.Scale = p2m.Scale:lerp(Vector3.new(0.75, 0.75, 0.75), 0.7)
  395. p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 2.45, 0.15), 0.7)
  396. p3m.Scale = p3m.Scale:lerp(Vector3.new(5, 5, 5), 0.7)
  397. p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -2, 0), 0.7)
  398. p4m.Scale = p4m.Scale:lerp(Vector3.new(0.05, 0.05, 0.05), 0.7)
  399. p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -2.5, 0), 0.7)
  400. p5m.Scale = p5m.Scale:lerp(Vector3.new(43, 12.5, 12.5), 0.7)
  401. p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -8.05, 0), 0.7)
  402. p6m.Scale = p6m.Scale:lerp(Vector3.new(13, 13, 13), 0.7)
  403. p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -12.1, 0), 0.7)
  404. p7m.Scale = p7m.Scale:lerp(Vector3.new(1.9, 1.9, 1.9), 0.7)
  405. p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -12.4, 0), 0.7)
  406. end
  407. sond.Pitch = 0.75
  408. sond:Play()
  409. for _ = 1, 3 do
  410. swait()
  411. hmes.Scale = hmes.Scale:lerp(Vector3.new(12, 54, 12), 0.7)
  412. p1m.Scale = p1m.Scale:lerp(Vector3.new(15, 15, 15), 0.7)
  413. p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 6, 0), 0.7)
  414. p2m.Scale = p2m.Scale:lerp(Vector3.new(2.25, 2.25, 2.25), 0.7)
  415. p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 7.3500000000000005, 0.44999999999999996), 0.7)
  416. p3m.Scale = p3m.Scale:lerp(Vector3.new(15, 15, 15), 0.7)
  417. p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -6, 0), 0.7)
  418. p4m.Scale = p4m.Scale:lerp(Vector3.new(0.15000000000000002, 0.15000000000000002, 0.15000000000000002), 0.7)
  419. p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -7.5, 0), 0.7)
  420. p5m.Scale = p5m.Scale:lerp(Vector3.new(129, 37.5, 37.5), 0.7)
  421. p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -24.150000000000002, 0), 0.7)
  422. p6m.Scale = p6m.Scale:lerp(Vector3.new(39, 39, 39), 0.7)
  423. p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -36.3, 0), 0.7)
  424. p7m.Scale = p7m.Scale:lerp(Vector3.new(5.699999999999999, 5.699999999999999, 5.699999999999999), 0.7)
  425. p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -37.2, 0), 0.7)
  426. end
  427. for _ = 1, 5 do
  428. swait()
  429. hmes.Scale = hmes.Scale:lerp(Vector3.new(8, 36, 8), 0.7)
  430. p1m.Scale = p1m.Scale:lerp(Vector3.new(10, 10, 10), 0.7)
  431. p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 4, 0), 0.7)
  432. p2m.Scale = p2m.Scale:lerp(Vector3.new(1.5, 1.5, 1.5), 0.7)
  433. p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 4.9, 0.3), 0.7)
  434. p3m.Scale = p3m.Scale:lerp(Vector3.new(10, 10, 10), 0.7)
  435. p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -4, 0), 0.7)
  436. p4m.Scale = p4m.Scale:lerp(Vector3.new(0.1, 0.1, 0.1), 0.7)
  437. p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -5, 0), 0.7)
  438. p5m.Scale = p5m.Scale:lerp(Vector3.new(86, 25, 25), 0.7)
  439. p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -16.1, 0), 0.7)
  440. p6m.Scale = p6m.Scale:lerp(Vector3.new(26, 26, 26), 0.7)
  441. p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -24.2, 0), 0.7)
  442. p7m.Scale = p7m.Scale:lerp(Vector3.new(3.8, 3.8, 3.8), 0.7)
  443. p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -24.8, 0), 0.7)
  444. end
  445. sond.Pitch = 0.4
  446. sond:Play()
  447. game.Debris:AddItem(sond, 2)
  448. for _ = 1, 3 do
  449. swait()
  450. hmes.Scale = hmes.Scale:lerp(Vector3.new(18, 81, 18), 0.7)
  451. p1m.Scale = p1m.Scale:lerp(Vector3.new(22.5, 22.5, 22.5), 0.7)
  452. p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 9, 0), 0.7)
  453. p2m.Scale = p2m.Scale:lerp(Vector3.new(3.375, 3.375, 3.375), 0.7)
  454. p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 11.025, 0.6749999999999999), 0.7)
  455. p3m.Scale = p3m.Scale:lerp(Vector3.new(22.5, 22.5, 22.5), 0.7)
  456. p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -9, 0), 0.7)
  457. p4m.Scale = p4m.Scale:lerp(Vector3.new(0.225, 0.225, 0.225), 0.7)
  458. p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -11.25, 0), 0.7)
  459. p5m.Scale = p5m.Scale:lerp(Vector3.new(193.5, 56.25, 56.25), 0.7)
  460. p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -36.225, 0), 0.7)
  461. p6m.Scale = p6m.Scale:lerp(Vector3.new(58.5, 58.5, 58.5), 0.7)
  462. p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -54.449999999999996, 0), 0.7)
  463. p7m.Scale = p7m.Scale:lerp(Vector3.new(5.699999999999999, 8.549999999999999, 8.549999999999999), 0.7)
  464. p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -55.800000000000004, 0), 0.7)
  465. end
  466. for _ = 1, 5 do
  467. swait()
  468. hmes.Scale = hmes.Scale:lerp(Vector3.new(14, 63, 14), 0.7)
  469. p1m.Scale = p1m.Scale:lerp(Vector3.new(17.5, 17.5, 17.5), 0.7)
  470. p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 7, 0), 0.7)
  471. p2m.Scale = p2m.Scale:lerp(Vector3.new(2.625, 2.625, 2.625), 0.7)
  472. p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 8.575000000000001, 0.525), 0.7)
  473. p3m.Scale = p3m.Scale:lerp(Vector3.new(17.5, 17.5, 17.5), 0.7)
  474. p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -7, 0), 0.7)
  475. p4m.Scale = p4m.Scale:lerp(Vector3.new(0.17500000000000002, 0.17500000000000002, 0.17500000000000002), 0.7)
  476. p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -8.75, 0), 0.7)
  477. p5m.Scale = p5m.Scale:lerp(Vector3.new(150.5, 43.75, 43.75), 0.7)
  478. p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -28.175000000000004, 0), 0.7)
  479. p6m.Scale = p6m.Scale:lerp(Vector3.new(45.5, 45.5, 45.5), 0.7)
  480. p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -42.35, 0), 0.7)
  481. p7m.Scale = p7m.Scale:lerp(Vector3.new(6.6499999999999995, 6.6499999999999995, 6.6499999999999995), 0.7)
  482. p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -43.4, 0), 0.7)
  483. end
  484. end
  485. for _ = 1, 9 do
  486. swait()
  487. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(0)), 0.5)
  488. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.5)
  489. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-20), rd(0), rd(-10)), 0.5)
  490. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  491. lerpz(LS, "C0", LSC0 * cf(0, 0.2, -0.2) * ang(rd(70), rd(-60), rd(-100)), 0.5)
  492. if dipperhat then
  493. dipperhat.Handle.HatAttachment.Rotation = dipperhat.Handle.HatAttachment.Rotation:lerp(dipperrot + Vector3.new(0, 0, 0), 0.3)
  494. end
  495. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  496. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-10)), 0.5)
  497. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  498. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-10), rd(-10)), 0.5)
  499. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  500. end
  501. for _ = 1, 9 do
  502. swait()
  503. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(0)), 0.5)
  504. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.5)
  505. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-20), rd(0), rd(-10)), 0.5)
  506. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  507. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(35), rd(-50), rd(-100)), 0.3)
  508. if dipperhat then
  509. dipperhat.Handle.HatAttachment.Rotation = dipperhat.Handle.HatAttachment.Rotation:lerp(dipperrot + Vector3.new(15, 0, 0), 0.3)
  510. end
  511. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  512. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-10)), 0.5)
  513. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  514. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-10), rd(-10)), 0.5)
  515. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  516. end
  517. for _ = 1, 30 do
  518. swait()
  519. lerpz(RJ, "C0", RJC0 * cf(1.1, 0.6, 0) * ang(rd(0), rd(0), rd(-120)), 0.2)
  520. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(-20)), 0.2)
  521. lerpz(RS, "C0", RSC0 * cf(0, 0.4, 0.2) * ang(rd(80), rd(-20), rd(80)), 0.2)
  522. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  523. lerpz(LS, "C0", LSC0 * cf(0, -0.2, -0.7) * ang(rd(-20), rd(-60), rd(-80)), 0.2)
  524. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  525. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-5)), 0.2)
  526. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  527. lerpz(LH, "C0", LHC0 * cf(0.4, 0, -0.4) * ang(rd(-10), rd(70), rd(-5)), 0.2)
  528. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  529. end
  530. expa()
  531. for O = 1, 10 do
  532. swait()
  533. lerpz(RJ, "C0", RJC0 * cf(0, 0.3, 0) * ang(rd(0), rd(0), rd(60)), 0.001 + O * 0.01)
  534. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(-20)), 0.001 + O * 0.01)
  535. lerpz(RS, "C0", RSC0 * cf(0, 0.4, 0.2) * ang(rd(80), rd(-20), rd(80)), 0.001 + O * 0.01)
  536. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.001 + O * 0.01)
  537. lerpz(LS, "C0", LSC0 * cf(0, -0.2, -0.7) * ang(rd(-20), rd(-60), rd(-80)), 0.001 + O * 0.01)
  538. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.001 + O * 0.01)
  539. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-5)), 0.001 + O * 0.01)
  540. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.001 + O * 0.01)
  541. lerpz(LH, "C0", LHC0 * cf(0.4, 0, -0.4) * ang(rd(-10), rd(70), rd(-5)), 0.001 + O * 0.01)
  542. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.001 + O * 0.01)
  543. end
  544. local whoooo = Instance.new("Sound")
  545. whoooo.Volume = 3
  546. whoooo.TimePosition = 0.15
  547. whoooo.Pitch = 0.5
  548. whoooo.SoundId = "rbxassetid://320557353"
  549. whoooo.Parent = pt5
  550. whoooo:Play()
  551. game.Debris:AddItem(whoooo, 2)
  552. for O = 1, 6 do
  553. swait()
  554. hito(pt5, 25, 40, 0.75, hrp.CFrame.rightVector * -100 + Vector3.new(0, 50, 0), Vector3.new(0, rd2(-25, 25), rd2(-160, 160)))
  555. lerpz(RJ, "C0", RJC0 * cf(0.9, -0.7, 0) * ang(rd(0), rd(0), rd(120)), 0.1 + O * 0.05)
  556. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(-20)), 0.1 + O * 0.05)
  557. lerpz(RS, "C0", RSC0 * cf(0, 0.4, 0.2) * ang(rd(80), rd(20), rd(20)), 0.1 + O * 0.05)
  558. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.05)
  559. lerpz(LS, "C0", LSC0 * cf(0, -0.2, -0.7) * ang(rd(-20), rd(-60), rd(-80)), 0.1 + O * 0.05)
  560. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.05)
  561. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-5)), 0.1 + O * 0.05)
  562. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.05)
  563. lerpz(LH, "C0", LHC0 * cf(0.4, 0, -0.4) * ang(rd(-10), rd(70), rd(-5)), 0.1 + O * 0.05)
  564. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.05)
  565. end
  566. for O = 1, 13 do
  567. swait()
  568. hmes.Scale = hmes.Scale:lerp(Vector3.new(2, 9, 2), 0.05 + O * 0.075)
  569. p1m.Scale = p1m.Scale:lerp(Vector3.new(2.5, 2.5, 2.5), 0.05 + O * 0.075)
  570. p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 1, 0), 0.05 + O * 0.075)
  571. p2m.Scale = p2m.Scale:lerp(Vector3.new(0.375, 0.375, 0.375), 0.05 + O * 0.075)
  572. p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 1.225, 0.075), 0.05 + O * 0.075)
  573. p3m.Scale = p3m.Scale:lerp(Vector3.new(2.5, 2.5, 2.5), 0.05 + O * 0.075)
  574. p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -1, 0), 0.05 + O * 0.075)
  575. p4m.Scale = p4m.Scale:lerp(Vector3.new(0.025, 0.025, 0.025), 0.05 + O * 0.075)
  576. p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -1.25, 0), 0.05 + O * 0.075)
  577. p5m.Scale = p5m.Scale:lerp(Vector3.new(21.5, 6.25, 6.25), 0.05 + O * 0.075)
  578. p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -4.025, 0), 0.05 + O * 0.075)
  579. p6m.Scale = p6m.Scale:lerp(Vector3.new(6.5, 6.5, 6.5), 0.05 + O * 0.075)
  580. p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -6.05, 0), 0.05 + O * 0.075)
  581. p7m.Scale = p7m.Scale:lerp(Vector3.new(0.95, 0.95, 0.95), 0.05 + O * 0.075)
  582. p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -6.2, 0), 0.05 + O * 0.075)
  583. lerpz(RJ, "C0", RJC0 * cf(1.1, -0.8, 0) * ang(rd(0), rd(0), rd(150)), 0.05 + O * 0.075)
  584. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(-20)), 0.05 + O * 0.075)
  585. lerpz(RS, "C0", RSC0 * cf(0, 0.4, 0.2) * ang(rd(80), rd(30), rd(10)), 0.05 + O * 0.075)
  586. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.05 + O * 0.075)
  587. lerpz(LS, "C0", LSC0 * cf(0, -0.2, -0.7) * ang(rd(20), rd(20), rd(-20)), 0.05 + O * 0.075)
  588. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.05 + O * 0.075)
  589. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-5)), 0.05 + O * 0.075)
  590. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.05 + O * 0.075)
  591. lerpz(LH, "C0", LHC0 * cf(0.4, 0, -0.4) * ang(rd(-10), rd(70), rd(-5)), 0.05 + O * 0.075)
  592. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.05 + O * 0.075)
  593. end
  594. if dipperhat then
  595. dipperhat.Handle.HatAttachment.Rotation = dipperrot
  596. end
  597. human.WalkSpeed = speed
  598. human:SetStateEnabled(3, true)
  599. activu = false
  600. end
  601. if keya == "q" then
  602. activu = true
  603. do
  604. local checkkey = true
  605. keyingup = function(xzx)
  606. if xzx == "q" then
  607. checkkey = false
  608. end
  609. end
  610. repeat
  611. for _ = 1, 2 do
  612. swait()
  613. lerpz(RJ, "C0", RJC0 * cf(0, 0.5, 0) * ang(rd(-20), rd(10), rd(-40)), 0.7)
  614. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.7)
  615. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(-20), rd(179)), 0.7)
  616. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  617. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-20), rd(20), rd(30)), 0.7)
  618. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  619. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7)
  620. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  621. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-110)), 0.7)
  622. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  623. end
  624. swingwoo:Play()
  625. for T = 1, 2 do
  626. swait()
  627. if T == 2 then
  628. hito(pt5, 5, 4, 0.03, hrp.CFrame.lookVector * 10, Vector3.new(0, rd2(-2, 2), rd2(-10, 10)))
  629. end
  630. lerpz(RJ, "C0", RJC0 * cf(0, -0.5, 0) * ang(rd(60), rd(-10), rd(30)), 0.7)
  631. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  632. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(20), rd(40)), 0.7)
  633. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  634. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-70), rd(20), rd(30)), 0.7)
  635. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  636. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(20), rd(-40), rd(80)), 0.7)
  637. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  638. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(60)), 0.7)
  639. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  640. end
  641. for _ = 1, 2 do
  642. swait()
  643. lerpz(RJ, "C0", RJC0 * cf(0, 0.5, 0) * ang(rd(-30), rd(20), rd(0)), 0.7)
  644. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.7)
  645. lerpz(RS, "C0", RSC0 * cf(0, 0.5, 0) * ang(rd(60), rd(20), rd(179)), 0.7)
  646. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  647. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-40), rd(20), rd(30)), 0.7)
  648. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  649. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7)
  650. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  651. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-30), rd(20), rd(35)), 0.7)
  652. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  653. end
  654. swingwoo:Play()
  655. for T = 1, 2 do
  656. swait()
  657. if T == 2 then
  658. hito(pt5, 5, 4, 0.03, hrp.CFrame.lookVector * 10, Vector3.new(0, rd2(-2, 2), rd2(-10, 10)))
  659. end
  660. lerpz(RJ, "C0", RJC0 * cf(0, -0.5, 0) * ang(rd(40), rd(40), rd(0)), 0.7)
  661. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.7)
  662. lerpz(RS, "C0", RSC0 * cf(0, 0.5, 0) * ang(rd(60), rd(20), rd(30)), 0.7)
  663. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  664. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-70), rd(20), rd(30)), 0.7)
  665. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  666. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7)
  667. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  668. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-30), rd(20), rd(-65)), 0.7)
  669. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  670. end
  671. until not checkkey
  672. keyingup = function() end
  673. activu = false
  674. end
  675. end
  676. if keya == "f" then
  677. activu = true
  678. do
  679. local speed = human.WalkSpeed
  680. human.WalkSpeed = 2
  681. human:SetStateEnabled(3, false)
  682. local checkkey = true
  683. local chargecounter = 0
  684. keyingup = function(xzx)
  685. if xzx == "f" then
  686. checkkey = false
  687. end
  688. end
  689. local firederp
  690. for _ = 1, 8 do
  691. swait()
  692. hwel.C0 = hwel.C0:lerp(ang(rd(65), rd(0), rd(0)) * cf(0, 1, 0), 0.6)
  693. lerpz(RJ, "C0", RJC0 * cf(0.5, 0.5, 0) * ang(rd(0), rd(0), rd(-70)), 0.5)
  694. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(60)), 0.5)
  695. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(70), rd(-10), rd(80)), 0.5)
  696. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  697. lerpz(LS, "C0", LSC0 * cf(-0.3, -0.1, -1) * ang(rd(-10), rd(-70), rd(-75)), 0.5)
  698. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(-20), rd(0)), 0.5)
  699. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-5), rd(-10), rd(5)), 0.5)
  700. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  701. lerpz(LH, "C0", LHC0 * cf(0.5, 0, -0.4) * ang(rd(0), rd(80), rd(-5)), 0.5)
  702. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(0)), 0.5)
  703. end
  704. repeat
  705. swait()
  706. chargecounter = chargecounter + 1
  707. lerpz(RS, "C0", RSC0 * cf(rd2(-5, 5) / 100, rd2(-5, 5) / 100, rd2(-5, 5) / 100) * ang(rd(rd2(65, 75)), rd(rd2(-15, 5)), rd(rd2(75, 85))), 0.05 + chargecounter * 0.019)
  708. lerpz(LS, "C0", LSC0 * cf(-0.3, -0.1, -1) * ang(rd(rd2(-15, -5)), rd(rd2(-75, -65)), rd(rd2(-80, -70))), 0.05 + chargecounter * 0.019)
  709. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(rd2(-25, -15)), rd(0)), 0.05 + chargecounter * 0.019)
  710. if chargecounter > 30 and firederp == nil then
  711. firederp = Instance.new("Fire")
  712. firederp.Parent = pt5
  713. end
  714. until not checkkey or chargecounter > 50
  715. swingwoo:Play()
  716. for U = 1, 10 do
  717. swait()
  718. if U < 3 then
  719. hito(pt5, 5, 10, 0.2, hrp.CFrame.lookVector * (80 + chargecounter * 3) + Vector3.new(0, 6 + 6 * (chargecounter / 5), 0), Vector3.new(0, rd2(-25, 25) * (chargecounter / 25), rd2(-80, 80) * (chargecounter / 25)))
  720. if chargecounter > 30 then
  721. tagexplode(pt5, 5, 1)
  722. end
  723. end
  724. hwel.C0 = hwel.C0:lerp(ang(rd(135), rd(0), rd(0)) * cf(0, 1, 0), 0.6)
  725. lerpz(RJ, "C0", RJC0 * cf(0.5, -0.5, 0) * ang(rd(0), rd(0), rd(50)), 0.6)
  726. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(-30)), 0.6)
  727. lerpz(RS, "C0", RSC0 * cf(0.75, 0.5, -0.5) * ang(rd(0), rd(60), rd(120)), 0.4)
  728. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(100), rd(0)), 0.4)
  729. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(20), rd(-125)), 0.4)
  730. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(-20), rd(0)), 0.4)
  731. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-5), rd(-10), rd(5)), 0.6)
  732. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.6)
  733. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(-10), rd(-6)), 0.6)
  734. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(0)), 0.6)
  735. end
  736. if firederp then
  737. firederp:Destroy()
  738. end
  739. swait(10)
  740. hwel.C0 = ang(rd(90), rd(0), rd(0)) * cf(0, 1, 0)
  741. keyingup = function() end
  742. human.WalkSpeed = speed
  743. human:SetStateEnabled(3, true)
  744. activu = false
  745. end
  746. end
  747. end
  748. end
  749. elseif batting == true then
  750. batting = false
  751. clibat = function() end
  752. spec = function() end
  753. hrp.sweae:Destroy()
  754. local batmod = chr:FindFirstChild("bmodel")
  755. batmod.hnd.Weld:Destroy()
  756. batmod.PrimaryPart = batmod.hnd
  757. batmod:SetPrimaryPartCFrame(rarm.CFrame * ang(rd(-90), rd(0), rd(0)) * cf(0, 0, -1))
  758. for _, A in pairs(batmod:GetChildren()) do
  759. if A.ClassName == "Part" then
  760. A.CanCollide = true
  761. A.Anchored = false
  762. end
  763. end
  764. batmod.Parent = workspace
  765. game.Debris:AddItem(batmod, 8)
  766. end
  767. end
  768. local movin = false
  769. function ham()
  770. if batting == false then
  771. batting = true
  772. do
  773. local bmod = Instance.new("Model")
  774. bmod.Name = "bmodel"
  775. bmod.Parent = chr
  776. local makemotor = function(parent, p0, p1, c0, c1)
  777. local wel = Instance.new("Motor6D")
  778. wel.Part0 = p0
  779. wel.Part1 = p1
  780. wel.C0 = c0
  781. if c1 ~= nil then
  782. wel.C1 = c1
  783. end
  784. wel.Parent = parent
  785. return wel
  786. end
  787. local hnd = makepart("Br. yellowish green", "hnd", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
  788. hnd.Anchored = true
  789. local hmes = makemesh("Head", Vector3.new(5, 30, 5), nil, hnd)
  790. movin = true
  791. hnd.CFrame = hrp.CFrame
  792. coroutine.resume(coroutine.create(function()
  793. while hnd.Anchored == true do
  794. swait()
  795. if movin then
  796. hnd.CFrame = hnd.CFrame:lerp(hrp.CFrame * ang(rd(40), rd(0), rd(0)) * cf(0, 11, 0), 0.65)
  797. end
  798. end
  799. end))
  800. local pt1 = makepart("Br. yellowish green", "pt1", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
  801. local p1m = makemesh("Head", Vector3.new(6, 5.5, 5.5), nil, pt1)
  802. local p1w = makemotor(pt1, pt1, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, 3, 0), nil)
  803. local pt2 = makepart("Br. yellowish green", "pt2", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
  804. local p2m = makemesh("Head", Vector3.new(6, 5.5, 5.5), nil, pt2)
  805. local p2w = makemotor(pt2, pt2, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, -3, 0), nil)
  806. local pt3 = makepart("Bright yellow", "pt3", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
  807. local p3m = makemesh("Head", Vector3.new(6.5, 6.5, 6.5), nil, pt3)
  808. local p3w = makemotor(pt3, pt3, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, 3.75, 0), nil)
  809. local pt4 = makepart("Br. yellowish green", "pt4", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
  810. local p4m = makemesh("FileMesh", Vector3.new(1, 1, 1), "rbxassetid://250640098", pt4)
  811. p4m.TextureId = "rbxassetid://250639536"
  812. local p4w = makemotor(pt4, pt4, hnd, ang(rd(180), rd(180), rd(0)) * cf(0, 4.25, 0.25), nil)
  813. local pt5 = makepart("Bright blue", "pt5", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
  814. local p5m = makemesh("Head", Vector3.new(5, 90, 4), nil, pt5)
  815. local p5w = makemotor(pt5, pt5, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, -12, 0), nil)
  816. local pt6 = makepart("Bright blue", "pt6", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
  817. local p6m = makemesh("FileMesh", Vector3.new(0.16, 0.4, 0.16), "rbxassetid://703458158", pt6)
  818. local p6w = makemotor(pt6, pt6, hnd, ang(rd(180), rd(0), rd(0)) * cf(0, -16, 0), nil)
  819. local pt7 = makepart("Bright yellow", "pt7", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
  820. local p7m = makemesh("Head", Vector3.new(75, 75, 75), nil, pt7)
  821. local p7w = makemotor(pt7, pt7, hnd, ang(rd(0), rd(90), rd(0)) * cf(0, -27, 0), nil)
  822. local hdec1 = Instance.new("Decal")
  823. hdec1.Texture = "rbxasset://textures/face.png"
  824. hdec1.Face = "Front"
  825. hdec1.Parent = pt7
  826. local pt8 = makepart("Bright yellow", "pt8", 0, 1, "SmoothPlastic", bmod, hrp.CFrame)
  827. local p8m = makemesh("Head", Vector3.new(75, 75, 75), nil, pt8)
  828. local p8w = makemotor(pt8, pt8, hnd, ang(rd(0), rd(-90), rd(0)) * cf(0, -27, 0), nil)
  829. local hdec2 = Instance.new("Decal")
  830. hdec2.Texture = "rbxasset://textures/face.png"
  831. hdec2.Face = "Front"
  832. hdec2.Parent = pt8
  833. local pt9 = makepart("Bright yellow", "pt9", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
  834. local p9m = makemesh("FileMesh", Vector3.new(12, 11, 11), "rbxassetid://272942659", pt9)
  835. local p9w = makemotor(pt9, pt9, hnd, ang(rd(0), rd(90), rd(0)) * cf(0, -30, 0), nil)
  836. p9m.TextureId = "rbxassetid://272942750"
  837. local pt10 = makepart("Bright yellow", "pt10", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
  838. local p10m = makemesh("Head", Vector3.new(60, 60, 60), nil, pt10)
  839. local p10w = makemotor(pt10, pt10, pt7, ang(rd(0), rd(0), rd(90)) * cf(11, 0, 0), nil)
  840. local hdec3 = Instance.new("Decal")
  841. hdec3.Texture = "rbxasset://textures/face.png"
  842. hdec3.Face = "Front"
  843. hdec3.Parent = pt10
  844. local pt11 = makepart("Bright yellow", "pt11", 0, 1, "SmoothPlastic", bmod, hrp.CFrame)
  845. local p11m = makemesh("Head", Vector3.new(60, 60, 60), nil, pt11)
  846. local p11w = makemotor(pt11, pt11, pt7, ang(rd(0), rd(180), rd(90)) * cf(11, 0, 0), nil)
  847. local hdec4 = Instance.new("Decal")
  848. hdec4.Texture = "rbxasset://textures/face.png"
  849. hdec4.Face = "Front"
  850. hdec4.Parent = pt11
  851. local pt12 = makepart("Bright yellow", "pt12", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
  852. local p12m = makemesh("Head", Vector3.new(60, 60, 60), nil, pt12)
  853. local p12w = makemotor(pt12, pt12, pt7, ang(rd(0), rd(0), rd(-90)) * cf(-11, 0, 0), nil)
  854. local hdec5 = Instance.new("Decal")
  855. hdec5.Texture = "rbxasset://textures/face.png"
  856. hdec5.Face = "Front"
  857. hdec5.Parent = pt12
  858. local pt13 = makepart("Bright yellow", "pt13", 0, 1, "SmoothPlastic", bmod, hrp.CFrame)
  859. local p13m = makemesh("Head", Vector3.new(60, 60, 60), nil, pt13)
  860. local p13w = makemotor(pt13, pt13, pt7, ang(rd(0), rd(180), rd(-90)) * cf(-11, 0, 0), nil)
  861. local hdec6 = Instance.new("Decal")
  862. hdec6.Texture = "rbxasset://textures/face.png"
  863. hdec6.Face = "Front"
  864. hdec6.Parent = pt13
  865. cliham = function()
  866. if selected == false or activu == true or ragged == true then
  867. return
  868. end
  869. activu = true
  870. movin = false
  871. for B = 1, 20 do
  872. swait()
  873. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(0)), 0.4)
  874. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(8), rd(0), rd(0)), 0.4)
  875. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-15), rd(-5), rd(170)), 0.4)
  876. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4)
  877. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(-10), rd(10)), 0.4)
  878. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4)
  879. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-5), rd(-10), rd(-10)), 0.4)
  880. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4)
  881. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-5), rd(10), rd(10)), 0.4)
  882. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4)
  883. hnd.CFrame = hnd.CFrame:lerp(rarm.CFrame * ang(rd(-110), rd(0), rd(0)) * cf(0, 0, -1), 0.1 + B * 0.045)
  884. end
  885. for B = 1, 30 do
  886. swait()
  887. lerpz(RJ, "C0", RJC0 * cf(0, 0.8, 0) * ang(rd(-25), rd(0), rd(-50)), 0.1 + B / 80)
  888. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-18), rd(0), rd(40)), 0.1 + B / 80)
  889. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-30), rd(-5), rd(160)), 0.1 + B / 80)
  890. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + B / 80)
  891. lerpz(LS, "C0", LSC0 * cf(-0.8, 0, -1) * ang(rd(-60), rd(-20), rd(-150)), 0.1 + B / 80)
  892. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + B / 80)
  893. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(-20), rd(-10)), 0.1 + B / 80)
  894. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + B / 80)
  895. lerpz(LH, "C0", LHC0 * cf(0.5, 0, -0.4) * ang(rd(-5), rd(60), rd(-110)), 0.1 + B / 80)
  896. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + B / 80)
  897. hnd.CFrame = hnd.CFrame:lerp(rarm.CFrame * ang(rd(-110), rd(0), rd(0)) * cf(0, 0, -1), 1)
  898. end
  899. for B = 1, 7 do
  900. swait()
  901. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(40)), 0.015 + B / 15)
  902. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(9), rd(0), rd(-15)), 0.015 + B / 15)
  903. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-50), rd(100)), 0.015 + B / 15)
  904. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.015 + B / 15)
  905. lerpz(LS, "C0", LSC0 * cf(-0.8, 0, -1) * ang(rd(-60), rd(-25), rd(-90)), 0.015 + B / 15)
  906. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.015 + B / 15)
  907. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(-20), rd(10)), 0.015 + B / 15)
  908. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.015 + B / 15)
  909. lerpz(LH, "C0", LHC0 * cf(0.1, 0, -0.1) * ang(rd(-5), rd(20), rd(-20)), 0.015 + B / 15)
  910. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.015 + B / 15)
  911. hnd.CFrame = hnd.CFrame:lerp(rarm.CFrame * ang(rd(-110), rd(0), rd(0)) * cf(0, 0, -1), 1)
  912. end
  913. for B = 1, 4 do
  914. swait()
  915. lerpz(RJ, "C0", RJC0 * cf(0, -0.8, 0) * ang(rd(70), rd(0), rd(40)), 0.38 + B * 0.1)
  916. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(9), rd(0), rd(-15)), 0.38 + B * 0.1)
  917. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-40), rd(100)), 0.38 + B * 0.1)
  918. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.38 + B * 0.1)
  919. lerpz(LS, "C0", LSC0 * cf(-0.8, 0, -1) * ang(rd(-60), rd(-25), rd(-90)), 0.38 + B * 0.1)
  920. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.38 + B * 0.1)
  921. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(-20), rd(60)), 0.38 + B * 0.1)
  922. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.38 + B * 0.1)
  923. lerpz(LH, "C0", LHC0 * cf(0.1, 0, -0.1) * ang(rd(-5), rd(20), rd(70)), 0.38 + B * 0.1)
  924. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.38 + B * 0.1)
  925. hnd.CFrame = hnd.CFrame:lerp(rarm.CFrame * ang(rd(-110), rd(0), rd(0)) * cf(0, 0, -1), 1)
  926. end
  927. swait(15)
  928. movin = true
  929. activu = false
  930. end
  931. end
  932. elseif batting == true then
  933. batting = false
  934. cliham = function() end
  935. local badevz = chr:FindFirstChild("bmodel")
  936. badevz.PrimaryPart = badevz.hnd
  937. for _, A in pairs(badevz:GetChildren()) do
  938. if A.ClassName == "Part" then
  939. A.CanCollide = true
  940. A.Anchored = false
  941. end
  942. end
  943. movin = false
  944. badevz.Parent = workspace
  945. badevz:SetPrimaryPartCFrame(hrp.CFrame * ang(rd(40), rd(0), rd(0)) * cf(0, -11, 0))
  946. game.Debris:AddItem(badevz, 8)
  947. end
  948. end
  949. function lauf()
  950. if selected == false or activu == true then
  951. return
  952. end
  953. lauf1:Play()
  954. end
  955. function makenoob(cfrem, scalo, rags)
  956. nscale.Value = scalo
  957. local md = Instance.new("Model")
  958. md.Name = "Noob"
  959. md.Parent = workspace
  960. local hu = Instance.new("Humanoid")
  961. hu.RigType = "R6"
  962. hu.MaxHealth = 100 * scalo
  963. hu.Health = 100 * scalo
  964. hu.Parent = md
  965. local anm = Instance.new("Animator")
  966. anm.Parent = hu
  967. hu.PlatformStand = true
  968. local light = function(part)
  969. part.CustomPhysicalProperties = PhysicalProperties.new(0.35, 0.3, 0.5)
  970. end
  971. local hd = Instance.new("Part")
  972. hd.Name = "Head"
  973. hd.Size = Vector3.new(2 * nscale.Value, 1 * nscale.Value, 1 * nscale.Value)
  974. hd.TopSurface = "Smooth"
  975. hd.BottomSurface = "Inlet"
  976. hd.Locked = true
  977. hd.BrickColor = BrickColor.new("Bright yellow")
  978. hd.CanCollide = true
  979. hd.Anchored = false
  980. light(hd)
  981. hd.Parent = md
  982. local hm = Instance.new("SpecialMesh")
  983. hm.MeshType = "Head"
  984. hm.Scale = Vector3.new(1.25, 1.25, 1.25)
  985. hm.Parent = hd
  986. local hf = Instance.new("Decal")
  987. hf.Texture = "rbxasset://textures/face.png"
  988. local gen = math.random(1, 40)
  989. if gen == 3 then
  990. hf.Texture = "rbxassetid://260884109"
  991. end
  992. if gen == 8 then
  993. hf.Texture = "rbxassetid://260569492"
  994. end
  995. if gen == 12 then
  996. hf.Texture = "rbxassetid://259580505"
  997. end
  998. if gen == 16 then
  999. hf.Texture = "rbxassetid://259579232"
  1000. end
  1001. if gen == 24 then
  1002. hf.Texture = "rbxassetid://259571525"
  1003. end
  1004. if gen == 28 then
  1005. hf.Texture = "rbxassetid://258283210"
  1006. end
  1007. if gen == 32 then
  1008. hf.Texture = "rbxassetid://258940032"
  1009. end
  1010. if gen == 38 then
  1011. hf.Texture = "rbxassetid://673220970"
  1012. hf.Color3 = Color3.new(0, 0, 0)
  1013. end
  1014. hf.Face = "Front"
  1015. hf.Parent = hd
  1016. local hrpa = Instance.new("Part")
  1017. hrpa.Name = "HumanoidRootPart"
  1018. hrpa.TopSurface, hrpa.BottomSurface = 0, 0
  1019. hrpa.Size = Vector3.new(2 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  1020. hrpa.Transparency = 1
  1021. hrpa.CanCollide = false
  1022. hrpa.Locked = true
  1023. light(hrpa)
  1024. hrpa.Parent = md
  1025. local tagbomb = Instance.new("BoolValue")
  1026. tagbomb.Name = "tagbomb"
  1027. tagbomb.Value = false
  1028. tagbomb.Parent = hrpa
  1029. local learm = Instance.new("Part")
  1030. learm.Name = "Left Arm"
  1031. learm.BrickColor = BrickColor.new("Bright yellow")
  1032. learm.CanCollide = false
  1033. learm.Locked = true
  1034. learm.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  1035. light(learm)
  1036. learm.Parent = md
  1037. local riarm = Instance.new("Part")
  1038. riarm.Name = "Right Arm"
  1039. riarm.BrickColor = BrickColor.new("Bright yellow")
  1040. riarm.CanCollide = false
  1041. riarm.Locked = true
  1042. light(riarm)
  1043. riarm.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  1044. riarm.Parent = md
  1045. local leleg = Instance.new("Part")
  1046. leleg.Name = "Left Leg"
  1047. leleg.BrickColor = BrickColor.new("Br. yellowish green")
  1048. leleg.CanCollide = false
  1049. leleg.Locked = true
  1050. light(leleg)
  1051. leleg.BottomSurface = 0
  1052. leleg.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  1053. leleg.Parent = md
  1054. local rileg = Instance.new("Part")
  1055. rileg.Name = "Right Leg"
  1056. rileg.BrickColor = BrickColor.new("Br. yellowish green")
  1057. rileg.CanCollide = false
  1058. rileg.Locked = true
  1059. light(rileg)
  1060. rileg.BottomSurface = 0
  1061. rileg.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  1062. rileg.Parent = md
  1063. local tor = Instance.new("Part")
  1064. tor.Name = "Torso"
  1065. tor.BrickColor = BrickColor.new("Bright blue")
  1066. tor.Locked = true
  1067. light(tor)
  1068. tor.Size = Vector3.new(2 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  1069. tor.LeftSurface, tor.RightSurface = "Weld", "Weld"
  1070. tor.Parent = md
  1071. md.PrimaryPart = hrpa
  1072. md:SetPrimaryPartCFrame(cfrem)
  1073. md:makeJoints()
  1074. makejoint(hrpa, RootJointC0, RootJointC1, hrpa, tor, "RootJoint")
  1075. makejoint(tor, NeckC0, NeckC1, tor, hd, "Neck")
  1076. if rags == true then
  1077. makegloo(tor, RightShoulderC0, RightShoulderC1, tor, riarm, "Right Shoulder")
  1078. makegloo(tor, LeftShoulderC0, LeftShoulderC1, tor, learm, "Left Shoulder")
  1079. makegloo(tor, RightHipC0, RightHipC1, tor, rileg, "Right Hip")
  1080. makegloo(tor, LeftHipC0, LeftHipC1, tor, leleg, "Left Hip")
  1081. maketouchy(riarm, riarm, CFrame.new(0, 0.5 * nscale.Value, 0))
  1082. maketouchy(learm, learm, CFrame.new(0, 0.5 * nscale.Value, 0))
  1083. maketouchy(leleg, leleg, CFrame.new(0, 0.5 * nscale.Value, 0))
  1084. maketouchy(rileg, rileg, CFrame.new(0, 0.5 * nscale.Value, 0))
  1085. elseif rags == false then
  1086. makejoint(tor, RightShoulderC0, RightShoulderC1, tor, riarm, "Right Shoulder")
  1087. makejoint(tor, LeftShoulderC0, LeftShoulderC1, tor, learm, "Left Shoulder")
  1088. makejoint(tor, RightHipC0, RightHipC1, tor, rileg, "Right Hip")
  1089. makejoint(tor, LeftHipC0, LeftHipC1, tor, leleg, "Left Hip")
  1090. hu.PlatformStand = false
  1091. end
  1092. nscale.Value = 1
  1093. hu.Touched:connect(function(tpart, uwot)
  1094. if tagbomb.Value == true and tpart.Parent ~= md and tpart.Parent.Parent ~= md and tpart.Parent.Parent.Parent ~= md then
  1095. tagbomb.Value = false
  1096. hu.Health = 0
  1097. local derp = Instance.new("Explosion")
  1098. derp.BlastPressure = 200
  1099. derp.BlastRadius = 8
  1100. derp.DestroyJointRadiusPercent = 0
  1101. derp.ExplosionType = 2
  1102. derp.Visible = true
  1103. derp.Position = uwot.Position - Vector3.new(0, 0.5, 0)
  1104. derp.Parent = workspace
  1105. game.Debris:AddItem(md, 8)
  1106. end
  1107. end)
  1108. return md
  1109. end
  1110. function makecircle(cfrem, scalo)
  1111. local mcir1 = Instance.new("Part")
  1112. mcir1.Anchored = true
  1113. mcir1.CanCollide = false
  1114. mcir1.Size = Vector3.new(0.2, 0.2, 0.2)
  1115. mcir1.Transparency = 1
  1116. mcir1.CFrame = cfrem
  1117. mcir1.Parent = modz
  1118. game.Debris:AddItem(mcir1, 8)
  1119. local d1 = Instance.new("Decal")
  1120. d1.Texture = "rbxassetid://602615043"
  1121. d1.Face = "Front"
  1122. d1.Parent = mcir1
  1123. local d2 = Instance.new("Decal")
  1124. d2.Texture = "rbxassetid://602617463"
  1125. d2.Face = "Back"
  1126. d2.Parent = mcir1
  1127. local bme = Instance.new("BlockMesh")
  1128. bme.Parent = mcir1
  1129. for _ = 1, 9 do
  1130. swait()
  1131. bme.Scale = bme.Scale:lerp(Vector3.new(35 * scalo, 35 * scalo, 0), 0.3)
  1132. end
  1133. coroutine.resume(coroutine.create(function()
  1134. swait(15)
  1135. for _ = 1, 12 do
  1136. swait()
  1137. d1.Transparency = d1.Transparency + 0.08
  1138. d2.Transparency = d2.Transparency + 0.08
  1139. end
  1140. mcir1:Destroy()
  1141. end))
  1142. return mcir1
  1143. end
  1144. function spawnnoob(circlecf, noobcf, scalez, ragd)
  1145. local aearae = makecircle(circlecf, scalez)
  1146. local nananb
  1147. if ragd then
  1148. nananb = makenoob(aearae.CFrame * noobcf, scalez, true)
  1149. elseif not ragd then
  1150. nananb = makenoob(aearae.CFrame * noobcf, scalez, false)
  1151. end
  1152. return nananb
  1153. end
  1154. function tagexplode(partoz, magn, bombdelay)
  1155. for _, guy in pairs(workspace:GetChildren()) do
  1156. if guy:FindFirstChild("Humanoid") and guy:FindFirstChild("HumanoidRootPart") and guy.Name == "Noob" and magn > (guy:FindFirstChild("HumanoidRootPart").Position - partoz.Position).magnitude then
  1157. coroutine.resume(coroutine.create(function()
  1158. swait(bombdelay * 30)
  1159. guy:FindFirstChild("HumanoidRootPart").tagbomb.Value = true
  1160. end))
  1161. end
  1162. end
  1163. end
  1164. function hito(partoz, magn, dmg, debtim, bodyfdire, bodyrot)
  1165. for _, guy in pairs(workspace:GetChildren()) do
  1166. if guy:FindFirstChild("Humanoid") and guy:FindFirstChild("HumanoidRootPart") and guy ~= chr and magn > (guy:FindFirstChild("HumanoidRootPart").Position - partoz.Position).magnitude and guy:FindFirstChild("HumanoidRootPart"):FindFirstChild("alabo") == nil then
  1167. do
  1168. local humz = guy:FindFirstChild("Humanoid")
  1169. local horp = guy:FindFirstChild("HumanoidRootPart")
  1170. humz:TakeDamage(dmg)
  1171. humz:SetStateEnabled(16, true)
  1172. delay(debtim, function()
  1173. humz:SetStateEnabled(16, true)
  1174. end)
  1175. local db = Instance.new("StringValue")
  1176. db.Name = "alabo"
  1177. db.Parent = horp
  1178. delay(debtim, function()
  1179. db:Destroy()
  1180. end)
  1181. local b = Instance.new("Part")
  1182. nooutline(b)
  1183. b.Size = Vector3.new(0.2, 0.2, 0.2)
  1184. b.Transparency = 0.25
  1185. b.Anchored = true
  1186. b.CanCollide = false
  1187. b.BrickColor = BrickColor.new("Institutional white")
  1188. b.Locked = true
  1189. b.CFrame = horp.CFrame * CFrame.new(rd2(-1, 1), rd2(-2, 2), rd2(-1, 1))
  1190. b.Parent = modz
  1191. local c = Instance.new("SpecialMesh")
  1192. c.MeshType = "Sphere"
  1193. c.Scale = Vector3.new(3.5, 3.5, 3.5)
  1194. c.Parent = b
  1195. game.Debris:AddItem(b, 1)
  1196. if bodyfdire then
  1197. local boopyve = Instance.new("BodyVelocity")
  1198. boopyve.MaxForce = Vector3.new(9999999999999, 9999999999999, 9999999999999)
  1199. boopyve.P = 9999999999
  1200. boopyve.Velocity = bodyfdire
  1201. boopyve.Parent = horp
  1202. game.Debris:AddItem(boopyve, debtim)
  1203. end
  1204. if bodyrot then
  1205. local boopyro = Instance.new("BodyAngularVelocity")
  1206. boopyro.MaxTorque = Vector3.new(999999, 999999, 999999)
  1207. boopyro.P = math.huge
  1208. boopyro.AngularVelocity = bodyrot
  1209. boopyro.Parent = horp
  1210. game.Debris:AddItem(boopyro, debtim)
  1211. end
  1212. local bet = Instance.new("Sound")
  1213. bet.Pitch = rd2(9, 11) / 10
  1214. bet.Volume = rd2(12, 14) / 10
  1215. bet.SoundId = "rbxassetid://305526724"
  1216. bet.Parent = b
  1217. bet:Play()
  1218. coroutine.resume(coroutine.create(function()
  1219. for _ = 1, 5 do
  1220. swait()
  1221. b.Transparency = b.Transparency + 0.175
  1222. c.Scale = c.Scale + Vector3.new(0.8 * dmg, 0.8 * dmg, 0.8 * dmg)
  1223. end
  1224. end))
  1225. end
  1226. end
  1227. end
  1228. end
  1229. function cleannoobs()
  1230. for _, nib in pairs(workspace:GetChildren()) do
  1231. coroutine.resume(coroutine.create(function()
  1232. if nib.Name == "Noob" then
  1233. if nib:FindFirstChild("HumanoidRootPart") then
  1234. local g = Instance.new("Part")
  1235. g.CanCollide, g.Anchored = false, true
  1236. g.Transparency = 1
  1237. g.CFrame = nib:FindFirstChild("HumanoidRootPart").CFrame
  1238. g.Parent = workspace
  1239. game.Debris:AddItem(g, 3.5)
  1240. local sou = Instance.new("Sound")
  1241. sou.Pitch = math.random(7, 11) / 10
  1242. sou.Volume = 0.8
  1243. sou.SoundId = "rbxassetid://111124523"
  1244. sou.Parent = g
  1245. local pe = Instance.new("ParticleEmitter")
  1246. pe.Acceleration = Vector3.new(0, 8, 0)
  1247. pe.Lifetime = NumberRange.new(1, 1.5)
  1248. pe.Rate = 0.005
  1249. pe.RotSpeed = NumberRange.new(-30, 30)
  1250. pe.Rotation = NumberRange.new(0, 360)
  1251. pe.Size = NumberSequence.new({
  1252. NumberSequenceKeypoint.new(0, 4.38, 0),
  1253. NumberSequenceKeypoint.new(0.672, 4.14, 0),
  1254. NumberSequenceKeypoint.new(1, 1.48, 0)
  1255. })
  1256. pe.Texture = "rbxassetid://244221440"
  1257. pe.Transparency = NumberSequence.new({
  1258. NumberSequenceKeypoint.new(0, 0, 0),
  1259. NumberSequenceKeypoint.new(0.529, 0.3, 0),
  1260. NumberSequenceKeypoint.new(1, 1, 1)
  1261. })
  1262. pe.ZOffset = 5
  1263. pe.Enabled = true
  1264. pe.VelocitySpread = 360
  1265. pe.Parent = g
  1266. swait(5)
  1267. pe:Emit(6)
  1268. sou:Play()
  1269. end
  1270. nib:Destroy()
  1271. end
  1272. end))
  1273. end
  1274. end
  1275. function animo(yep)
  1276. if yep == true then
  1277. anim.Parent = human
  1278. chr.Animate.Disabled = false
  1279. elseif yep == false then
  1280. chr.Animate.Disabled = true
  1281. anim.Parent = nil
  1282. end
  1283. end
  1284. keydownn = function(key)
  1285. if key == "r" then
  1286. test()
  1287. end
  1288. if key == "m" then
  1289. lauf()
  1290. end
  1291. if key == "c" and plr.UserId == 8488617 then
  1292. ham()
  1293. end
  1294. if key == "x" then
  1295. bat()
  1296. end
  1297. if key == "l" and plr.UserId == 8488617 and selected == true then
  1298. spawnnoob(hrp.CFrame * cf(5, 3, -1) * ang(rd(90), 0, 0), cf(0, 0, 0) * ang(rd(-90), 0, 0), 1, true)
  1299. end
  1300. if key == ";" and plr.UserId == 8488617 and selected == true then
  1301. spawnnoob(hrp.CFrame * cf(5, 60, -1) * ang(rd(90), 0, 0), cf(0, 0, 0) * ang(rd(-90), 0, 0), 10, true)
  1302. end
  1303. if key == "k" and plr.UserId == 8488617 and selected == true then
  1304. spawnnoob(hrp.CFrame * cf(5, 3, -1) * ang(rd(90), 0, 0), cf(0, 0, 0) * ang(rd(-90), 0, 0), 1, false)
  1305. end
  1306. if key == "p" then
  1307. cleannoobs()
  1308. end
  1309. if key == "z" then
  1310. if selected == false or activu == true then
  1311. return
  1312. end
  1313. if human.WalkSpeed == 25 then
  1314. human.WalkSpeed = 70
  1315. human.JumpPower = 75
  1316. else
  1317. human.WalkSpeed = 25
  1318. human.JumpPower = 50
  1319. end
  1320. end
  1321. end
  1322. animo(false)
  1323. human.WalkSpeed = 25
  1324. sine = 0
  1325. charge = 1
  1326. cos = math.cos
  1327. game:GetService("RunService").Stepped:connect(function()
  1328. if ragged == false and activu == false then
  1329. local checkfloor = Ray.new(hrp.Position, Vector3.new(0, -5, 0))
  1330. local checkpart = workspace:FindPartOnRayWithIgnoreList(checkfloor, {chr}, false, false)
  1331. local checkstate = human:GetState()
  1332. if checkstate.Value == 13 then
  1333. animpose = "Sitting"
  1334. elseif hrp.Velocity.y > 1 and checkpart == nil then
  1335. animpose = "Jumping"
  1336. elseif hrp.Velocity.y < -1 and checkpart == nil then
  1337. animpose = "Falling"
  1338. elseif (hrp.Velocity * Vector3.new(1, 0, 1)).magnitude < 2 then
  1339. animpose = "Idle"
  1340. elseif (hrp.Velocity * Vector3.new(1, 0, 1)).magnitude < 40 then
  1341. animpose = "Walking"
  1342. elseif (hrp.Velocity * Vector3.new(1, 0, 1)).magnitude > 40 then
  1343. animpose = "TooFast"
  1344. end
  1345. if animpose == "Idle" then
  1346. sine = sine + charge
  1347. lerpz(RJ, "C0", RJC0 * cf(0.05 * cos(sine / 40), 0, -0.05 - 0.05 * cos(sine / 20)) * ang(rd(0), rd(0), rd(0)), 0.3)
  1348. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(4 + 2 * cos(sine / 20)), rd(0), rd(0)), 0.3)
  1349. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(8 * cos(sine / 80)), rd(0), rd(8 * cos(sine / 80))), 0.3)
  1350. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1351. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(8 * cos(sine / 80)), rd(0), rd(8 * cos(sine / 80))), 0.3)
  1352. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1353. lerpz(RH, "C0", RHC0 * cf(0, 0.05 + 0.05 * cos(sine / 20), 0.05 * cos(sine / 40)) * ang(rd(-5), rd(-5), rd(1)), 0.3)
  1354. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1355. lerpz(LH, "C0", LHC0 * cf(0, 0.05 + 0.05 * cos(sine / 20), -0.05 * cos(sine / 40)) * ang(rd(-5), rd(5), rd(1)), 0.3)
  1356. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1357. end
  1358. if animpose == "Walking" then
  1359. sine = sine + charge
  1360. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0.025 * cos(sine / 4)) * ang(rd(-5), math.sin(hrp.RotVelocity.Y / 30), math.sin(hrp.RotVelocity.Y / 5)), 0.3)
  1361. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-2), rd(0), rd(0)), 0.3)
  1362. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(5 * cos(sine / 5)), rd(-20 * cos(sine / 5)), rd(90 * cos(sine / 5))), 0.6)
  1363. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1364. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-5 * cos(sine / 5)), rd(-20 * cos(sine / 5)), rd(90 * cos(sine / 5))), 0.6)
  1365. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1366. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-1 - 1 * cos(sine / 60)), rd(-1 - 1 * cos(sine / 60)), rd(-90 * cos(sine / 5))), 0.6)
  1367. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1368. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-1 - 1 * cos(sine / 60)), rd(1 - 1 * cos(sine / 60)), rd(-90 * cos(sine / 5))), 0.6)
  1369. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1370. end
  1371. if animpose == "Jumping" then
  1372. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(0)), 0.3)
  1373. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-10), rd(0), rd(0)), 0.3)
  1374. lerpz(RS, "C0", RSC0 * cf(0, -0.5, 0.2) * ang(rd(-70), rd(-5), rd(-20)), 0.3)
  1375. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1376. lerpz(LS, "C0", LSC0 * cf(0, -0.5, 0.2) * ang(rd(-70), rd(5), rd(20)), 0.3)
  1377. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1378. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-20), rd(-20), rd(-20)), 0.3)
  1379. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1380. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-20), rd(20), rd(15)), 0.3)
  1381. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1382. end
  1383. if animpose == "Falling" then
  1384. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.3)
  1385. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.3)
  1386. lerpz(RS, "C0", RSC0 * cf(0, 0, 0.6) * ang(rd(-150), rd(-5), rd(-20)), 0.3)
  1387. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1388. lerpz(LS, "C0", LSC0 * cf(0, 0, 0.6) * ang(rd(-150), rd(5), rd(20)), 0.3)
  1389. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1390. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(-15), rd(-20)), 0.3)
  1391. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1392. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-15), rd(15), rd(15)), 0.3)
  1393. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1394. end
  1395. if animpose == "TooFast" then
  1396. sine = sine + charge
  1397. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0.35 * cos(sine / 2)) * ang(rd(-20), math.sin(hrp.RotVelocity.Y / 20), math.sin(hrp.RotVelocity.Y / 2)), 0.3)
  1398. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-15 - 5 * cos(sine / 2)), rd(0), rd(0)), 0.3)
  1399. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(5 * cos(sine / 3)), rd(-120 * cos(sine / 3)), rd(110 * cos(sine / 3))), 0.6)
  1400. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1401. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-5 * cos(sine / 3)), rd(-120 * cos(sine / 3)), rd(110 * cos(sine / 3))), 0.6)
  1402. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1403. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-1 - 1 * cos(sine / 60)), rd(-1 - 1 * cos(sine / 60)), rd(-110 * cos(sine / 3))), 0.6)
  1404. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1405. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-1 - 1 * cos(sine / 60)), rd(1 - 1 * cos(sine / 60)), rd(-110 * cos(sine / 3))), 0.6)
  1406. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1407. end
  1408. if animpose == "Sitting" then
  1409. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1410. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1411. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(90)), 0.3)
  1412. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1413. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-90)), 0.3)
  1414. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1415. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(90)), 0.3)
  1416. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1417. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-90)), 0.3)
  1418. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1419. end
  1420. end
  1421. end)
  1422. remote = Instance.new 'RemoteFunction';
  1423. remote.Name = "ServerRemote"
  1424. remote.OnServerInvoke = function (player, request, ...)
  1425. if (player ~= owner) then
  1426. return error ('You cannot invoke this remote', 0);
  1427. end;
  1428. if request == 1 then
  1429. spec(...)
  1430. keydownn(...)
  1431. elseif request == 2 then
  1432. clibat()
  1433. cliham()
  1434. elseif request == 3 then
  1435. selected = true
  1436. elseif request == 4 then
  1437. selected = false
  1438. elseif request == 5 then
  1439. keyingup(...)
  1440. end
  1441. end
  1442. remote.Parent = script;]], owner.Character):WaitForChild'ServerRemote';
  1443. local mouse = owner:GetMouse();
  1444.  
  1445. tool = Instance.new("Tool")
  1446. tool.CanBeDropped = false
  1447. tool.RequiresHandle = false
  1448. tool.TextureId = "rbxassetid://291302154"
  1449. tool.ToolTip = "NANI"
  1450. tool.Name = "AAAAAAAAAAAAAA"
  1451. tool.Parent = owner.Backpack
  1452.  
  1453. tool.Equipped:connect(function()
  1454. remote:InvokeServer (3);
  1455. end)
  1456. tool.Unequipped:connect(function()
  1457. remote:InvokeServer (4);
  1458. end)
  1459. tool.Activated:connect(function(...)
  1460. remote:InvokeServer(2,...)
  1461. end)
  1462. mouse.KeyUp:connect(function(key)
  1463. remote:InvokeServer(5,key)
  1464. end)
  1465.  
  1466. mouse.KeyDown:connect(function(k)
  1467. k = k:lower()
  1468.  
  1469. remote:InvokeServer (1, k);
  1470. end)
  1471. print("Scripts and remotes loaded! ~WaverlyCoal")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement