Advertisement
waconline

bat

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