Advertisement
yougotoof

tyuuuu

Dec 30th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 89.91 KB | None | 0 0
  1.  
  2.  
  3. --https://github.com/Mokiros/roblox-FE-compatibility
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,game,owner = owner,game
  6. local RealPlayer = Player
  7. do
  8. print("FE Compatibility code by Mokiros")
  9. local rp = RealPlayer
  10. script.Parent = rp.Character
  11.  
  12. --RemoteEvent for communicating
  13. local Event = Instance.new("RemoteEvent")
  14. Event.Name = "UserInput_Event"
  15.  
  16. --Fake event to make stuff like Mouse.KeyDown work
  17. local function fakeEvent()
  18. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  19. t.connect = t.Connect
  20. return t
  21. end
  22.  
  23. --Creating fake input objects with fake variables
  24. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  25. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  26. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  27. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  28. end}
  29. --Merged 2 functions into one by checking amount of arguments
  30. CAS.UnbindAction = CAS.BindAction
  31.  
  32. --This function will trigger the events that have been :Connect()'ed
  33. local function te(self,ev,...)
  34. local t = m[ev]
  35. if t and t._fakeEvent then
  36. for _,f in pairs(t.Functions) do
  37. f(...)
  38. end
  39. end
  40. end
  41. m.TrigEvent = te
  42. UIS.TrigEvent = te
  43.  
  44. Event.OnServerEvent:Connect(function(plr,io)
  45. if plr~=rp then return end
  46. m.Target = io.Target
  47. m.Hit = io.Hit
  48. if not io.isMouse then
  49. local b = io.UserInputState == Enum.UserInputState.Begin
  50. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  51. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  52. end
  53. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  54. return m:TrigEvent(b and "Button2Down" or "Button2Up")
  55. end
  56. for _,t in pairs(CAS.Actions) do
  57. for _,k in pairs(t.Keys) do
  58. if k==io.KeyCode then
  59. t.Function(t.Name,io.UserInputState,io)
  60. end
  61. end
  62. end
  63. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  64. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  65. end
  66. end)
  67. Event.Parent = NLS([==[
  68. local Player = game:GetService("Players").LocalPlayer
  69. local Event = script:WaitForChild("UserInput_Event")
  70.  
  71. local Mouse = Player:GetMouse()
  72. local UIS = game:GetService("UserInputService")
  73. local input = function(io,a)
  74. if a then return end
  75. --Since InputObject is a client-side instance, we create and pass table instead
  76. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  77. end
  78. UIS.InputBegan:Connect(input)
  79. UIS.InputEnded:Connect(input)
  80.  
  81. local h,t
  82. --Give the server mouse data 30 times every second, but only if the values changed
  83. --If player is not moving their mouse, client won't fire events
  84. while wait(1/30) do
  85. if h~=Mouse.Hit or t~=Mouse.Target then
  86. h,t=Mouse.Hit,Mouse.Target
  87. Event:FireServer({isMouse=true,Target=t,Hit=h})
  88. end
  89. end]==],Player.Character)
  90.  
  91. ----Sandboxed game object that allows the usage of client-side methods and services
  92. --Real game object
  93. local _rg = game
  94.  
  95. --Metatable for fake service
  96. local fsmt = {
  97. __index = function(self,k)
  98. local s = rawget(self,"_RealService")
  99. if s then
  100. return typeof(s[k])=="function"
  101. and function(_,...)return s[k](s,...)end or s[k]
  102. end
  103. end,
  104. __newindex = function(self,k,v)
  105. local s = rawget(self,"_RealService")
  106. if s then s[k]=v end
  107. end
  108. }
  109. local function FakeService(t,RealService)
  110. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  111. return setmetatable(t,fsmt)
  112. end
  113.  
  114. --Fake game object
  115. local g = {
  116. GetService = function(self,s)
  117. return rawget(self,s) or _rg:GetService(s)
  118. end,
  119. Players = FakeService({
  120. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  121. },"Players"),
  122. UserInputService = FakeService(UIS,"UserInputService"),
  123. ContextActionService = FakeService(CAS,"ContextActionService"),
  124. RunService = FakeService({
  125. _btrs = {},
  126. RenderStepped = _rg:GetService("RunService").Heartbeat,
  127. BindToRenderStep = function(self,name,_,fun)
  128. self._btrs[name] = self.Heartbeat:Connect(fun)
  129. end,
  130. UnbindFromRenderStep = function(self,name)
  131. self._btrs[name]:Disconnect()
  132. end,
  133. },"RunService")
  134. }
  135. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  136. g.service = g.GetService
  137. FakeService(g,game)
  138. --Changing owner to fake player object to support owner:GetMouse()
  139. game,owner = g,g.Players.LocalPlayer
  140. end
  141.  
  142. plr=game:service'Players'.LocalPlayer
  143. ch=plr.Character
  144. torso=ch.Torso
  145. m=plr:GetMouse()
  146. cfn=CFrame.new
  147. mr=math.rad
  148. ang=CFrame.Angles
  149. int=Instance.new
  150.  
  151. loaded=6
  152. ammo=36
  153.  
  154. if ch:findFirstChild('Scattergun') then
  155. ch.Scattergun:Destroy()
  156. end
  157.  
  158. local shoot=int("Sound",ch.Head)
  159. shoot.SoundId='http://www.roblox.com/asset?id=10209828'
  160. shoot.Volume=1
  161. shoot.Pitch = 1
  162.  
  163. local click=int("Sound",ch.Head)
  164. click.SoundId='http://www.roblox.com/asset?id=10209834'
  165. click.Volume=1
  166. click.Pitch=1
  167. game:service'ContentProvider':Preload(shoot.SoundId)
  168. game:service'ContentProvider':Preload(click.SoundId)
  169.  
  170.  
  171. local tube=Instance.new("Model",ch)
  172. tube.Name='Scattergun'
  173.  
  174. function weld(p0,p1,c0)--basic weld function
  175. local w=Instance.new("Weld",p0)
  176. w.Part0=p0
  177. w.Part1=p1
  178. w.C0=c0
  179. return w
  180. end
  181.  
  182. Weld = function(p0,p1,x,y,z,rx,ry,rz,par)--recommend to use this with my weld. use this function only with arm lockers.
  183. p0.Position = p1.Position
  184. local w = Instance.new('Motor',par or p0)
  185. w.Part0 = p1
  186. w.Part1 = p0
  187. w.C0 = CFrame.new(x or 0,y or 0,z or 0)*CFrame.Angles(rx or 0,ry or 0,rz or 0)
  188. w.MaxVelocity = .1
  189. return w
  190. end
  191.  
  192.  
  193. function cp(parent,color,size,anchored,cancollide)--creates a part. automagically returns the part so you can edit it manually.
  194. local newp=Instance.new("Part",parent)
  195. newp.Material = "SmoothPlastic"
  196. newp.TopSurface=10
  197. newp.BottomSurface=10
  198. newp.LeftSurface=10
  199. newp.RightSurface=10
  200. newp.BackSurface=10
  201. newp.FrontSurface=10
  202. newp.FormFactor="Custom"
  203. newp.BrickColor=BrickColor.new(color)
  204. newp.Size=size
  205. newp.Anchored=anchored
  206. newp.CanCollide=cancollide
  207. newp:BreakJoints()
  208. return newp
  209. end
  210.  
  211. Tween = function(Weld, Stop, Step,a)--epik tween function. simple, no lag, awesome.
  212. ypcall(function()--- TweenWeld function (not made by me)
  213. local func = function()
  214. local Start = Weld.C1
  215. local X1, Y1, Z1 = Start:toEulerAnglesXYZ()
  216. local Stop = Stop
  217. local X2, Y2, Z2 = Stop:toEulerAnglesXYZ()
  218.  
  219. for i = 0, 1, Step or .1 do
  220. Weld.C1 = CFrame.new( (Start.p.X * (1 - i)) + (Stop.p.X * i),
  221. (Start.p.Y * (1 - i)) + (Stop.p.Y * i),
  222. (Start.p.Z * (1 - i)) + (Stop.p.Z * i)) * CFrame.fromEulerAnglesXYZ(
  223. (X1 * (1 - i)) + (X2 * i), (Y1 * (1 - i)) + (Y2 * i),
  224. (Z1 * (1 - i)) + (Z2 * i) )
  225. wait()
  226. end
  227.  
  228. Weld.C1 = Stop
  229. end
  230.  
  231. if a then coroutine.wrap(func)() else func() end
  232. end)
  233. end
  234.  
  235. rabr = cp(tube,'White',Vector3.new(1,1,1),false,false) rabr.Transparency = 1 rabr.Name='Locker'
  236. rabr.Position = torso.Position
  237. rw = Weld(rabr,torso,1.5,.5,0,0,0,0) rw.Parent = tube rw.Name = 'rw'
  238. w = Instance.new("Weld",tube)
  239. w.Part0,w.Part1 = ch['Right Arm'],rabr
  240. w.C1 = CFrame.new(0,-.5,0)
  241.  
  242. labr = cp(tube,'White',Vector3.new(1,1,1),false,false) labr.Transparency = 1 labr.Name='Locker'
  243. labr.Position = torso.Position
  244. lw = Weld(labr,torso,-1.5,.5,0,0,0,0) lw.Parent = tube lw.Name = 'lw'
  245. ww = Instance.new("Weld",tube)
  246. ww.Part0,ww.Part1 = ch['Left Arm'],labr
  247. ww.C1 = CFrame.new(0,-.5,0)
  248.  
  249.  
  250. local shaft=cp(tube,"Brown",Vector3.new(1,1,1))
  251. shaft.Material='Wood'
  252. local mw=weld(ch['Right Arm'],shaft,CFrame.new(0,-1.9,-1)*ang(mr(-45),mr(-14),0))
  253. local blk=int('BlockMesh',shaft)
  254. blk.Scale=Vector3.new(0.5,0.2,1)
  255.  
  256. local shaft2=cp(tube,"Brown",Vector3.new(1,1,1))
  257. weld(shaft,shaft2,CFrame.new(0,0,-0.65)*ang(mr(-90),0,0))
  258. shaft2.Material="Wood"
  259. local blk=int('SpecialMesh',shaft2)
  260. blk.MeshType='Wedge'
  261. blk.Scale=Vector3.new(0.5,0.3,0.2)
  262.  
  263. --[[
  264. local shaft3=cp(tube,"Dark stone grey",Vector3.new(1,1,1))
  265. weld(shaft,shaft3,CFrame.new(0,1,-0.65)*ang(mr(45),0,0)*CFrame.new(0,0,0)*ang(0,mr(30),0))
  266. local blk=int('SpecialMesh',shaft3)
  267. blk.MeshType='Wedge'
  268. blk.Scale=Vector3.new(0.5,0.2,0.2)
  269. ]]
  270.  
  271. local cyla=cp(tube,"Dark stone grey",Vector3.new(1,1,1))
  272. Instance.new("CylinderMesh",cyla).Scale=Vector3.new(0.71,0.5,0.71)
  273. cyla.Reflectance=0.1
  274. weld(shaft,cyla,CFrame.new(0,0.094,0.59)*ang(mr(90),0,0))
  275. local bh=cp(tube,"Dark stone grey",Vector3.new(1,1,1))
  276. weld(cyla,bh,CFrame.new(0,0.5,0))
  277. bh.Reflectance=0.1
  278. local blk=int('BlockMesh',bh)
  279. blk.Scale=Vector3.new(0.23,0.5,0.32)
  280. local bh2=cp(tube,"Dark stone grey",Vector3.new(1,1,1))
  281. weld(bh,bh2,CFrame.new(0,0.27,0.02)*ang(mr(16),0,0))
  282. bh2.Reflectance=0.1
  283. local blk=int('BlockMesh',bh2)
  284. blk.Scale=Vector3.new(0.23,0.2,0.32)
  285. local bh3=cp(tube,"Brown",Vector3.new(1,1,1))
  286. bh3.Material='Wood'
  287. weld(bh,bh3,CFrame.new(0,0.5,0.1)*ang(mr(20),0,0))
  288. local blk=int('BlockMesh',bh3)
  289. blk.Scale=Vector3.new(0.23,0.4,0.32)
  290. local bh4=cp(tube,"Really black",Vector3.new(1,1,1))
  291. weld(bh,bh4,CFrame.new(0,-0.1,0.27)*ang(0,0,0))
  292. local blk=int('BlockMesh',bh4)
  293. blk.Scale=Vector3.new(0.1,0.1,0.2)
  294. local bh5=cp(tube,"Really black",Vector3.new(1,1,1))
  295. weld(bh4,bh5,CFrame.new(0,0.06,0.06)*ang(0,0,0))
  296. local blk=int('BlockMesh',bh5)
  297. blk.Scale=Vector3.new(0.1,0.2,0.1)
  298. local bh5=cp(tube,"Really black",Vector3.new(1,1,1))
  299. weld(bh4,bh5,CFrame.new(0,0.3,0)*ang(mr(-20),0,0))
  300. local blk=int('BlockMesh',bh5)
  301. blk.Scale=Vector3.new(0.1,0.4,0.1)
  302.  
  303.  
  304.  
  305.  
  306. local cyl=cp(tube,"Dark stone grey",Vector3.new(1,1,1))
  307. Instance.new("CylinderMesh",cyl).Scale=Vector3.new(0.25,1.46,0.25)
  308. cyl.Reflectance=0.1
  309. weld(shaft,cyl,CFrame.new(-0.12,0.21,-0.37)*ang(mr(90),0,0))
  310. local cyl=cp(tube,"Dark stone grey",Vector3.new(1,1,1))
  311. Instance.new("CylinderMesh",cyl).Scale=Vector3.new(0.25,1.46,0.25)
  312. cyl.Reflectance=0.1
  313. weld(shaft,cyl,CFrame.new(0.12,0.21,-0.37)*ang(mr(90),0,0))
  314.  
  315. local cyl=cp(tube,"Really black",Vector3.new(1,1,1))
  316. Instance.new("CylinderMesh",cyl).Scale=Vector3.new(0.18,1.48,0.18)
  317. cyl.Reflectance=0.1
  318. weld(shaft,cyl,CFrame.new(-0.12,0.21,-0.37)*ang(mr(90),0,0))
  319. local cyl=cp(tube,"Really black",Vector3.new(1,1,1))
  320. Instance.new("CylinderMesh",cyl).Scale=Vector3.new(0.18,1.48,0.18)
  321. cyl.Reflectance=0.1
  322. weld(shaft,cyl,CFrame.new(0.12,0.21,-0.37)*ang(mr(90),0,0))
  323.  
  324. local cyl1=cp(tube,"Dark stone grey",Vector3.new(1,1,1))
  325. Instance.new("BlockMesh",cyl1).Scale=Vector3.new(0.18,1.48,0.1)
  326. cyl.Reflectance=0.1
  327. weld(shaft,cyl1,CFrame.new(0,0.31,-0.37)*ang(mr(90),0,0))
  328.  
  329. local cylz=cp(tube,"Dark stone grey",Vector3.new(1,1,1))
  330. Instance.new("BlockMesh",cylz).Scale=Vector3.new(0.09,0.14,0.1)
  331. cylz.Reflectance=0.1
  332. weld(shaft,cylz,CFrame.new(0,0.37,-0.97)*ang(0,0,0))
  333.  
  334. local cyl=cp(tube,"Dark stone grey",Vector3.new(1,1,1))
  335. Instance.new("BlockMesh",cyl).Scale=Vector3.new(0.05,0.14,0.1)
  336. cyl.Reflectance=0.1
  337. weld(shaft,cyl,CFrame.new(0.06,0.37,0.135)*ang(0,0,0))
  338. local cyl=cp(tube,"Dark stone grey",Vector3.new(1,1,1))
  339. Instance.new("BlockMesh",cyl).Scale=Vector3.new(0.05,0.14,0.1)
  340. cyl.Reflectance=0.1
  341. weld(shaft,cyl,CFrame.new(-0.06,0.37,0.135)*ang(0,0,0))
  342.  
  343. --[[local hn=cp(tube,"Dark stone grey",Vector3.new(0.2,0.7,0.2))
  344. hw=weld(ch.Head,hn,CFrame.new(0,4,0))
  345. Instance.new("CylinderMesh",hn)
  346.  
  347. local rng=cp(tube,"Really black",Vector3.new(0.3,0.2,0.3))
  348. Instance.new("CylinderMesh",rng).Scale=Vector3.new(0.72,0.4,0.72)
  349. weld(hn,rng,CFrame.new(0,0.3,0))
  350. local rng=cp(tube,"Really black",Vector3.new(0.3,0.2,0.3))
  351. Instance.new("CylinderMesh",rng).Scale=Vector3.new(0.72,0.4,0.72)
  352. weld(hn,rng,CFrame.new(0,0.2,0))
  353. local rng=cp(tube,"Really black",Vector3.new(0.3,0.2,0.3))
  354. Instance.new("CylinderMesh",rng).Scale=Vector3.new(0.72,0.4,0.72)
  355. weld(hn,rng,CFrame.new(0,0.1,0))
  356. local rng=cp(tube,"Really black",Vector3.new(0.3,0.2,0.3))
  357. Instance.new("CylinderMesh",rng).Scale=Vector3.new(0.72,0.4,0.72)
  358. weld(hn,rng,CFrame.new(0,0,0))
  359. local rng=cp(tube,"Really black",Vector3.new(0.3,0.2,0.3))
  360. Instance.new("CylinderMesh",rng).Scale=Vector3.new(0.72,0.4,0.72)
  361. weld(hn,rng,CFrame.new(0,-0.1,0))
  362. local rng=cp(tube,"Really black",Vector3.new(0.3,0.2,0.3))
  363. Instance.new("CylinderMesh",rng).Scale=Vector3.new(0.72,0.4,0.72)
  364. weld(hn,rng,CFrame.new(0,-0.2,0))]]
  365.  
  366.  
  367.  
  368.  
  369. Tween(rw,cfn(0,0,0)*ang(mr(-45),mr(-30),0),0.3)
  370. Tween(lw,cfn(-0.2,0.7,0.7)*ang(mr(-45),mr(30),0),0.3)
  371.  
  372. attacking=false
  373.  
  374. createBullet=function()
  375. local radz=math.random(math.random(8,11),math.random(12,15))
  376. local asd=m.Hit.lookVector
  377. local vel=Vector3.new(math.random(2,radz),math.random(1,radz),math.random(1,radz))+asd*350
  378. print'sn'
  379. local b=cp(tube,"Really black",Vector3.new(0.4,0.4,0.4))
  380. print'sn'
  381. local sp=int("SpecialMesh",b)
  382. sp.MeshType='Sphere'
  383. b.CFrame=cylz.CFrame
  384. b.Velocity=vel
  385. b.Touched:connect(function(p)
  386. if p.Parent:findFirstChild("Humanoid") then
  387. p.Parent.Humanoid:TakeDamage(100)
  388. b:Destroy()
  389. end
  390. end)
  391. end
  392.  
  393. loadBullet=function()
  394. Tween(lw,cfn(0,0.6,0)*ang(mr(-68),mr(60),0),0.2)
  395. click:Play()
  396. loaded=loaded+1
  397. ammo=ammo-1
  398. Tween(lw,cfn(0,0.6,0)*ang(mr(-60),mr(60),0),0.2)
  399. end
  400.  
  401. m.Button1Down:connect(function()
  402. if attacking==false and loaded>0 then
  403. loaded=loaded-1
  404. attacking=true
  405. Spawn(function()
  406. Tween(lw,cfn(-0.2,0.7,0.7)*ang(mr(-55),mr(30),0),0.4)
  407. end)
  408. Tween(rw,cfn(0,0,0)*ang(mr(-55),mr(-30),0),0.4)
  409. for i=1,4 do
  410. createBullet()
  411. end
  412. local shell=cp(workspace,"Really red",Vector3.new(0.2,0.2,0.4))
  413. shell.Position=cyla.Position
  414. shoot:Play()
  415. Spawn(function()
  416. Tween(lw,cfn(-0.2,0.7,0.7)*ang(mr(-45),mr(30),0),0.4)
  417. end)
  418. Tween(rw,cfn(0,0,0)*ang(mr(-45),mr(-30),0),0.4)
  419. wait(0.1)
  420. attacking=false
  421. elseif attacking==false and loaded<=0 then
  422. attacking=true
  423. Tween(rw,cfn()*ang(mr(-65),mr(-30),0),0.4)
  424. Tween(lw,cfn(0,0.6,0)*ang(mr(-60),mr(60),0),0.4)
  425. for i=1,6 do
  426. loadBullet()
  427. end
  428. Tween(rw,cfn(0,0,0)*ang(mr(-45),mr(-30),0),0.3)
  429. Tween(lw,cfn(-0.2,0.7,0.7)*ang(mr(-45),mr(30),0),0.3)
  430. attacking=false
  431. end
  432. end)
  433.  
  434. m.KeyDown:connect(function(k)
  435. if k=='r' and attacking==false then
  436. attacking=true
  437. Tween(rw,cfn()*ang(mr(-65),mr(-30),0),0.4)
  438. Tween(lw,cfn(0,0.6,0)*ang(mr(-60),mr(60),0),0.4)
  439. for i=1,6-loaded do
  440. loadBullet()
  441. end
  442. Tween(rw,cfn(0,0,0)*ang(mr(-45),mr(-30),0),0.3)
  443. Tween(lw,cfn(-0.2,0.7,0.7)*ang(mr(-45),mr(30),0),0.3)
  444. attacking=false
  445. end
  446. end)
  447.  
  448.  
  449.  
  450.  
  451.  
  452. --https://github.com/Mokiros/roblox-FE-compatibility
  453. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  454. local Player,game,owner = owner,game
  455. local RealPlayer = Player
  456. do
  457. print("FE Compatibility code by Mokiros")
  458. local rp = RealPlayer
  459. script.Parent = rp.Character
  460.  
  461. --RemoteEvent for communicating
  462. local Event = Instance.new("RemoteEvent")
  463. Event.Name = "UserInput_Event"
  464.  
  465. --Fake event to make stuff like Mouse.KeyDown work
  466. local function fakeEvent()
  467. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  468. t.connect = t.Connect
  469. return t
  470. end
  471.  
  472. --Creating fake input objects with fake variables
  473. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  474. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  475. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  476. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  477. end}
  478. --Merged 2 functions into one by checking amount of arguments
  479. CAS.UnbindAction = CAS.BindAction
  480.  
  481. --This function will trigger the events that have been :Connect()'ed
  482. local function te(self,ev,...)
  483. local t = m[ev]
  484. if t and t._fakeEvent then
  485. for _,f in pairs(t.Functions) do
  486. f(...)
  487. end
  488. end
  489. end
  490. m.TrigEvent = te
  491. UIS.TrigEvent = te
  492.  
  493. Event.OnServerEvent:Connect(function(plr,io)
  494. if plr~=rp then return end
  495. m.Target = io.Target
  496. m.Hit = io.Hit
  497. if not io.isMouse then
  498. local b = io.UserInputState == Enum.UserInputState.Begin
  499. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  500. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  501. end
  502. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  503. return m:TrigEvent(b and "Button2Down" or "Button2Up")
  504. end
  505. for _,t in pairs(CAS.Actions) do
  506. for _,k in pairs(t.Keys) do
  507. if k==io.KeyCode then
  508. t.Function(t.Name,io.UserInputState,io)
  509. end
  510. end
  511. end
  512. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  513. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  514. end
  515. end)
  516. Event.Parent = NLS([==[
  517. local Player = game:GetService("Players").LocalPlayer
  518. local Event = script:WaitForChild("UserInput_Event")
  519.  
  520. local Mouse = Player:GetMouse()
  521. local UIS = game:GetService("UserInputService")
  522. local input = function(io,a)
  523. if a then return end
  524. --Since InputObject is a client-side instance, we create and pass table instead
  525. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  526. end
  527. UIS.InputBegan:Connect(input)
  528. UIS.InputEnded:Connect(input)
  529.  
  530. local h,t
  531. --Give the server mouse data 30 times every second, but only if the values changed
  532. --If player is not moving their mouse, client won't fire events
  533. while wait(1/30) do
  534. if h~=Mouse.Hit or t~=Mouse.Target then
  535. h,t=Mouse.Hit,Mouse.Target
  536. Event:FireServer({isMouse=true,Target=t,Hit=h})
  537. end
  538. end]==],Player.Character)
  539.  
  540. ----Sandboxed game object that allows the usage of client-side methods and services
  541. --Real game object
  542. local _rg = game
  543.  
  544. --Metatable for fake service
  545. local fsmt = {
  546. __index = function(self,k)
  547. local s = rawget(self,"_RealService")
  548. if s then
  549. return typeof(s[k])=="function"
  550. and function(_,...)return s[k](s,...)end or s[k]
  551. end
  552. end,
  553. __newindex = function(self,k,v)
  554. local s = rawget(self,"_RealService")
  555. if s then s[k]=v end
  556. end
  557. }
  558. local function FakeService(t,RealService)
  559. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  560. return setmetatable(t,fsmt)
  561. end
  562.  
  563. --Fake game object
  564. local g = {
  565. GetService = function(self,s)
  566. return rawget(self,s) or _rg:GetService(s)
  567. end,
  568. Players = FakeService({
  569. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  570. },"Players"),
  571. UserInputService = FakeService(UIS,"UserInputService"),
  572. ContextActionService = FakeService(CAS,"ContextActionService"),
  573. RunService = FakeService({
  574. _btrs = {},
  575. RenderStepped = _rg:GetService("RunService").Heartbeat,
  576. BindToRenderStep = function(self,name,_,fun)
  577. self._btrs[name] = self.Heartbeat:Connect(fun)
  578. end,
  579. UnbindFromRenderStep = function(self,name)
  580. self._btrs[name]:Disconnect()
  581. end,
  582. },"RunService")
  583. }
  584. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  585. g.service = g.GetService
  586. FakeService(g,game)
  587. --Changing owner to fake player object to support owner:GetMouse()
  588. game,owner = g,g.Players.LocalPlayer
  589. end
  590.  
  591.  
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.  
  599.  
  600.  
  601.  
  602.  
  603.  
  604.  
  605.  
  606.  
  607.  
  608.  
  609. plr = game.Players.LocalPlayer
  610. repeat
  611. wait(0.4)
  612. until plr.Character
  613. chr = plr.Character
  614. human = chr:FindFirstChild("Humanoid")
  615. mouse = plr:GetMouse()
  616. cam = workspace.CurrentCamera
  617. selected = false
  618. equipd = false
  619. tors = chr.Torso
  620. rarm = chr["Right Arm"]
  621. larm = chr["Left Arm"]
  622. rleg = chr["Right Leg"]
  623. lleg = chr["Left Leg"]
  624. hrp = chr.HumanoidRootPart
  625. hed = chr.Head
  626. anim = human.Animator
  627. activu = false
  628. ragged = false
  629. batting = false
  630. Heartbeat = Instance.new("BindableEvent")
  631. Heartbeat.Name = "Heartbeat"
  632. Heartbeat.Parent = script
  633. frame = 0.03333333333333333
  634. tf = 0
  635. chara = plr.Character
  636.  
  637. New = function(Object, Parent, Name, Data)
  638. local Object = Instance.new(Object)
  639. for Index, Value in pairs(Data or {}) do
  640. Object[Index] = Value
  641. end
  642. Object.Parent = Parent
  643. Object.Name = Name
  644. return Object
  645. end
  646. local AddInstance = function(Object, ...)
  647. local Obj = Instance.new(Object)
  648. for i,v in next,(...) do
  649. Obj[i] = v
  650. end
  651. return Obj
  652. end
  653.  
  654. Music1 = New("Sound",chara,"Music",{SoundId = "rbxassetid://390409627",Volume = 2,Looped = true})
  655. Music1:Play()
  656. musicon = true
  657. for i,v in pairs(chara:GetChildren()) do
  658. if v.ClassName == 'Accessory' then
  659. v:Destroy()
  660. end
  661. end
  662.  
  663. local BC = chara["Body Colors"]
  664. BC.HeadColor = BrickColor.new("Pastel brown")
  665. BC.LeftArmColor = BrickColor.new("Pastel brown")
  666. BC.LeftLegColor = BrickColor.new("Pastel brown")
  667. BC.RightArmColor = BrickColor.new("Pastel brown")
  668. BC.RightLegColor = BrickColor.new("Pastel brown")
  669. BC.TorsoColor = BrickColor.new("Pastel brown")
  670.  
  671. Team=function()
  672. local r=math.random(1,2)
  673.  
  674. if r==1 then
  675. print('RED')
  676. for i,v in pairs(chara:GetChildren()) do if v:IsA("Shirt") then v:Remove() end end
  677. for i,v in pairs(chara:GetChildren()) do if v:IsA("Pants") then v:Remove() end end
  678. wait()shirt = Instance.new("Shirt", chara)
  679. shirt.Name = "Shirt"
  680. pants = Instance.new("Pants", chara)
  681. pants.Name = "Pants"
  682. chara.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=61921144"
  683. chara.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=61921182"
  684. end
  685.  
  686. if r==2 then
  687. print('BLUE')
  688. for i,v in pairs(chara:GetChildren()) do if v:IsA("Shirt") then v:Remove() end end
  689. for i,v in pairs(chara:GetChildren()) do if v:IsA("Pants") then v:Remove() end end
  690. wait()shirt = Instance.new("Shirt", chara)
  691. shirt.Name = "Shirt"
  692. pants = Instance.new("Pants", chara)
  693. pants.Name = "Pants"
  694. chara.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=61921164"
  695. chara.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=61921182"
  696. end
  697. end
  698.  
  699. Team()
  700.  
  701. chara.Head.face.Texture = "http://www.roblox.com/asset/?id=192467476"
  702. wait()
  703.  
  704. local Reaper = AddInstance("Part",{
  705. Parent = hed,
  706. CFrame = hed.CFrame,
  707. formFactor = "Symmetric",
  708. Size = Vector3.new(1, 1, 1),
  709. CanCollide = false,
  710. TopSurface = "Smooth",
  711. BottomSurface = "Smooth",
  712. Locked = true,
  713. })
  714. local Weld = AddInstance("Weld",{
  715. Parent = Reaper,
  716. Part0 = hed,
  717. C0 = CFrame.new(-0.2,0.17,-.24)*CFrame.Angles(.15, 3.12, 0),
  718. Part1 = Reaper,
  719. })
  720. local Mesh = AddInstance("SpecialMesh",{
  721. Parent = Reaper,
  722. MeshId = "rbxassetid://450793946",
  723. TextureId = "rbxassetid://450794061",
  724. Scale = Vector3.new(3.4,3,2.7),
  725. VertexColor = Vector3.new(1,1,1),
  726. })
  727.  
  728.  
  729.  
  730. local Reaper2 = AddInstance("Part",{
  731. Parent = larm,
  732. CFrame = larm.CFrame,
  733. formFactor = "Symmetric",
  734. Size = Vector3.new(.1, .1, .1),
  735. CanCollide = false,
  736. TopSurface = "Smooth",
  737. BottomSurface = "Smooth",
  738. Locked = true,
  739. Transparency = 1
  740. })
  741. local Weld = AddInstance("Weld",{
  742. Parent = Reaper2,
  743. Part0 = larm,
  744. C0 = CFrame.new(.3,-1,.2)*CFrame.Angles(-1, 0, -1),
  745. Part1 = Reaper2,
  746. })
  747. local Mesh = AddInstance("SpecialMesh",{
  748. Parent = Reaper2,
  749. MeshId = "rbxassetid://10470609",
  750. TextureId = "rbxassetid://10735250",
  751. Scale = Vector3.new(1,1,1),
  752. VertexColor = Vector3.new(1,1,1),
  753. })
  754.  
  755.  
  756.  
  757.  
  758.  
  759.  
  760.  
  761. game:GetService("RunService").Heartbeat:connect(function(s, p)
  762. tf = tf + s
  763. if tf >= frame then
  764. for i = 1, math.floor(tf / frame) do
  765. Heartbeat:Fire()
  766. end
  767. tf = tf - frame * math.floor(tf / frame)
  768. end
  769. end)
  770. function swait(num)
  771. if num == 0 or num == nil then
  772. Heartbeat.Event:wait()
  773. else
  774. for i = 1, num do
  775. Heartbeat.Event:wait()
  776. end
  777. end
  778. end
  779. tool = Instance.new("Tool")
  780. tool.CanBeDropped = false
  781. tool.RequiresHandle = false
  782. tool.TextureId = "rbxassetid://291302154"
  783. tool.ToolTip = "NANI"
  784. tool.Name = "AAAAAAAAAAAAAA"
  785. tool.Parent = plr.Backpack
  786. modz = Instance.new("Model")
  787. modz.Name = "efx"
  788. modz.Parent = chr
  789. RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  790. RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  791. LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  792. LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  793. RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  794. RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  795. LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  796. RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  797. LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  798. NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  799. NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  800. RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  801. local nscale = Instance.new("NumberValue")
  802. nscale.Value = 1
  803. nscale.Parent = nil
  804. RightShoulderC0 = CFrame.new(1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  805. RightShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  806. LeftShoulderC0 = CFrame.new(-1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  807. LeftShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  808. RightHipC0 = CFrame.new(0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  809. RightHipC1 = CFrame.new(0, 1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  810. LeftHipC0 = CFrame.new(-0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  811. LeftHipC1 = CFrame.new(0 * nscale.Value, 1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  812. RootJointC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  813. RootJointC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  814. NeckC0 = CFrame.new(0, 1 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  815. NeckC1 = CFrame.new(0, -0.5 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  816. nscale.Changed:connect(function()
  817. RightShoulderC0 = CFrame.new(1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  818. RightShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  819. LeftShoulderC0 = CFrame.new(-1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  820. LeftShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  821. RightHipC0 = CFrame.new(0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  822. RightHipC1 = CFrame.new(0, 1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  823. LeftHipC0 = CFrame.new(-0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  824. LeftHipC1 = CFrame.new(0 * nscale.Value, 1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  825. RootJointC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  826. RootJointC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  827. NeckC0 = CFrame.new(0, 1 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  828. NeckC1 = CFrame.new(0, -0.5 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  829. end)
  830. RS = tors:FindFirstChild("Right Shoulder")
  831. LS = tors:FindFirstChild("Left Shoulder")
  832. RH = tors:FindFirstChild("Right Hip")
  833. LH = tors:FindFirstChild("Left Hip")
  834. RJ = hrp:FindFirstChild("RootJoint")
  835. N = tors:FindFirstChild("Neck")
  836. cf = CFrame.new
  837. ang = CFrame.Angles
  838. rd = math.rad
  839. rd2 = math.random
  840. function nooutline(p)
  841. p.TopSurface, p.BottomSurface, p.LeftSurface, p.RightSurface, p.FrontSurface, p.BottomSurface = 10, 10, 10, 10, 10, 10
  842. end
  843. function makepart(color, name, reflec, trans, mater, parnt, cfram)
  844. local port = Instance.new("Part")
  845. port.BrickColor = BrickColor.new(color)
  846. port.Name = name
  847. port.Transparency = trans
  848. nooutline(port)
  849. port.Reflectance = reflec
  850. port.Material = mater
  851. port.Anchored = false
  852. port.CanCollide = false
  853. port.Locked = true
  854. port.Size = Vector3.new(0.2, 0.2, 0.2)
  855. port.Parent = parnt
  856. return port
  857. end
  858. function makemesh(meshtype, scale, meshid, parent)
  859. local mes = Instance.new("SpecialMesh")
  860. mes.MeshType = meshtype
  861. mes.Scale = scale
  862. if meshtype == "FileMesh" then
  863. mes.MeshId = meshid
  864. end
  865. mes.Parent = parent
  866. return mes
  867. end
  868. function makeweld(parent, p0, p1, c0, c1)
  869. local wel = Instance.new("Weld")
  870. wel.Part0 = p0
  871. wel.Part1 = p1
  872. wel.C0 = c0
  873. if c1 ~= nil then
  874. wel.C1 = c1
  875. end
  876. wel.Parent = parent
  877. return wel
  878. end
  879. local lauf1 = Instance.new("Sound")
  880. lauf1.SoundId = "rbxassetid://617500399"
  881. lauf1.Volume = 1.5
  882. lauf1.Pitch = 1
  883. lauf1.Parent = hrp
  884. function lerpz(joint, prop, cfrmz, alp)
  885. joint[prop] = joint[prop]:lerp(cfrmz, alp)
  886. end
  887. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  888. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  889. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  890. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  891. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  892. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  893. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  894. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  895. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  896. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  897. function resetlerp()
  898. RJ.C0 = RJC0
  899. RJ.C1 = RJC1
  900. N.C0 = NC0
  901. N.C1 = NC1
  902. RS.C0 = RSC0
  903. RS.C1 = RSC1
  904. LS.C0 = LSC0
  905. LS.C1 = LSC1
  906. RH.C0 = RHC0
  907. RH.C1 = RHC1
  908. LH.C0 = LHC0
  909. LH.C1 = LHC1
  910. end
  911. function test()
  912. if selected == false or activu == true then
  913. return
  914. end
  915. if ragged == false then
  916. ragged = true
  917. human.PlatformStand = true
  918. if rarm and tors:FindFirstChild("Right Shoulder") then
  919. tors:FindFirstChild("Right Shoulder"):Destroy()
  920. makegloo(tors, RightShoulderC0, RightShoulderC1, tors, rarm, "Right Shoulder")
  921. maketouchy(rarm, rarm, CFrame.new(0, 0.5, 0))
  922. end
  923. if larm and tors:FindFirstChild("Left Shoulder") then
  924. tors:FindFirstChild("Left Shoulder"):Destroy()
  925. makegloo(tors, LeftShoulderC0, LeftShoulderC1, tors, larm, "Left Shoulder")
  926. maketouchy(larm, larm, CFrame.new(0, 0.5, 0))
  927. end
  928. if rleg and tors:FindFirstChild("Right Hip") then
  929. tors:FindFirstChild("Right Hip"):Destroy()
  930. makegloo(tors, RightHipC0, RightHipC1, tors, rleg, "Right Hip")
  931. maketouchy(rleg, rleg, CFrame.new(0, 0.5, 0))
  932. end
  933. if lleg and tors:FindFirstChild("Left Hip") then
  934. tors:FindFirstChild("Left Hip"):Destroy()
  935. makegloo(tors, LeftHipC0, LeftHipC1, tors, lleg, "Left Hip")
  936. maketouchy(lleg, lleg, CFrame.new(0, 0.5, 0))
  937. end
  938. elseif ragged == true then
  939. ragged = false
  940. human.Jump = true
  941. if rarm and tors:FindFirstChild("Right Shoulder") then
  942. tors:FindFirstChild("Right Shoulder"):Destroy()
  943. makejoint(tors, RSC0, RSC1, tors, rarm, "Right Shoulder")
  944. rarm:FindFirstChild("touchy"):Destroy()
  945. end
  946. if larm and tors:FindFirstChild("Left Shoulder") then
  947. tors:FindFirstChild("Left Shoulder"):Destroy()
  948. makejoint(tors, LSC0, LSC1, tors, larm, "Left Shoulder")
  949. larm:FindFirstChild("touchy"):Destroy()
  950. end
  951. if rleg and tors:FindFirstChild("Right Hip") then
  952. tors:FindFirstChild("Right Hip"):Destroy()
  953. makejoint(tors, RHC0, RHC1, tors, rleg, "Right Hip")
  954. rleg:FindFirstChild("touchy"):Destroy()
  955. end
  956. if lleg and tors:FindFirstChild("Left Hip") then
  957. tors:FindFirstChild("Left Hip"):Destroy()
  958. makejoint(tors, LHC0, LHC1, tors, lleg, "Left Hip")
  959. lleg:FindFirstChild("touchy"):Destroy()
  960. end
  961. RS = tors:FindFirstChild("Right Shoulder")
  962. LS = tors:FindFirstChild("Left Shoulder")
  963. RH = tors:FindFirstChild("Right Hip")
  964. LH = tors:FindFirstChild("Left Hip")
  965. RJ = hrp:FindFirstChild("RootJoint")
  966. N = tors:FindFirstChild("Neck")
  967. end
  968. end
  969. function makegloo(paren, co, ci, parto, parti, nam)
  970. local gloo = Instance.new("Glue")
  971. gloo.Name = nam
  972. gloo.C0 = co
  973. gloo.C1 = ci
  974. gloo.Part0 = parto
  975. gloo.Part1 = parti
  976. gloo.Parent = paren
  977. end
  978. function makejoint(paren, co, ci, parto, parti, nam)
  979. local gloo = Instance.new("Motor6D")
  980. gloo.Name = nam
  981. gloo.C0 = co
  982. gloo.C1 = ci
  983. gloo.Part0 = parto
  984. gloo.Part1 = parti
  985. gloo.Parent = paren
  986. end
  987. function maketouchy(parent, limb, cframe)
  988. local pr = Instance.new("Part")
  989. pr.Name = "touchy"
  990. pr.Size = Vector3.new(1 * nscale.Value, 1 * nscale.Value, 1 * nscale.Value)
  991. pr.Transparency = 1
  992. pr.CustomPhysicalProperties = PhysicalProperties.new(0.55, 0.3, 0.5)
  993. pr.CanCollide = true
  994. pr.Anchored = false
  995. pr.Parent = parent
  996. local w = Instance.new("Weld")
  997. w.Part0 = pr
  998. w.Part1 = limb
  999. w.C0 = cframe
  1000. w.Parent = pr
  1001. end
  1002. local clibat, spec
  1003. local dipperhat = chr:FindFirstChild("DXD_DipperHat")
  1004. local dipperrot
  1005. if dipperhat then
  1006. dipperrot = dipperhat.Handle.HatAttachment.Rotation
  1007. end
  1008. function bat()
  1009. if selected == false or activu == true then
  1010. return
  1011. end
  1012. if batting == false then
  1013. batting = true
  1014. do
  1015. local bmod = Instance.new("Model")
  1016. bmod.Name = "bmodel"
  1017. bmod.Parent = chr
  1018. local hnd = makepart("Br. yellowish green", "hnd", 0, 0, "SmoothPlastic", bmod, rarm.CFrame)
  1019. local hmes = makemesh("Head", Vector3.new(2, 9, 2), nil, hnd)
  1020. local hwel = makeweld(hnd, hnd, rarm, ang(rd(90), rd(0), rd(0)) * cf(0, 1, 0), nil)
  1021. hnd.Transparency = 1
  1022. local pt5 = makepart("Dark stone grey", "pt5", 0, 0, "SmoothPlastic", bmod, rarm.CFrame)
  1023. local p5m = makemesh("FileMesh", Vector3.new(2, 2, 1.7), "rbxassetid://54983181", pt5)
  1024. p5m.Offset = Vector3.new(.2, -.3, -2.5)
  1025. local p5w = makeweld(pt5, pt5, hnd, ang(rd(0), rd(90), rd(90)) * cf(0, -4.025, 0), nil)
  1026.  
  1027. local swingwoo = Instance.new("Sound")
  1028. swingwoo.SoundId = "rbxassetid://10209640"
  1029. swingwoo.Pitch = rd2(10, 11) / 10
  1030. swingwoo.Name = "sweae"
  1031. swingwoo.Volume = 1
  1032. swingwoo.Parent = hrp
  1033. clibat = tool.Activated:connect(function()
  1034. if selected == false or activu == true or ragged == true then
  1035. return
  1036. end
  1037. activu = true
  1038. for _ = 1, 5 do
  1039. swait()
  1040. lerpz(RJ, "C0", RJC0 * cf(0, 0.5, 0) * ang(rd(-20), rd(10), rd(-40)), 0.7)
  1041. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  1042. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(-20), rd(179)), 0.7)
  1043. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  1044. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-20), rd(20), rd(30)), 0.7)
  1045. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  1046. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7)
  1047. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  1048. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-110)), 0.7)
  1049. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  1050. end
  1051. local bon = Instance.new("Sound")
  1052. bon.SoundId = "rbxassetid://135436482"
  1053. bon.Pitch = rd2(10, 12) / 10
  1054. bon.Volume = 1
  1055. bon.Parent = hrp
  1056. game.Debris:AddItem(bon, 1)
  1057. bon:Play()
  1058. swingwoo:Play()
  1059. for X = 1, 5 do
  1060. swait()
  1061. if X > 1 then
  1062. hito(pt5, 5, 10, 0.2, hrp.CFrame.lookVector * 25, Vector3.new(0, rd2(-5, 5), rd2(-40, 40)))
  1063. end
  1064. lerpz(RJ, "C0", RJC0 * cf(0, -0.5, 0) * ang(rd(60), rd(-10), rd(30)), 0.7)
  1065. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  1066. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(20), rd(40)), 0.7)
  1067. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  1068. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-70), rd(20), rd(30)), 0.7)
  1069. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  1070. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(20), rd(-40), rd(80)), 0.7)
  1071. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  1072. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(60)), 0.7)
  1073. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  1074. end
  1075. activu = false
  1076. end)
  1077. spec = mouse.KeyDown:connect(function(keya)
  1078. if selected == false or activu == true or ragged == true then
  1079. return
  1080. end
  1081. if keya == "e" then
  1082. activu = true
  1083. local speed = human.WalkSpeed
  1084. human.WalkSpeed = 0
  1085. human:SetStateEnabled(3, false)
  1086. local sond = Instance.new("Sound")
  1087. sond.Volume = 2
  1088. sond.Pitch = 1
  1089. sond.EmitterSize = 15
  1090. sond.SoundId = "rbxassetid://154606531"
  1091. sond.Parent = pt5
  1092. chara.Head.face.Texture = "http://www.roblox.com/asset/?id=249062487"
  1093.  
  1094. sond:Play()
  1095.  
  1096. local function expa()
  1097.  
  1098.  
  1099. for _ = 1, 1 do
  1100. swait()
  1101. hmes.Scale = hmes.Scale:lerp(Vector3.new(18, 81, 18), 0.7)
  1102.  
  1103. p5m.Scale = p5m.Scale:lerp(Vector3.new(2, 2, 3.7), 0.7)
  1104. p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(90), rd(90)) * cf(0, -4.5, 0), 0.7)
  1105.  
  1106. end
  1107. for _ = 1, 2 do
  1108. swait()
  1109. hmes.Scale = hmes.Scale:lerp(Vector3.new(14, 63, 14), 0.7)
  1110.  
  1111. p5m.Scale = p5m.Scale:lerp(Vector3.new(3, 3, 2.7), 0.7)
  1112. p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(90), rd(90)) * cf(0, -4.025, 0), 0.7)
  1113.  
  1114. end
  1115. end
  1116. for _ = 1, 2 do
  1117. swait()
  1118. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(0)), 0.5)
  1119. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.5)
  1120. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-20), rd(0), rd(-10)), 0.5)
  1121. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  1122. lerpz(LS, "C0", LSC0 * cf(0, 0.2, -0.2) * ang(rd(70), rd(-60), rd(-100)), 0.5)
  1123. if dipperhat then
  1124. dipperhat.Handle.HatAttachment.Rotation = dipperhat.Handle.HatAttachment.Rotation:lerp(dipperrot + Vector3.new(0, 0, 0), 0.3)
  1125. end
  1126. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  1127. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-10)), 0.5)
  1128. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  1129. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-10), rd(-10)), 0.5)
  1130. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  1131. end
  1132.  
  1133. print('um')
  1134. for _ = 1, 20 do
  1135.  
  1136.  
  1137. swait()
  1138.  
  1139.  
  1140. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(0)), 0.5)
  1141. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.5)
  1142. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-20), rd(0), rd(-10)), 0.5)
  1143. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  1144. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(35), rd(-50), rd(-100)), 0.3)
  1145. if dipperhat then
  1146. dipperhat.Handle.HatAttachment.Rotation = dipperhat.Handle.HatAttachment.Rotation:lerp(dipperrot + Vector3.new(15, 0, 0), 0.3)
  1147. end
  1148. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  1149. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-10)), 0.5)
  1150. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  1151. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-10), rd(-10)), 0.5)
  1152. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  1153. end
  1154. print('no')
  1155. chara.Head.face.Texture = "http://www.roblox.com/asset/?id=192467476"
  1156. for _ = 1, 10 do
  1157. swait()
  1158. lerpz(RJ, "C0", RJC0 * cf(1.1, 0.6, 0) * ang(rd(0), rd(0), rd(-120)), 0.2)
  1159. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(-20)), 0.2)
  1160. lerpz(RS, "C0", RSC0 * cf(0, 0.4, 0.2) * ang(rd(80), rd(-20), rd(80)), 0.2)
  1161. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  1162. lerpz(LS, "C0", LSC0 * cf(0, -0.2, -0.7) * ang(rd(-20), rd(-60), rd(-80)), 0.2)
  1163. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  1164. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-5)), 0.2)
  1165. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  1166. lerpz(LH, "C0", LHC0 * cf(0.4, 0, -0.4) * ang(rd(-10), rd(70), rd(-5)), 0.2)
  1167. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  1168. end
  1169. expa()
  1170.  
  1171. for O = 1, 10 do
  1172. swait()
  1173. lerpz(RJ, "C0", RJC0 * cf(0, 0.3, 0) * ang(rd(0), rd(0), rd(60)), 0.001 + O * 0.01)
  1174. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(-20)), 0.001 + O * 0.01)
  1175. lerpz(RS, "C0", RSC0 * cf(0, 0.4, 0.2) * ang(rd(80), rd(-20), rd(80)), 0.001 + O * 0.01)
  1176. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.001 + O * 0.01)
  1177. lerpz(LS, "C0", LSC0 * cf(0, -0.2, -0.7) * ang(rd(-20), rd(-60), rd(-80)), 0.001 + O * 0.01)
  1178. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.001 + O * 0.01)
  1179. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-5)), 0.001 + O * 0.01)
  1180. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.001 + O * 0.01)
  1181. lerpz(LH, "C0", LHC0 * cf(0.4, 0, -0.4) * ang(rd(-10), rd(70), rd(-5)), 0.001 + O * 0.01)
  1182. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.001 + O * 0.01)
  1183. end
  1184. local whoooo = Instance.new("Sound")
  1185. whoooo.Volume = .7
  1186. whoooo.TimePosition = 0
  1187. whoooo.Pitch = 1
  1188. whoooo.SoundId = "rbxassetid://254873067"
  1189. whoooo.Parent = pt5
  1190. whoooo:Play()
  1191. game.Debris:AddItem(whoooo, 2)
  1192.  
  1193. local whoooo2 = Instance.new("Sound")
  1194. whoooo2.Volume = 3
  1195. whoooo2.TimePosition = 0
  1196. whoooo2.Pitch = 1
  1197. whoooo2.SoundId = "rbxassetid://296102734"
  1198. whoooo2.Parent = pt5
  1199.  
  1200. game.Debris:AddItem(whoooo2, 2)
  1201.  
  1202. for O = 1, 6 do
  1203. swait()
  1204. hito(pt5, 25, 40, 0.75, hrp.CFrame.rightVector * -100 + Vector3.new(0, 50, 0), Vector3.new(0, rd2(-25, 25), rd2(-160, 160)))
  1205. lerpz(RJ, "C0", RJC0 * cf(0.9, -0.7, 0) * ang(rd(0), rd(0), rd(120)), 0.1 + O * 0.05)
  1206. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(-20)), 0.1 + O * 0.05)
  1207. lerpz(RS, "C0", RSC0 * cf(0, 0.4, 0.2) * ang(rd(80), rd(20), rd(20)), 0.1 + O * 0.05)
  1208. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.05)
  1209. lerpz(LS, "C0", LSC0 * cf(0, -0.2, -0.7) * ang(rd(-20), rd(-60), rd(-80)), 0.1 + O * 0.05)
  1210. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.05)
  1211. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-5)), 0.1 + O * 0.05)
  1212. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.05)
  1213. lerpz(LH, "C0", LHC0 * cf(0.4, 0, -0.4) * ang(rd(-10), rd(70), rd(-5)), 0.1 + O * 0.05)
  1214. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.05)
  1215. end
  1216. whoooo2:Play()
  1217. for O = 1, 13 do
  1218. swait()
  1219. hmes.Scale = hmes.Scale:lerp(Vector3.new(2, 9, 2), 0.05 + O * 0.075)
  1220.  
  1221. p5m.Scale = p5m.Scale:lerp(Vector3.new(2, 2, 1.7), 0.05 + O * 0.075)
  1222. p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(90), rd(90)) * cf(0, -4.025, 0), 0.05 + O * 0.075)
  1223.  
  1224. lerpz(RJ, "C0", RJC0 * cf(1.1, -0.8, 0) * ang(rd(0), rd(0), rd(150)), 0.05 + O * 0.075)
  1225. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(-20)), 0.05 + O * 0.075)
  1226. lerpz(RS, "C0", RSC0 * cf(0, 0.4, 0.2) * ang(rd(80), rd(30), rd(10)), 0.05 + O * 0.075)
  1227. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.05 + O * 0.075)
  1228. lerpz(LS, "C0", LSC0 * cf(0, -0.2, -0.7) * ang(rd(20), rd(20), rd(-20)), 0.05 + O * 0.075)
  1229. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.05 + O * 0.075)
  1230. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-5)), 0.05 + O * 0.075)
  1231. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.05 + O * 0.075)
  1232. lerpz(LH, "C0", LHC0 * cf(0.4, 0, -0.4) * ang(rd(-10), rd(70), rd(-5)), 0.05 + O * 0.075)
  1233. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.05 + O * 0.075)
  1234. end
  1235. if dipperhat then
  1236. dipperhat.Handle.HatAttachment.Rotation = dipperrot
  1237. end
  1238. human.WalkSpeed = speed
  1239. human:SetStateEnabled(3, true)
  1240. activu = false
  1241. end
  1242. --------------------------------------------------------------------------------------------------------------------------------------
  1243.  
  1244.  
  1245. --------------------------------------------------------------------------------------------------------------------------------------
  1246. if keya == "q" then
  1247. activu = true
  1248. do
  1249. local checkkey = true
  1250. local keyingup = mouse.KeyUp:connect(function(xzx)
  1251. if xzx == "q" then
  1252. checkkey = false
  1253. end
  1254. end)
  1255. repeat
  1256. for _ = 1, 2 do
  1257. swait()
  1258. lerpz(RJ, "C0", RJC0 * cf(0, 0.5, 0) * ang(rd(-20), rd(10), rd(-40)), 0.7)
  1259. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.7)
  1260. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(-20), rd(179)), 0.7)
  1261. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  1262. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-20), rd(20), rd(30)), 0.7)
  1263. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  1264. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7)
  1265. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  1266. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-110)), 0.7)
  1267. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  1268. end
  1269. swingwoo:Play()
  1270. for T = 1, 2 do
  1271. swait()
  1272. if T == 2 then
  1273. hito(pt5, 5, 4, 0.03, hrp.CFrame.lookVector * 10, Vector3.new(0, rd2(-2, 2), rd2(-10, 10)))
  1274. end
  1275. lerpz(RJ, "C0", RJC0 * cf(0, -0.5, 0) * ang(rd(60), rd(-10), rd(30)), 0.7)
  1276. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  1277. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(20), rd(40)), 0.7)
  1278. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  1279. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-70), rd(20), rd(30)), 0.7)
  1280. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  1281. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(20), rd(-40), rd(80)), 0.7)
  1282. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  1283. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(60)), 0.7)
  1284. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  1285. end
  1286. for _ = 1, 2 do
  1287. swait()
  1288. lerpz(RJ, "C0", RJC0 * cf(0, 0.5, 0) * ang(rd(-30), rd(20), rd(0)), 0.7)
  1289. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.7)
  1290. lerpz(RS, "C0", RSC0 * cf(0, 0.5, 0) * ang(rd(60), rd(20), rd(179)), 0.7)
  1291. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  1292. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-40), rd(20), rd(30)), 0.7)
  1293. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  1294. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7)
  1295. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  1296. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-30), rd(20), rd(35)), 0.7)
  1297. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  1298. end
  1299. swingwoo:Play()
  1300. for T = 1, 2 do
  1301. swait()
  1302. if T == 2 then
  1303. hito(pt5, 5, 4, 0.03, hrp.CFrame.lookVector * 10, Vector3.new(0, rd2(-2, 2), rd2(-10, 10)))
  1304. end
  1305. lerpz(RJ, "C0", RJC0 * cf(0, -0.5, 0) * ang(rd(40), rd(40), rd(0)), 0.7)
  1306. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.7)
  1307. lerpz(RS, "C0", RSC0 * cf(0, 0.5, 0) * ang(rd(60), rd(20), rd(30)), 0.7)
  1308. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  1309. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-70), rd(20), rd(30)), 0.7)
  1310. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  1311. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7)
  1312. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  1313. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-30), rd(20), rd(-65)), 0.7)
  1314. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  1315. end
  1316. until not checkkey
  1317. keyingup:Disconnect()
  1318. activu = false
  1319. end
  1320. end
  1321. if keya == "f" then
  1322. activu = true
  1323. do
  1324. local speed = human.WalkSpeed
  1325. human.WalkSpeed = 2
  1326. human:SetStateEnabled(3, false)
  1327. local checkkey = true
  1328. local chargecounter = 0
  1329. local keyingup = mouse.KeyUp:connect(function(xzx)
  1330. if xzx == "f" then
  1331. checkkey = false
  1332. end
  1333. end)
  1334. local firederp
  1335. for _ = 1, 8 do
  1336. swait()
  1337. hwel.C0 = hwel.C0:lerp(ang(rd(65), rd(0), rd(0)) * cf(0, 1, 0), 0.6)
  1338. lerpz(RJ, "C0", RJC0 * cf(0.5, 0.5, 0) * ang(rd(0), rd(0), rd(-70)), 0.5)
  1339. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(60)), 0.5)
  1340. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(70), rd(-10), rd(80)), 0.5)
  1341. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  1342. lerpz(LS, "C0", LSC0 * cf(-0.3, -0.1, -1) * ang(rd(-10), rd(-70), rd(-75)), 0.5)
  1343. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(-20), rd(0)), 0.5)
  1344. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-5), rd(-10), rd(5)), 0.5)
  1345. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  1346. lerpz(LH, "C0", LHC0 * cf(0.5, 0, -0.4) * ang(rd(0), rd(80), rd(-5)), 0.5)
  1347. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(0)), 0.5)
  1348. end
  1349. repeat
  1350. swait()
  1351. chargecounter = chargecounter + 1
  1352. 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)
  1353. 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)
  1354. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(rd2(-25, -15)), rd(0)), 0.05 + chargecounter * 0.019)
  1355. if chargecounter > 30 and firederp == nil then
  1356. firederp = Instance.new("Fire")
  1357. firederp.Parent = pt5
  1358. end
  1359. until not checkkey or chargecounter > 50
  1360. swingwoo:Play()
  1361. for U = 1, 10 do
  1362. swait()
  1363. if U < 3 then
  1364. 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)))
  1365. if chargecounter > 30 then
  1366. tagexplode(pt5, 5, 1)
  1367. end
  1368. end
  1369. hwel.C0 = hwel.C0:lerp(ang(rd(135), rd(0), rd(0)) * cf(0, 1, 0), 0.6)
  1370. lerpz(RJ, "C0", RJC0 * cf(0.5, -0.5, 0) * ang(rd(0), rd(0), rd(50)), 0.6)
  1371. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(-30)), 0.6)
  1372. lerpz(RS, "C0", RSC0 * cf(0.75, 0.5, -0.5) * ang(rd(0), rd(60), rd(120)), 0.4)
  1373. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(100), rd(0)), 0.4)
  1374. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(20), rd(-125)), 0.4)
  1375. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(-20), rd(0)), 0.4)
  1376. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-5), rd(-10), rd(5)), 0.6)
  1377. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.6)
  1378. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(-10), rd(-6)), 0.6)
  1379. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(0)), 0.6)
  1380. end
  1381. if firederp then
  1382. firederp:Destroy()
  1383. end
  1384. swait(10)
  1385. hwel.C0 = ang(rd(90), rd(0), rd(0)) * cf(0, 1, 0)
  1386. keyingup:Disconnect()
  1387. human.WalkSpeed = speed
  1388. human:SetStateEnabled(3, true)
  1389. activu = false
  1390. end
  1391. end
  1392. end)
  1393. end
  1394. elseif batting == true then
  1395. batting = false
  1396. clibat:Disconnect()
  1397. spec:Disconnect()
  1398. hrp.sweae:Destroy()
  1399. local batmod = chr:FindFirstChild("bmodel")
  1400. batmod.hnd.Weld:Destroy()
  1401. batmod.PrimaryPart = batmod.hnd
  1402. batmod:SetPrimaryPartCFrame(rarm.CFrame * ang(rd(-90), rd(0), rd(0)) * cf(0, 0, -1))
  1403. for _, A in pairs(batmod:GetChildren()) do
  1404. if A.ClassName == "Part" then
  1405. A.CanCollide = true
  1406. A.Anchored = false
  1407. end
  1408. end
  1409. batmod.Parent = workspace
  1410. game.Debris:AddItem(batmod, 8)
  1411. end
  1412. end
  1413. local movin = false
  1414. local cliham, hamspec
  1415. function ham()
  1416. if batting == false then
  1417. batting = true
  1418. do
  1419. local bmod = Instance.new("Model")
  1420. bmod.Name = "bmodel"
  1421. bmod.Parent = chr
  1422. local makemotor = function(parent, p0, p1, c0, c1)
  1423. local wel = Instance.new("Motor6D")
  1424. wel.Part0 = p0
  1425. wel.Part1 = p1
  1426. wel.C0 = c0
  1427. if c1 ~= nil then
  1428. wel.C1 = c1
  1429. end
  1430. wel.Parent = parent
  1431. return wel
  1432. end
  1433. local hnd = makepart("Br. yellowish green", "hnd", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
  1434. hnd.Anchored = true
  1435. local hmes = makemesh("Head", Vector3.new(5, 30, 5), nil, hnd)
  1436. movin = true
  1437. hnd.CFrame = hrp.CFrame
  1438. coroutine.resume(coroutine.create(function()
  1439. while hnd.Anchored == true do
  1440. swait()
  1441. if movin then
  1442. hnd.CFrame = hnd.CFrame:lerp(hrp.CFrame * ang(rd(40), rd(0), rd(0)) * cf(0, 11, 0), 0.65)
  1443. end
  1444. end
  1445. end))
  1446. local pt1 = makepart("Br. yellowish green", "pt1", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
  1447. local p1m = makemesh("Head", Vector3.new(6, 5.5, 5.5), nil, pt1)
  1448. local p1w = makemotor(pt1, pt1, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, 3, 0), nil)
  1449. local pt2 = makepart("Br. yellowish green", "pt2", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
  1450. local p2m = makemesh("Head", Vector3.new(6, 5.5, 5.5), nil, pt2)
  1451. local p2w = makemotor(pt2, pt2, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, -3, 0), nil)
  1452. local pt3 = makepart("Bright yellow", "pt3", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
  1453. local p3m = makemesh("Head", Vector3.new(6.5, 6.5, 6.5), nil, pt3)
  1454. local p3w = makemotor(pt3, pt3, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, 3.75, 0), nil)
  1455. local pt4 = makepart("Br. yellowish green", "pt4", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
  1456. local p4m = makemesh("FileMesh", Vector3.new(1, 1, 1), "rbxassetid://250640098", pt4)
  1457. p4m.TextureId = "rbxassetid://250639536"
  1458. local p4w = makemotor(pt4, pt4, hnd, ang(rd(180), rd(180), rd(0)) * cf(0, 4.25, 0.25), nil)
  1459. local pt5 = makepart("Bright blue", "pt5", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
  1460. local p5m = makemesh("Head", Vector3.new(5, 90, 4), nil, pt5)
  1461. local p5w = makemotor(pt5, pt5, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, -12, 0), nil)
  1462. local pt6 = makepart("Bright blue", "pt6", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
  1463. local p6m = makemesh("FileMesh", Vector3.new(0.16, 0.4, 0.16), "rbxassetid://703458158", pt6)
  1464. local p6w = makemotor(pt6, pt6, hnd, ang(rd(180), rd(0), rd(0)) * cf(0, -16, 0), nil)
  1465. local pt7 = makepart("Bright yellow", "pt7", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
  1466. local p7m = makemesh("Head", Vector3.new(75, 75, 75), nil, pt7)
  1467. local p7w = makemotor(pt7, pt7, hnd, ang(rd(0), rd(90), rd(0)) * cf(0, -27, 0), nil)
  1468. local hdec1 = Instance.new("Decal")
  1469. hdec1.Texture = "rbxasset://textures/face.png"
  1470. hdec1.Face = "Front"
  1471. hdec1.Parent = pt7
  1472. local pt8 = makepart("Bright yellow", "pt8", 0, 1, "SmoothPlastic", bmod, hrp.CFrame)
  1473. local p8m = makemesh("Head", Vector3.new(75, 75, 75), nil, pt8)
  1474. local p8w = makemotor(pt8, pt8, hnd, ang(rd(0), rd(-90), rd(0)) * cf(0, -27, 0), nil)
  1475. local hdec2 = Instance.new("Decal")
  1476. hdec2.Texture = "rbxasset://textures/face.png"
  1477. hdec2.Face = "Front"
  1478. hdec2.Parent = pt8
  1479. local pt9 = makepart("Bright yellow", "pt9", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
  1480. local p9m = makemesh("FileMesh", Vector3.new(12, 11, 11), "rbxassetid://272942659", pt9)
  1481. local p9w = makemotor(pt9, pt9, hnd, ang(rd(0), rd(90), rd(0)) * cf(0, -30, 0), nil)
  1482. p9m.TextureId = "rbxassetid://272942750"
  1483. local pt10 = makepart("Bright yellow", "pt10", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
  1484. local p10m = makemesh("Head", Vector3.new(60, 60, 60), nil, pt10)
  1485. local p10w = makemotor(pt10, pt10, pt7, ang(rd(0), rd(0), rd(90)) * cf(11, 0, 0), nil)
  1486. local hdec3 = Instance.new("Decal")
  1487. hdec3.Texture = "rbxasset://textures/face.png"
  1488. hdec3.Face = "Front"
  1489. hdec3.Parent = pt10
  1490. local pt11 = makepart("Bright yellow", "pt11", 0, 1, "SmoothPlastic", bmod, hrp.CFrame)
  1491. local p11m = makemesh("Head", Vector3.new(60, 60, 60), nil, pt11)
  1492. local p11w = makemotor(pt11, pt11, pt7, ang(rd(0), rd(180), rd(90)) * cf(11, 0, 0), nil)
  1493. local hdec4 = Instance.new("Decal")
  1494. hdec4.Texture = "rbxasset://textures/face.png"
  1495. hdec4.Face = "Front"
  1496. hdec4.Parent = pt11
  1497. local pt12 = makepart("Bright yellow", "pt12", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
  1498. local p12m = makemesh("Head", Vector3.new(60, 60, 60), nil, pt12)
  1499. local p12w = makemotor(pt12, pt12, pt7, ang(rd(0), rd(0), rd(-90)) * cf(-11, 0, 0), nil)
  1500. local hdec5 = Instance.new("Decal")
  1501. hdec5.Texture = "rbxasset://textures/face.png"
  1502. hdec5.Face = "Front"
  1503. hdec5.Parent = pt12
  1504. local pt13 = makepart("Bright yellow", "pt13", 0, 1, "SmoothPlastic", bmod, hrp.CFrame)
  1505. local p13m = makemesh("Head", Vector3.new(60, 60, 60), nil, pt13)
  1506. local p13w = makemotor(pt13, pt13, pt7, ang(rd(0), rd(180), rd(-90)) * cf(-11, 0, 0), nil)
  1507. local hdec6 = Instance.new("Decal")
  1508. hdec6.Texture = "rbxasset://textures/face.png"
  1509. hdec6.Face = "Front"
  1510. hdec6.Parent = pt13
  1511. cliham = tool.Activated:connect(function()
  1512. if selected == false or activu == true or ragged == true then
  1513. return
  1514. end
  1515. activu = true
  1516. movin = false
  1517. for B = 1, 20 do
  1518. swait()
  1519. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(0)), 0.4)
  1520. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(8), rd(0), rd(0)), 0.4)
  1521. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-15), rd(-5), rd(170)), 0.4)
  1522. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4)
  1523. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(-10), rd(10)), 0.4)
  1524. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4)
  1525. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-5), rd(-10), rd(-10)), 0.4)
  1526. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4)
  1527. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-5), rd(10), rd(10)), 0.4)
  1528. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4)
  1529. hnd.CFrame = hnd.CFrame:lerp(rarm.CFrame * ang(rd(-110), rd(0), rd(0)) * cf(0, 0, -1), 0.1 + B * 0.045)
  1530. end
  1531. for B = 1, 30 do
  1532. swait()
  1533. lerpz(RJ, "C0", RJC0 * cf(0, 0.8, 0) * ang(rd(-25), rd(0), rd(-50)), 0.1 + B / 80)
  1534. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-18), rd(0), rd(40)), 0.1 + B / 80)
  1535. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-30), rd(-5), rd(160)), 0.1 + B / 80)
  1536. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + B / 80)
  1537. lerpz(LS, "C0", LSC0 * cf(-0.8, 0, -1) * ang(rd(-60), rd(-20), rd(-150)), 0.1 + B / 80)
  1538. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + B / 80)
  1539. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(-20), rd(-10)), 0.1 + B / 80)
  1540. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + B / 80)
  1541. lerpz(LH, "C0", LHC0 * cf(0.5, 0, -0.4) * ang(rd(-5), rd(60), rd(-110)), 0.1 + B / 80)
  1542. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + B / 80)
  1543. hnd.CFrame = hnd.CFrame:lerp(rarm.CFrame * ang(rd(-110), rd(0), rd(0)) * cf(0, 0, -1), 1)
  1544. end
  1545. for B = 1, 7 do
  1546. swait()
  1547. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(40)), 0.015 + B / 15)
  1548. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(9), rd(0), rd(-15)), 0.015 + B / 15)
  1549. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-50), rd(100)), 0.015 + B / 15)
  1550. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.015 + B / 15)
  1551. lerpz(LS, "C0", LSC0 * cf(-0.8, 0, -1) * ang(rd(-60), rd(-25), rd(-90)), 0.015 + B / 15)
  1552. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.015 + B / 15)
  1553. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(-20), rd(10)), 0.015 + B / 15)
  1554. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.015 + B / 15)
  1555. lerpz(LH, "C0", LHC0 * cf(0.1, 0, -0.1) * ang(rd(-5), rd(20), rd(-20)), 0.015 + B / 15)
  1556. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.015 + B / 15)
  1557. hnd.CFrame = hnd.CFrame:lerp(rarm.CFrame * ang(rd(-110), rd(0), rd(0)) * cf(0, 0, -1), 1)
  1558. end
  1559. for B = 1, 4 do
  1560. swait()
  1561. lerpz(RJ, "C0", RJC0 * cf(0, -0.8, 0) * ang(rd(70), rd(0), rd(40)), 0.38 + B * 0.1)
  1562. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(9), rd(0), rd(-15)), 0.38 + B * 0.1)
  1563. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-40), rd(100)), 0.38 + B * 0.1)
  1564. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.38 + B * 0.1)
  1565. lerpz(LS, "C0", LSC0 * cf(-0.8, 0, -1) * ang(rd(-60), rd(-25), rd(-90)), 0.38 + B * 0.1)
  1566. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.38 + B * 0.1)
  1567. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(-20), rd(60)), 0.38 + B * 0.1)
  1568. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.38 + B * 0.1)
  1569. lerpz(LH, "C0", LHC0 * cf(0.1, 0, -0.1) * ang(rd(-5), rd(20), rd(70)), 0.38 + B * 0.1)
  1570. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.38 + B * 0.1)
  1571. hnd.CFrame = hnd.CFrame:lerp(rarm.CFrame * ang(rd(-110), rd(0), rd(0)) * cf(0, 0, -1), 1)
  1572. end
  1573. swait(15)
  1574. movin = true
  1575. activu = false
  1576. end)
  1577. end
  1578. elseif batting == true then
  1579. batting = false
  1580. cliham:Disconnect()
  1581. local badevz = chr:FindFirstChild("bmodel")
  1582. badevz.PrimaryPart = badevz.hnd
  1583. for _, A in pairs(badevz:GetChildren()) do
  1584. if A.ClassName == "Part" then
  1585. A.CanCollide = true
  1586. A.Anchored = false
  1587. end
  1588. end
  1589. movin = false
  1590. badevz.Parent = workspace
  1591. badevz:SetPrimaryPartCFrame(hrp.CFrame * ang(rd(40), rd(0), rd(0)) * cf(0, -11, 0))
  1592. game.Debris:AddItem(badevz, 8)
  1593. end
  1594. end
  1595. game:GetService("ContentProvider"):Preload("rbxassetid://725969678")
  1596. function lauf()
  1597. if selected == false or activu == true then
  1598. return
  1599. end
  1600. lauf1:Play()
  1601. end
  1602. function makenoob(cfrem, scalo, rags)
  1603. nscale.Value = scalo
  1604. local md = Instance.new("Model")
  1605. md.Name = "Noob"
  1606. md.Parent = workspace
  1607. local hu = Instance.new("Humanoid")
  1608. hu.RigType = "R6"
  1609. hu.MaxHealth = 100 * scalo
  1610. hu.Health = 100 * scalo
  1611. hu.Parent = md
  1612. local anm = Instance.new("Animator")
  1613. anm.Parent = hu
  1614. hu.PlatformStand = true
  1615. local light = function(part)
  1616. part.CustomPhysicalProperties = PhysicalProperties.new(0.35, 0.3, 0.5)
  1617. end
  1618. local hd = Instance.new("Part")
  1619. hd.Name = "Head"
  1620. hd.Size = Vector3.new(2 * nscale.Value, 1 * nscale.Value, 1 * nscale.Value)
  1621. hd.TopSurface = "Smooth"
  1622. hd.BottomSurface = "Inlet"
  1623. hd.Locked = true
  1624. hd.BrickColor = BrickColor.new("Bright yellow")
  1625. hd.CanCollide = true
  1626. hd.Anchored = false
  1627. light(hd)
  1628. hd.Parent = md
  1629. local hm = Instance.new("SpecialMesh")
  1630. hm.MeshType = "Head"
  1631. hm.Scale = Vector3.new(1.25, 1.25, 1.25)
  1632. hm.Parent = hd
  1633. local hf = Instance.new("Decal")
  1634. hf.Texture = "rbxasset://textures/face.png"
  1635. local gen = math.random(1, 40)
  1636. if gen == 3 then
  1637. hf.Texture = "rbxassetid://260884109"
  1638. end
  1639. if gen == 8 then
  1640. hf.Texture = "rbxassetid://260569492"
  1641. end
  1642. if gen == 12 then
  1643. hf.Texture = "rbxassetid://259580505"
  1644. end
  1645. if gen == 16 then
  1646. hf.Texture = "rbxassetid://259579232"
  1647. end
  1648. if gen == 24 then
  1649. hf.Texture = "rbxassetid://259571525"
  1650. end
  1651. if gen == 28 then
  1652. hf.Texture = "rbxassetid://258283210"
  1653. end
  1654. if gen == 32 then
  1655. hf.Texture = "rbxassetid://258940032"
  1656. end
  1657. if gen == 38 then
  1658. hf.Texture = "rbxassetid://673220970"
  1659. hf.Color3 = Color3.new(0, 0, 0)
  1660. end
  1661. hf.Face = "Front"
  1662. hf.Parent = hd
  1663. local hrpa = Instance.new("Part")
  1664. hrpa.Name = "HumanoidRootPart"
  1665. hrpa.TopSurface, hrpa.BottomSurface = 0, 0
  1666. hrpa.Size = Vector3.new(2 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  1667. hrpa.Transparency = 1
  1668. hrpa.CanCollide = false
  1669. hrpa.Locked = true
  1670. light(hrpa)
  1671. hrpa.Parent = md
  1672. local tagbomb = Instance.new("BoolValue")
  1673. tagbomb.Name = "tagbomb"
  1674. tagbomb.Value = false
  1675. tagbomb.Parent = hrpa
  1676. local learm = Instance.new("Part")
  1677. learm.Name = "Left Arm"
  1678. learm.BrickColor = BrickColor.new("Bright yellow")
  1679. learm.CanCollide = false
  1680. learm.Locked = true
  1681. learm.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  1682. light(learm)
  1683. learm.Parent = md
  1684. local riarm = Instance.new("Part")
  1685. riarm.Name = "Right Arm"
  1686. riarm.BrickColor = BrickColor.new("Bright yellow")
  1687. riarm.CanCollide = false
  1688. riarm.Locked = true
  1689. light(riarm)
  1690. riarm.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  1691. riarm.Parent = md
  1692. local leleg = Instance.new("Part")
  1693. leleg.Name = "Left Leg"
  1694. leleg.BrickColor = BrickColor.new("Br. yellowish green")
  1695. leleg.CanCollide = false
  1696. leleg.Locked = true
  1697. light(leleg)
  1698. leleg.BottomSurface = 0
  1699. leleg.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  1700. leleg.Parent = md
  1701. local rileg = Instance.new("Part")
  1702. rileg.Name = "Right Leg"
  1703. rileg.BrickColor = BrickColor.new("Br. yellowish green")
  1704. rileg.CanCollide = false
  1705. rileg.Locked = true
  1706. light(rileg)
  1707. rileg.BottomSurface = 0
  1708. rileg.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  1709. rileg.Parent = md
  1710. local tor = Instance.new("Part")
  1711. tor.Name = "Torso"
  1712. tor.BrickColor = BrickColor.new("Bright blue")
  1713. tor.Locked = true
  1714. light(tor)
  1715. tor.Size = Vector3.new(2 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  1716. tor.LeftSurface, tor.RightSurface = "Weld", "Weld"
  1717. tor.Parent = md
  1718. md.PrimaryPart = hrpa
  1719. md:SetPrimaryPartCFrame(cfrem)
  1720. md:makeJoints()
  1721. makejoint(hrpa, RootJointC0, RootJointC1, hrpa, tor, "RootJoint")
  1722. makejoint(tor, NeckC0, NeckC1, tor, hd, "Neck")
  1723. if rags == true then
  1724. makegloo(tor, RightShoulderC0, RightShoulderC1, tor, riarm, "Right Shoulder")
  1725. makegloo(tor, LeftShoulderC0, LeftShoulderC1, tor, learm, "Left Shoulder")
  1726. makegloo(tor, RightHipC0, RightHipC1, tor, rileg, "Right Hip")
  1727. makegloo(tor, LeftHipC0, LeftHipC1, tor, leleg, "Left Hip")
  1728. maketouchy(riarm, riarm, CFrame.new(0, 0.5 * nscale.Value, 0))
  1729. maketouchy(learm, learm, CFrame.new(0, 0.5 * nscale.Value, 0))
  1730. maketouchy(leleg, leleg, CFrame.new(0, 0.5 * nscale.Value, 0))
  1731. maketouchy(rileg, rileg, CFrame.new(0, 0.5 * nscale.Value, 0))
  1732. elseif rags == false then
  1733. makejoint(tor, RightShoulderC0, RightShoulderC1, tor, riarm, "Right Shoulder")
  1734. makejoint(tor, LeftShoulderC0, LeftShoulderC1, tor, learm, "Left Shoulder")
  1735. makejoint(tor, RightHipC0, RightHipC1, tor, rileg, "Right Hip")
  1736. makejoint(tor, LeftHipC0, LeftHipC1, tor, leleg, "Left Hip")
  1737. hu.PlatformStand = false
  1738. end
  1739. nscale.Value = 1
  1740. hu.Touched:connect(function(tpart, uwot)
  1741. if tagbomb.Value == true and tpart.Parent ~= md and tpart.Parent.Parent ~= md and tpart.Parent.Parent.Parent ~= md then
  1742. tagbomb.Value = false
  1743. hu.Health = 0
  1744. local derp = Instance.new("Explosion")
  1745. derp.BlastPressure = 200
  1746. derp.BlastRadius = 8
  1747. derp.DestroyJointRadiusPercent = 0
  1748. derp.ExplosionType = 2
  1749. derp.Visible = true
  1750. derp.Position = uwot.Position - Vector3.new(0, 0.5, 0)
  1751. derp.Parent = workspace
  1752. game.Debris:AddItem(md, 8)
  1753. end
  1754. end)
  1755. return md
  1756. end
  1757. function makecircle(cfrem, scalo)
  1758. local mcir1 = Instance.new("Part")
  1759. mcir1.Anchored = true
  1760. mcir1.CanCollide = false
  1761. mcir1.Size = Vector3.new(0.2, 0.2, 0.2)
  1762. mcir1.Transparency = 1
  1763. mcir1.CFrame = cfrem
  1764. mcir1.Parent = modz
  1765. game.Debris:AddItem(mcir1, 8)
  1766. local d1 = Instance.new("Decal")
  1767. d1.Texture = "rbxassetid://602615043"
  1768. d1.Face = "Front"
  1769. d1.Parent = mcir1
  1770. local d2 = Instance.new("Decal")
  1771. d2.Texture = "rbxassetid://602617463"
  1772. d2.Face = "Back"
  1773. d2.Parent = mcir1
  1774. local bme = Instance.new("BlockMesh")
  1775. bme.Parent = mcir1
  1776. for _ = 1, 9 do
  1777. swait()
  1778. bme.Scale = bme.Scale:lerp(Vector3.new(35 * scalo, 35 * scalo, 0), 0.3)
  1779. end
  1780. coroutine.resume(coroutine.create(function()
  1781. swait(15)
  1782. for _ = 1, 12 do
  1783. swait()
  1784. d1.Transparency = d1.Transparency + 0.08
  1785. d2.Transparency = d2.Transparency + 0.08
  1786. end
  1787. mcir1:Destroy()
  1788. end))
  1789. return mcir1
  1790. end
  1791. function spawnnoob(circlecf, noobcf, scalez, ragd)
  1792. local aearae = makecircle(circlecf, scalez)
  1793. local nananb
  1794. if ragd then
  1795. nananb = makenoob(aearae.CFrame * noobcf, scalez, true)
  1796. elseif not ragd then
  1797. nananb = makenoob(aearae.CFrame * noobcf, scalez, false)
  1798. end
  1799. return nananb
  1800. end
  1801. function tagexplode(partoz, magn, bombdelay)
  1802. for _, guy in pairs(workspace:GetChildren()) do
  1803. if guy:FindFirstChild("Humanoid") and guy:FindFirstChild("HumanoidRootPart") and guy.Name == "Noob" and magn > (guy:FindFirstChild("HumanoidRootPart").Position - partoz.Position).magnitude then
  1804. coroutine.resume(coroutine.create(function()
  1805. swait(bombdelay * 30)
  1806. guy:FindFirstChild("HumanoidRootPart").tagbomb.Value = true
  1807. end))
  1808. end
  1809. end
  1810. end
  1811. function hito(partoz, magn, dmg, debtim, bodyfdire, bodyrot)
  1812. for _, guy in pairs(workspace:GetChildren()) do
  1813. 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
  1814. do
  1815. local humz = guy:FindFirstChild("Humanoid")
  1816. local horp = guy:FindFirstChild("HumanoidRootPart")
  1817. humz:TakeDamage(dmg)
  1818. humz:SetStateEnabled(16, true)
  1819. delay(debtim, function()
  1820. humz:SetStateEnabled(16, true)
  1821. end)
  1822. local db = Instance.new("StringValue")
  1823. db.Name = "alabo"
  1824. db.Parent = horp
  1825. delay(debtim, function()
  1826. db:Destroy()
  1827. end)
  1828. local b = Instance.new("Part")
  1829. nooutline(b)
  1830. b.Size = Vector3.new(0.2, 0.2, 0.2)
  1831. b.Transparency = 0.25
  1832. b.Anchored = true
  1833. b.CanCollide = false
  1834. b.BrickColor = BrickColor.new("Institutional white")
  1835. b.Locked = true
  1836. b.CFrame = horp.CFrame * CFrame.new(rd2(-1, 1), rd2(-2, 2), rd2(-1, 1))
  1837. b.Parent = modz
  1838. local c = Instance.new("SpecialMesh")
  1839. c.MeshType = "Sphere"
  1840. c.Scale = Vector3.new(3.5, 3.5, 3.5)
  1841. c.Parent = b
  1842. game.Debris:AddItem(b, 1)
  1843. if bodyfdire then
  1844. local boopyve = Instance.new("BodyVelocity")
  1845. boopyve.MaxForce = Vector3.new(9999999999999, 9999999999999, 9999999999999)
  1846. boopyve.P = 9999999999
  1847. boopyve.Velocity = bodyfdire
  1848. boopyve.Parent = horp
  1849. game.Debris:AddItem(boopyve, debtim)
  1850. end
  1851. if bodyrot then
  1852. local boopyro = Instance.new("BodyAngularVelocity")
  1853. boopyro.MaxTorque = Vector3.new(999999, 999999, 999999)
  1854. boopyro.P = math.huge
  1855. boopyro.AngularVelocity = bodyrot
  1856. boopyro.Parent = horp
  1857. game.Debris:AddItem(boopyro, debtim)
  1858. end
  1859. local bet = Instance.new("Sound")
  1860. bet.Pitch = rd2(9, 11) / 10
  1861. bet.Volume = rd2(12, 14) / 10
  1862. bet.SoundId = "rbxassetid://305526724"
  1863. bet.Parent = b
  1864. bet:Play()
  1865. coroutine.resume(coroutine.create(function()
  1866. for _ = 1, 5 do
  1867. swait()
  1868. b.Transparency = b.Transparency + 0.175
  1869. c.Scale = c.Scale + Vector3.new(0.8 * dmg, 0.8 * dmg, 0.8 * dmg)
  1870. end
  1871. end))
  1872. end
  1873. end
  1874. end
  1875. end
  1876. function cleannoobs()
  1877. for _, nib in pairs(workspace:GetChildren()) do
  1878. coroutine.resume(coroutine.create(function()
  1879. if nib.Name == "Noob" then
  1880. if nib:FindFirstChild("HumanoidRootPart") then
  1881. local g = Instance.new("Part")
  1882. g.CanCollide, g.Anchored = false, true
  1883. g.Transparency = 1
  1884. g.CFrame = nib:FindFirstChild("HumanoidRootPart").CFrame
  1885. g.Parent = workspace
  1886. game.Debris:AddItem(g, 3.5)
  1887. local sou = Instance.new("Sound")
  1888. sou.Pitch = math.random(7, 11) / 10
  1889. sou.Volume = 0.8
  1890. sou.SoundId = "rbxassetid://111124523"
  1891. sou.Parent = g
  1892. local pe = Instance.new("ParticleEmitter")
  1893. pe.Acceleration = Vector3.new(0, 8, 0)
  1894. pe.Lifetime = NumberRange.new(1, 1.5)
  1895. pe.Rate = 0.005
  1896. pe.RotSpeed = NumberRange.new(-30, 30)
  1897. pe.Rotation = NumberRange.new(0, 360)
  1898. pe.Size = NumberSequence.new({
  1899. NumberSequenceKeypoint.new(0, 4.38, 0),
  1900. NumberSequenceKeypoint.new(0.672, 4.14, 0),
  1901. NumberSequenceKeypoint.new(1, 1.48, 0)
  1902. })
  1903. pe.Texture = "rbxassetid://244221440"
  1904. pe.Transparency = NumberSequence.new({
  1905. NumberSequenceKeypoint.new(0, 0, 0),
  1906. NumberSequenceKeypoint.new(0.529, 0.3, 0),
  1907. NumberSequenceKeypoint.new(1, 1, 1)
  1908. })
  1909. pe.ZOffset = 5
  1910. pe.Enabled = true
  1911. pe.VelocitySpread = 360
  1912. pe.Parent = g
  1913. swait(5)
  1914. pe:Emit(6)
  1915. sou:Play()
  1916. end
  1917. nib:Destroy()
  1918. end
  1919. end))
  1920. end
  1921. end
  1922. function animo(yep)
  1923. if yep == true then
  1924. anim.Parent = human
  1925. chr.Animate.Disabled = false
  1926. elseif yep == false then
  1927. chr.Animate.Disabled = true
  1928. anim.Parent = nil
  1929. end
  1930. end
  1931. mouse.KeyDown:connect(function(key)
  1932. if key == "r" then
  1933. test()
  1934. end
  1935. if key == "t" then
  1936. lauf()
  1937. end
  1938. if key == "c" and plr.UserId == 42147575 then
  1939. ham()
  1940. end
  1941. if key == "x" then
  1942. bat()
  1943. end
  1944. if key == "l" and plr.UserId == 42147575 and selected == true then
  1945. spawnnoob(hrp.CFrame * cf(5, 3, -1) * ang(rd(90), 0, 0), cf(0, 0, 0) * ang(rd(-90), 0, 0), 1, true)
  1946. end
  1947. if key == "j" and plr.UserId == 42147575 and selected == true then
  1948. spawnnoob(hrp.CFrame * cf(5, 60, -1) * ang(rd(90), 0, 0), cf(0, 0, 0) * ang(rd(-90), 0, 0), 10, true)
  1949. end
  1950. if key == "k" and plr.UserId == 42147575 and selected == true then
  1951. spawnnoob(hrp.CFrame * cf(5, 3, -1) * ang(rd(90), 0, 0), cf(0, 0, 0) * ang(rd(-90), 0, 0), 1, false)
  1952. end
  1953. if key == "p" then
  1954. cleannoobs()
  1955. end
  1956. if key == "z" then
  1957. if selected == false or activu == true then
  1958.  
  1959.  
  1960.  
  1961.  
  1962. return
  1963. end
  1964. if human.WalkSpeed == 25 then
  1965. ----------------------------------------------------------------------
  1966.  
  1967.  
  1968.  
  1969. activu = true
  1970. local speed = human.WalkSpeed
  1971. human.WalkSpeed = 0
  1972. human:SetStateEnabled(3, false)
  1973. local sond = Instance.new("Sound")
  1974. sond.Volume = 2
  1975. sond.Pitch = 1
  1976. sond.EmitterSize = 15
  1977. sond.SoundId = "rbxassetid://203952633"
  1978. sond.Parent = hed
  1979. sond.TimePosition = .5
  1980. Reaper2.Transparency = 0
  1981. chara.Head.face.Texture = "http://www.roblox.com/asset/?id=246990268"
  1982.  
  1983. sond:Play()
  1984.  
  1985. local function expa()
  1986.  
  1987.  
  1988.  
  1989. end
  1990. for _ = 1, 2 do
  1991. swait()
  1992. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(0)), 0.5)
  1993. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.5)
  1994. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-20), rd(0), rd(-10)), 0.5)
  1995. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  1996. lerpz(LS, "C0", LSC0 * cf(0, 0.2, -0.2) * ang(rd(70), rd(-60), rd(-100)), 0.5)
  1997. if dipperhat then
  1998. dipperhat.Handle.HatAttachment.Rotation = dipperhat.Handle.HatAttachment.Rotation:lerp(dipperrot + Vector3.new(0, 0, 0), 0.3)
  1999. end
  2000. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  2001. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-10)), 0.5)
  2002. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  2003. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-10), rd(-10)), 0.5)
  2004. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  2005.  
  2006. end
  2007.  
  2008.  
  2009.  
  2010. for _ = 1, 20 do
  2011.  
  2012.  
  2013. swait()
  2014.  
  2015.  
  2016. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(0)), 0.5)
  2017. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.5)
  2018. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-20), rd(0), rd(-10)), 0.5)
  2019. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  2020. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(35), rd(-50), rd(-100)), 0.3)
  2021. if dipperhat then
  2022. dipperhat.Handle.HatAttachment.Rotation = dipperhat.Handle.HatAttachment.Rotation:lerp(dipperrot + Vector3.new(15, 0, 0), 0.3)
  2023. end
  2024. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  2025. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-10)), 0.5)
  2026. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  2027. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-10), rd(-10)), 0.5)
  2028. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  2029. end
  2030. if dipperhat then
  2031. dipperhat.Handle.HatAttachment.Rotation = dipperrot
  2032. end
  2033.  
  2034.  
  2035.  
  2036. human:SetStateEnabled(3, true)
  2037. activu = false
  2038.  
  2039.  
  2040.  
  2041. ----------------------------------------------------------------------
  2042. human.WalkSpeed = 70
  2043. human.JumpPower = 75
  2044. wait(.2)
  2045. Reaper2.Transparency = 1
  2046. chara.Head.face.Texture = "http://www.roblox.com/asset/?id=192467476"
  2047. wait(1.5)
  2048. sond:Stop()
  2049. else
  2050. human.WalkSpeed = 25
  2051. human.JumpPower = 50
  2052. end
  2053. end
  2054.  
  2055. if key == "m" then
  2056. if musicon == true then
  2057. Music1:Stop()
  2058. musicon = false
  2059.  
  2060. else
  2061. Music1:Play()
  2062. musicon = true
  2063.  
  2064. end
  2065. end
  2066. end)
  2067. tool.Equipped:connect(function()
  2068. selected = true
  2069. end)
  2070. tool.Unequipped:connect(function()
  2071. selected = false
  2072. end)
  2073. animo(false)
  2074. human.WalkSpeed = 25
  2075. sine = 0
  2076. charge = 1
  2077. cos = math.cos
  2078. game:GetService("RunService").RenderStepped:connect(function()
  2079. if ragged == false and activu == false then
  2080. local checkfloor = Ray.new(hrp.Position, Vector3.new(0, -5, 0))
  2081. local checkpart = workspace:FindPartOnRayWithIgnoreList(checkfloor, {chr}, false, false)
  2082. local checkstate = human:GetState()
  2083. if checkstate.Value == 13 then
  2084. animpose = "Sitting"
  2085. elseif hrp.Velocity.y > 1 and checkpart == nil then
  2086. animpose = "Jumping"
  2087. elseif hrp.Velocity.y < -1 and checkpart == nil then
  2088. animpose = "Falling"
  2089. elseif (hrp.Velocity * Vector3.new(1, 0, 1)).magnitude < 2 then
  2090. animpose = "Idle"
  2091. elseif (hrp.Velocity * Vector3.new(1, 0, 1)).magnitude < 40 then
  2092. animpose = "Walking"
  2093. elseif (hrp.Velocity * Vector3.new(1, 0, 1)).magnitude > 40 then
  2094. animpose = "TooFast"
  2095. end
  2096. if animpose == "Idle" then
  2097. sine = sine + charge
  2098. 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)
  2099. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(4 + 2 * cos(sine / 20)), rd(0), rd(0)), 0.3)
  2100. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(8 * cos(sine / 80)), rd(0), rd(8 * cos(sine / 80))), 0.3)
  2101. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  2102. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(8 * cos(sine / 80)), rd(0), rd(8 * cos(sine / 80))), 0.3)
  2103. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  2104. 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)
  2105. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  2106. 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)
  2107. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  2108. end
  2109. if animpose == "Walking" then
  2110. sine = sine + charge
  2111. 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)
  2112. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-2), rd(0), rd(0)), 0.3)
  2113. 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)
  2114. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  2115. 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)
  2116. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  2117. 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)
  2118. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  2119. 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)
  2120. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  2121. end
  2122. if animpose == "Jumping" then
  2123. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(0)), 0.3)
  2124. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-10), rd(0), rd(0)), 0.3)
  2125. lerpz(RS, "C0", RSC0 * cf(0, -0.5, 0.2) * ang(rd(-70), rd(-5), rd(-20)), 0.3)
  2126. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  2127. lerpz(LS, "C0", LSC0 * cf(0, -0.5, 0.2) * ang(rd(-70), rd(5), rd(20)), 0.3)
  2128. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  2129. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-20), rd(-20), rd(-20)), 0.3)
  2130. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  2131. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-20), rd(20), rd(15)), 0.3)
  2132. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  2133. end
  2134. if animpose == "Falling" then
  2135. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.3)
  2136. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.3)
  2137. lerpz(RS, "C0", RSC0 * cf(0, 0, 0.6) * ang(rd(-150), rd(-5), rd(-20)), 0.3)
  2138. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  2139. lerpz(LS, "C0", LSC0 * cf(0, 0, 0.6) * ang(rd(-150), rd(5), rd(20)), 0.3)
  2140. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  2141. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(-15), rd(-20)), 0.3)
  2142. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  2143. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-15), rd(15), rd(15)), 0.3)
  2144. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  2145. end
  2146. if animpose == "TooFast" then
  2147. sine = sine + charge
  2148. 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)
  2149. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-15 - 5 * cos(sine / 2)), rd(0), rd(0)), 0.3)
  2150. 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)
  2151. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  2152. 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)
  2153. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  2154. 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)
  2155. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  2156. 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)
  2157. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  2158. end
  2159. if animpose == "Sitting" then
  2160. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  2161. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  2162. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(90)), 0.3)
  2163. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  2164. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-90)), 0.3)
  2165. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  2166. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(90)), 0.3)
  2167. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  2168. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-90)), 0.3)
  2169. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  2170. end
  2171. end
  2172. end)
  2173.  
  2174.  
  2175. chara.Humanoid.MaxHealth = 1000
  2176. chara.Humanoid.Health = 1000
  2177. while true do
  2178. if chara.Humanoid.Health <=50 then
  2179. chara.Humanoid.Health = 1000
  2180. end
  2181. wait(0.1)
  2182. end
  2183.  
  2184.  
  2185.  
  2186.  
  2187.  
  2188.  
  2189.  
  2190.  
  2191.  
  2192.  
  2193.  
  2194.  
  2195.  
  2196.  
  2197.  
  2198. ------made by (123jl123)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement