Advertisement
Upscalefanatic3

Sonic Fe Compatiblity Script

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