Advertisement
Upscalefanatic3

Sonic Script

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