Advertisement
coolgoldboy166

sanic

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