Christoffer07700Extr

FE Scout

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