Advertisement
yougotoof

aaaaxdddddd

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