Advertisement
Hugo1234cool

Untitled

Mar 13th, 2019
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.03 KB | None | 0 0
  1. local plr =owner
  2. local chr = plr.Character
  3. local maus = plr:GetMouse()
  4. local PGui=plr.PlayerGui
  5. local lleg = chr["Left Leg"]
  6. local rleg = chr["Right Leg"]
  7. local larm = chr["Left Arm"]
  8. local rarm = chr["Right Arm"]
  9. local hed = chr.Head
  10. local rutprt = chr.HumanoidRootPart
  11. local torso = chr.Torso
  12. local otheranims=false
  13. local armmovement=false
  14. local hitdb=false
  15. local toss=false
  16. local jamp=false
  17. chr.Animate.Disabled=true
  18. chr.Humanoid.WalkSpeed=10
  19. local running=false
  20. local tempignore={}
  21. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility by WaverlyCole & Fireboltofdeath");print("https://github.com/WaverlyCole/FE-Compatibility-VoidSb-")
  22. local Wrapper = {};Wrapper.Fake = {};Wrapper.Real = {};Wrapper.Data = {};
  23. local sGame = game;local sScript = script;local sOwner = owner;local sInstance = Instance;local sLoadLibrary = LoadLibrary
  24. Wrapper.Event = Instance.new("RemoteEvent");Wrapper.Event.Name = "UserInput";
  25. Wrapper.CreateObject = function(connections, index)
  26. local proxy = newproxy (true);local meta = getmetatable (proxy);
  27. local runbind = function (self, i, ...) connections[i]:Fire (...); end;
  28. while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end;
  29. meta.__index = function (self, i)
  30. if (i == 'TriggerEvent') then return runbind end;
  31. return connections[i] and connections[i].Event or index[i];
  32. end;
  33. meta.__newindex = index;meta.__metatable = false;return proxy
  34. end;
  35. Wrapper.Mouse = Wrapper.CreateObject({"KeyUp","KeyDown","Button1Down","Button1Up","Move","Button2Down","Button2Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
  36. Wrapper.UserInputService = Wrapper.CreateObject({"InputBegan","InputEnded"},{})
  37. Wrapper.ContextActionService = {Actions={};BindAction = function(self,actionName,Func,touch,...)self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil end;UnBindAction = function(self,actionName,Func,touch,...)self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil end};
  38. Wrapper.Sandbox = function(...)
  39. local Unwrap = {...};
  40. for obi = 1,#Unwrap do
  41. local Object = Unwrap[obi];
  42. if (Wrapper.Fake[Object] == nil and Wrapper.Real[Object] == nil) then
  43. local Type = typeof(Object);local Replacement = Object;
  44. if (Type == "function") then
  45. Replacement = function(...)
  46. local IsRoblox = not (pcall(function() string.dump(Object) end))
  47. if IsRoblox then
  48. return Object(Wrapper.Unsandbox(...))
  49. end
  50. return Object(Wrapper.Sandbox(...))
  51. end
  52. elseif (Type == "table") then
  53. Replacement = {};
  54. setmetatable(Replacement, {
  55. __index = function(self, i)
  56. return Wrapper.Sandbox(Object[Wrapper.Unsandbox(i)])
  57. end,
  58. __newindex = function(self,i,v)
  59. Object[Wrapper.Unsandbox(i)] = Wrapper.Unsandbox(v)
  60. end;
  61. })
  62. elseif (Type == "Instance") then
  63. Replacement = newproxy(true);
  64. local Mt = getmetatable(Replacement);
  65. Mt.__namecall = function(self, ...)
  66. local Pack = {...};local Name = Pack[#Pack];table.remove(Pack, #Pack);
  67. local Rest = nil;pcall(function()Rest = Object[Name];end);
  68. for g, x in pairs (Wrapper.InstanceMT["GET"]) do
  69. if (Object:IsA(g) or g == "Global") then
  70. for t, v in pairs(x) do
  71. for str in string.gmatch(t .. ",", "(%w+),") do
  72. if (Name == str) then
  73. if typeof(v) == "function" then
  74. return Wrapper.Sandbox(v(Wrapper.Unsandbox(self), Wrapper.Unsandbox(unpack(Pack))))
  75. else
  76. return v;
  77. end
  78. end
  79. end
  80. end
  81. end
  82. end
  83. if (Rest == nil) then
  84. if Wrapper.Sandbox(sGame):GetService(unpack(Pack)) then return Wrapper.Sandbox(sGame):GetService(unpack(Pack))end;
  85. return Wrapper.Sandbox(Object[Name]);
  86. elseif (typeof(Rest) == "function") then
  87. return Wrapper.Sandbox(Rest(Wrapper.Unsandbox(self), Wrapper.Unsandbox(unpack(Pack))))
  88. end
  89. return Wrapper.Sandbox(Object[Name]);
  90. end
  91. Mt.__index = function(self, i)
  92. local Rest = nil;pcall(function()Rest = Object[i];end)
  93. for g, x in pairs (Wrapper.InstanceMT["GET"]) do
  94. if (Object:IsA(g) or g == "Global") then
  95. for t, v in pairs(x) do
  96. for str in string.gmatch(t .. ",", "(%w+),") do
  97. if (i == str) then
  98. if typeof(v) == "function" then
  99. return function(...)return Wrapper.Sandbox(v(Wrapper.Unsandbox(self), Wrapper.Unsandbox(...)))end;
  100. else
  101. return v;
  102. end
  103. end
  104. end
  105. end
  106. end
  107. end
  108. if (Object:IsA("Sound") and i == "PlaybackLoudness") then return Wrapper.SoundLoudness[Wrapper.Unsandbox(Object)];end;
  109. if (Rest == nil) then
  110. if Wrapper.Sandbox(sGame):GetService(i) then return Wrapper.Sandbox(sGame):GetService(i)end;
  111. return Wrapper.Sandbox(Object[i]);
  112. elseif (typeof(Rest) == "function") then
  113. local isService,Service = pcall(function() return sGame:GetService(i) end)
  114. if isService and Service then return Wrapper.Sandbox(Service) end
  115. return function(self, ...)
  116. return Wrapper.Sandbox(Rest(Wrapper.Unsandbox(self), Wrapper.Unsandbox(...)))
  117. end
  118. end
  119. return Wrapper.Sandbox(Object[i]);
  120. end
  121. Mt.__newindex = function(self, i, v)
  122. for g,x in pairs (Wrapper.InstanceMT["SET"]) do
  123. if (Object:IsA(g)) then
  124. for t, v in pairs(x) do
  125. for str in string.gmatch( t .. ",", "(%w+),") do
  126. if v(Wrapper.Unsandbox(self, i, v)) == true then
  127. Object[Wrapper.Unsandbox(i)] = Wrapper.Unsandbox(v);return
  128. end
  129. end
  130. end
  131. end
  132. end
  133. Object[Wrapper.Unsandbox(i)] = Wrapper.Unsandbox(v);
  134. end
  135. Mt.__tostring = function(self) return tostring(Object) end
  136. --elseif (Type == "") then -- Etc
  137. end
  138. Wrapper.Fake[Object] = Replacement;Wrapper.Real[Replacement] = Object;Unwrap[obi] = Replacement;
  139. else
  140. return Wrapper.Fake[Object] or Object;
  141. end
  142. end
  143. return unpack(Unwrap);
  144. end
  145. Wrapper.Unsandbox = function(...)
  146. local Unsandbox = {...};
  147. for i,v in pairs (Unsandbox) do Unsandbox[i] = Wrapper.Real[v] or Unsandbox[i]end;
  148. return unpack(Unsandbox)
  149. end
  150. Wrapper.Services = {
  151. ['contextactionservice'] = Wrapper.ContextActionService;
  152. ["userinputservice"] = Wrapper.UserInputService;
  153. }
  154. Wrapper.InstanceMT = {
  155. ["GET"] = {
  156. ["Global"] = {
  157. ["IsFake,isFake"] = function(self)return true;end;
  158. };
  159. ["Player"] = {
  160. ["mouse,Mouse,getMouse,GetMouse"] = function(self)return Wrapper.Mouse;end;
  161. };
  162. ["Players"] = {
  163. ["localPlayer,LocalPlayer"] = Wrapper.Sandbox(owner)
  164. };
  165. ["DataModel"] = {
  166. ["getService,GetService"] = function(self,service)
  167. if Wrapper.Services[service:lower()] then return Wrapper.Sandbox(Wrapper.Services[service:lower()])end;
  168. return Wrapper.Sandbox(sGame:GetService(service))
  169. end
  170. };
  171. ["RunService"] = {
  172. ["renderstepped,renderStepped,RenderStepped"] = sGame:GetService("RunService").Stepped;
  173. }
  174. };
  175. ["SET"] = {
  176. }
  177. }
  178. Wrapper.SoundLoudness = {};
  179. Wrapper.Event.OnServerEvent:Connect(function(FiredBy,Input)
  180. if FiredBy ~= sOwner then return end
  181. if Input.MouseEvent then
  182. Wrapper.Mouse.Target = Input.Target;Wrapper.Mouse.Hit = Input.Hit;Wrapper.Mouse:TriggerEvent("Move")
  183. elseif Input.Sound then
  184. if Wrapper.SoundLoudness[Input.Sound] then Wrapper.SoundLoudness[Input.Sound] = Input.Loudness end
  185. else
  186. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  187. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Wrapper.Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end
  188. if Input.UserInputType == Enum.UserInputType.MouseButton2 then return Wrapper.Mouse:TriggerEvent(Begin and "Button2Down" or "Button2Up") end
  189. for _,Action in pairs(Wrapper.ContextActionService.Actions) do
  190. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  191. end
  192. Wrapper.Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());Wrapper.UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  193. end
  194. end);
  195. Wrapper.Event.Parent = NLS([[
  196. local Player = owner;local Sounds = {};local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse();
  197. local Input = function(Input,gameProcessedEvent)
  198. if gameProcessedEvent then return end;
  199. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  200. end
  201. Event.OnClientEvent:connect(function(Args)
  202. if Args[1] == "NewSound" and Args[2]:IsA("Sound") then table.insert(Sounds,Args[2]) end
  203. end)
  204. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  205. local Hit,Target;while wait(1/30) do
  206. for x,Sound in pairs(Sounds) do if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end; end;
  207. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  208. Hit = Mouse.Hit;Target = Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  209. end
  210. end]],sOwner.Character)
  211. Instance = {
  212. ["new"] = function(Type,Parent)
  213. local Real = sInstance.new(Type,Wrapper.Unsandbox(Parent))
  214. if Type:lower() == "sound" then
  215. if not Parent then
  216. Parent = sOwner.Character
  217. end
  218. Wrapper.SoundLoudness[Real] = 0;Wrapper.Event:FireClient(sOwner,{"NewSound",Real})
  219. end
  220. return Wrapper.Sandbox(Real)
  221. end
  222. }
  223. LoadLibrary = function(Library)
  224. if Library == "RbxUtility" then
  225. return setmetatable({},{
  226. __tostring = function() return "RbxUtility" end;
  227. __index = function(self, Index)
  228. if Index:lower() == "create" then
  229. return function(Type) return function(Data)
  230. Data = Data or {};local Inst = Instance.new(Type)
  231. for x,y in pairs(Data) do Inst[x] = y end
  232. return Inst
  233. end;end;
  234. end
  235. return sLoadLibrary(Library)[Index]
  236. end})
  237. end
  238. return sLoadLibrary(Library)
  239. end
  240. owner = Wrapper.Sandbox(owner);game = Wrapper.Sandbox(game)workspace = Wrapper.Sandbox(workspace)
  241. Game= game;Workspace = workspace;
  242.  
  243. --//Paste script below this line.
  244. local weit=Instance.new('Part',hed)
  245. weit.Shape='Ball'
  246. weit.BrickColor=BrickColor.new('Black')
  247. weit.Material='Neon'
  248. weit.Size=Vector3.new(3,3,3)
  249. weit.CanCollide=true
  250. weit.Name='Weight'
  251. weit.Friction=1
  252. weit.Elasticity=0
  253.  
  254.  
  255.  
  256. local at1=Instance.new("Attachment",torso)
  257. local at2=Instance.new("Attachment",weit)
  258. local const=Instance.new("RopeConstraint",chr)
  259. const.Attachment0=at2
  260. const.Attachment1=at1
  261. const.Visible=true
  262. const.Restitution=0
  263. const.Length=100
  264.  
  265. local pseudohead=hed:Clone()
  266. for i,x in pairs(pseudohead:GetChildren()) do if not x.ClassName:find('Mesh') then x:Destroy() end end
  267. pseudohead.Name='PseudoHead'
  268. pseudohead.Parent=chr.Head
  269. local pseudoweld=Instance.new('Weld',torso)
  270. pseudoweld.Part0=hed
  271. pseudoweld.Name='PseudoHedWld'
  272. pseudoweld.Part1=pseudohead
  273. hed.Transparency=1
  274.  
  275. --[[coroutine.resume(coroutine.create(function()
  276. local rate=.05
  277. local Hats={}
  278. for i,x in pairs(chr:GetChildren()) do if x:IsA("Hat") then table.insert(Hats,x) x.Handle.Mesh.TextureId="http://www.roblox.com/asset?id=25701026"
  279. end
  280. end
  281. local lam=Instance.new("SpecialMesh",larm)
  282. lam.MeshId="http://www.roblox.com/asset?id=12221505"
  283. lam.TextureId="http://www.roblox.com/asset?id=25701026"
  284. local ram=Instance.new("SpecialMesh",rarm)
  285. ram.MeshId="http://www.roblox.com/asset?id=12221505"
  286. ram.TextureId="http://www.roblox.com/asset?id=25701026"
  287. local rlm=Instance.new("SpecialMesh",rleg)
  288. rlm.MeshId="http://www.roblox.com/asset?id=12221626"
  289. rlm.TextureId="http://www.roblox.com/asset?id=25701026"
  290. local llm=Instance.new("SpecialMesh",lleg)
  291. llm.MeshId="http://www.roblox.com/asset?id=12221626"
  292. llm.TextureId="http://www.roblox.com/asset?id=25701026"
  293. local trm=Instance.new("SpecialMesh",torso)
  294. trm.MeshId="http://www.roblox.com/asset?id=12221758"
  295. trm.TextureId="http://www.roblox.com/asset?id=25701026"
  296. local hem=Instance.new("SpecialMesh",hed)
  297. hem.MeshId="rbxasset://fonts/head.mesh"
  298. hem.TextureId="http://www.roblox.com/asset?id=25701026"
  299. local hem2=Instance.new("SpecialMesh",pseudohead)
  300. hem2.MeshId="rbxasset://fonts/head.mesh"
  301. hem2.TextureId="http://www.roblox.com/asset?id=25701026"
  302. local weitmesh=Instance.new("SpecialMesh",weit)
  303. weitmesh.MeshId="http://www.roblox.com/asset/?id=1527559"
  304. weitmesh.TextureId="http://www.roblox.com/asset?id=25701026"
  305. local asd=Instance.new('PointLight',torso)
  306. asd.Brightness=123
  307. asd.Range=12
  308. asd.Shadows=true
  309.  
  310. while wait'0' do
  311. for a=0,1,rate do
  312. lam.VertexColor=Vector3.new(a,0,-a+1)
  313. ram.VertexColor=Vector3.new(a,0,-a+1)
  314. rlm.VertexColor=Vector3.new(a,0,-a+1)
  315. llm.VertexColor=Vector3.new(a,0,-a+1)
  316. trm.VertexColor=Vector3.new(a,0,-a+1)
  317. hem.VertexColor=Vector3.new(a,0,-a+1)
  318. hem2.VertexColor=Vector3.new(a,0,-a+1)
  319. weitmesh.VertexColor=Vector3.new(a,0,-a+1)
  320. asd.Color=Color3.new(a,0,-a+1)
  321. coroutine.wrap(function()
  322. for x=1,#Hats do
  323. Hats[x].Handle.Mesh.VertexColor=Vector3.new(a,0,-a+1)
  324. end
  325. end)()
  326. wait''
  327. end
  328. for a=0,1,rate do
  329. lam.VertexColor=Vector3.new(-a+1,a,0)
  330. ram.VertexColor=Vector3.new(-a+1,a,0)
  331. rlm.VertexColor=Vector3.new(-a+1,a,0)
  332. llm.VertexColor=Vector3.new(-a+1,a,0)
  333. trm.VertexColor=Vector3.new(-a+1,a,0)
  334. hem.VertexColor=Vector3.new(-a+1,a,0)
  335. hem2.VertexColor=Vector3.new(-a+1,a,0)
  336. weitmesh.VertexColor=Vector3.new(-a+1,a,0)
  337. asd.Color=Color3.new(-a+1,a,0)
  338. coroutine.wrap(function()
  339. for x=1,#Hats do
  340. Hats[x].Handle.Mesh.VertexColor=Vector3.new(-a+1,a,0)
  341. end
  342. end)()
  343. wait''
  344. end
  345. for a=0,1,rate do
  346. lam.VertexColor=Vector3.new(0,-a+1,a)
  347. ram.VertexColor=Vector3.new(0,-a+1,a)
  348. rlm.VertexColor=Vector3.new(0,-a+1,a)
  349. llm.VertexColor=Vector3.new(0,-a+1,a)
  350. trm.VertexColor=Vector3.new(0,-a+1,a)
  351. hem.VertexColor=Vector3.new(0,-a+1,a)
  352. hem2.VertexColor=Vector3.new(0,-a+1,a)
  353. weitmesh.VertexColor=Vector3.new(0,-a+1,a)
  354. asd.Color=Color3.new(0,-a+1,a)
  355. coroutine.wrap(function()
  356. for x=1,#Hats do
  357. Hats[x].Handle.Mesh.VertexColor=Vector3.new(0,-a+1,a)
  358. end
  359. end)()
  360. wait''
  361. end
  362. end
  363. end))]]
  364.  
  365.  
  366. function Lerp(a, b, i)
  367. local com1 = {a.X, a.Y, a.Z, a:toEulerAnglesXYZ()}
  368. local com2 = {b.X, b.Y, b.Z, b:toEulerAnglesXYZ()}
  369. local calx = com1[1] + (com2[1] - com1[1]) * i
  370. local caly = com1[2] + (com2[2] - com1[2]) * i
  371. local calz = com1[3] + (com2[3] - com1[3]) * i
  372. local cala = com1[4] + (com2[4] - com1[4]) * i
  373. local calb = com1[5] + (com2[5] - com1[5]) * i
  374. local calc = com1[6] + (com2[6] - com1[6]) * i
  375. return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc)
  376. end
  377.  
  378. function TwnSingleNumber(s,f,m)
  379. local wot=s+(f-s)*m
  380. return wot
  381. end
  382.  
  383. function TwnVector3(q,w,e)
  384. local begin={q.x,q.y,q.z}
  385. local ending={w.x,w.y,w.z}
  386. local bgx=begin[1]+(ending[1]-begin[1])*e
  387. local bgy=begin[2]+(ending[2]-begin[2])*e
  388. local bgz=begin[3]+(ending[3]-begin[3])*e
  389. return Vector3.new(bgx,bgy,bgz)
  390. end
  391.  
  392. newWeld = function(wld, wp0, wp1, wc0x, wc0y, wc0z)
  393. wld = Instance.new("Weld", wp1)
  394. wld.Part0 = wp0
  395. wld.Part1 = wp1
  396. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  397. end
  398.  
  399. newWeld(law, torso, larm, -1.5, 0.5, 0)
  400. newWeld(raw, torso, rarm, 1.5, 0.5, 0)
  401. newWeld(llw, torso, lleg, -.5, -2, 0)
  402. newWeld(rlw, torso, rleg, .5, -2, 0)
  403. newWeld(hw, torso, hed, 0, 1.5, 0)
  404. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  405. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  406. rleg.Weld.C1=CFrame.new(0,.25,.05)*CFrame.Angles(math.rad(30),0,0)
  407. lleg.Weld.C1=CFrame.new(0,.25,.05)*CFrame.Angles(math.rad(30),0,0)
  408.  
  409. local anim = "Idling"
  410. local lastanim = "Idling"
  411. local val = 0
  412. local syne = 0
  413. local num = 0
  414. local runtime = 0
  415.  
  416.  
  417. maus.KeyUp:connect(function(kei)
  418. if string.byte(kei)==48 and not otheranims then
  419. running=false
  420. chr.Humanoid.WalkSpeed=10
  421. end
  422. end)
  423.  
  424. maus.KeyDown:connect(function(kei)
  425. if string.byte(kei)==48 and not otheranims then
  426. running=true
  427. chr.Humanoid.WalkSpeed=18
  428. end
  429.  
  430. chr.Humanoid.Changed:connect(function(ch)
  431. if ch=='Jump' and not chr.Humanoid.Sit and not chr.Humanoid.PlatformStand then
  432. local rei=Ray.new(torso.CFrame.p,((torso.CFrame*CFrame.new(0,-1,0)).p-torso.CFrame.p).unit*10)
  433. local t,p=Workspace:FindPartOnRay(rei,chr)
  434. if t then
  435. chr.Humanoid.Jump=false
  436. end
  437. end
  438. end)
  439.  
  440. if kei==' ' and not chr.Humanoid.Jump and not chr.Humanoid.Sit and not chr.Humanoid.PlatformStand and not jamp then
  441. local rei=Ray.new(torso.CFrame.p,((rutprt.CFrame*CFrame.new(0,-1,0)).p-rutprt.CFrame.p).unit*3)
  442. local t,p=Workspace:FindPartOnRay(rei,chr)
  443. if t then
  444. chr.Humanoid.PlatformStand=true
  445. jamp=true
  446. coroutine.wrap(function()
  447. repeat wait()
  448. chr.Torso.Velocity=Vector3.new(0,35,0)
  449. until not chr.Humanoid.PlatformStand
  450. end)()
  451. wait(.1)
  452. chr.Humanoid.PlatformStand=false
  453. jamp=false
  454. end
  455. end
  456. end)
  457.  
  458.  
  459.  
  460. local grunt=Instance.new('Sound',hed)
  461. grunt.Name='Grunt'
  462. grunt.Volume=1
  463. grunt.Pitch=.9
  464. grunt.Looped=false
  465. grunt.SoundId="http://www.roblox.com/asset?id=143384769"
  466.  
  467.  
  468.  
  469. local hut=Instance.new('Sound',weit)
  470. hut.Name='Hit'
  471. hut.Volume=1
  472. hut.Looped=false
  473. hut.Pitch=1
  474. hut.SoundId="http://www.roblox.com/asset?id=146163534"
  475. local wtl=Instance.new('PointLight',weit)
  476. wtl.Shadows=true
  477. wtl.Brightness=123
  478. wtl.Range=12
  479. wtl.Color=weit.BrickColor.Color
  480. wtl.Name='WeightLight'
  481. local wgui=Instance.new('SurfaceGui',weit)
  482. wgui.Face='Front'
  483. wgui.Adornee=weit
  484. wgui.CanvasSize=Vector2.new(100,100)
  485. wgui.Name='WeightGui'
  486. local tb=Instance.new('TextLabel',wgui)
  487. tb.Size=UDim2.new(1,0,1,0)
  488. tb.Text=[[LAWL'D]]
  489. tb.TextColor3=Color3.new(1,1,1)
  490. tb.BackgroundTransparency=1
  491. local wtw=Instance.new('Weld',torso)
  492. wtw.Name='WeightWeld'
  493. wtw.Part0=torso
  494. wtw.Part1=weit
  495. wtw.C0=CFrame.new(0,.5,-1.8)*CFrame.Angles(math.rad(-20),0,0)
  496. weit.Touched:connect(function(hit)
  497. if hit and hit.CanCollide and hit.Parent and hit.Parent~=chr and hit.Parent.Parent~=chr and otheranims then
  498. hum=hit.Parent:findFirstChild('Humanoid') and hit.Parent:findFirstChild('Torso') and hit.Parent.ClassName=='Model'
  499. if hum and not hitdb then
  500. local ex=Instance.new('Explosion',workspace)
  501. ex.DestroyJointRadiusPercent=0
  502. ex.BlastPressure=222222
  503. ex.BlastRadius=18
  504. hitdb=true
  505. ex.Position=hit.Parent.Torso.Position
  506. hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-(101*(hit.Parent.Humanoid.MaxHealth/100))
  507. table.insert(tempignore,hit.Parent)
  508. hut:Play()
  509. toss=false
  510. hit.Parent.Humanoid.PlatformStand=true
  511. coroutine.wrap(function()
  512. repeat wait()
  513. hit.Parent.Torso.Velocity=((hit.Parent.Torso.CFrame.p*Vector3.new(1,0,1))-(weit.CFrame.p*Vector3.new(1,0,1))).unit*100
  514. weit.Velocity=((hit.Parent.Torso.CFrame.p*Vector3.new(1,0,1))-(weit.CFrame.p*Vector3.new(1,0,1))).unit*-10+Vector3.new(0,20,0)
  515. until not hit.Parent.Humanoid.PlatformStand
  516. end)()
  517. wait(.2)
  518. hit.Parent.Humanoid.PlatformStand=false
  519. end
  520. end
  521. end)
  522. maus.Button1Down:connect(function()
  523. if not otheranims then
  524. chr.Humanoid.WalkSpeed=0
  525. otheranims=true
  526. anim='PreThrow'
  527. hitdb=false
  528. coroutine.resume(coroutine.create(function()
  529. for fgh,hgf in pairs(tempignore) do
  530. table.remove(tempignore,hgf)
  531. end
  532. end))
  533. wait(.3)
  534. grunt:Play()
  535. wait(.2)
  536. anim='Throw'
  537. const.Parent=nil
  538. wtw.Parent=nil
  539. wtw.Part0=nil
  540. toss=true
  541. weit.CFrame=rutprt.CFrame*CFrame.new(0,3,-3)
  542. wait()
  543. weit.Velocity=((rutprt.CFrame.p*Vector3.new(1,0,1))-(weit.CFrame.p*Vector3.new(1,0,1))).unit*-200+Vector3.new(0,12,0)
  544. wait(.25)
  545. const.Parent=chr
  546. anim='Rest'
  547. wait(1)
  548. wtw.Parent=torso
  549. wtw.Part0=torso
  550. otheranims=false
  551. chr.Humanoid.WalkSpeed=10
  552. toss=false
  553. end
  554. end)
  555.  
  556. -----------------------------------------------------------------------------
  557.  
  558. game:service'RunService'.RenderStepped:connect(function()
  559. chr.Humanoid.CameraOffset=(rutprt.CFrame:toObjectSpace(hed.CFrame)).p+Vector3.new(0,-1.25,0)
  560. syne=syne+.95
  561. if running and not otheranims then chr.Humanoid.WalkSpeed=18
  562. elseif not running and not otheranims then chr.Humanoid.WalkSpeed=10
  563. end
  564. if not otheranims then
  565. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 and torso.Velocity.y<1 and torso.Velocity.y>-1 then
  566. anim="Idling"
  567.  
  568. elseif (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 and (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude < 12 and torso.Velocity.y<1 and torso.Velocity.y>-1 then
  569. anim="Walking"
  570.  
  571. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 12 and torso.Velocity.y<1 and torso.Velocity.y>-1 then
  572. anim="Sprinting"
  573.  
  574. elseif torso.Velocity.y>1 then
  575. anim='Jumping'
  576.  
  577. elseif (torso.Velocity.y < -1) then
  578. anim='Falling'
  579. end
  580. end
  581.  
  582. if anim=="Idling" then if not armmovement then
  583. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.425,-.225)*CFrame.Angles(math.rad(67),0,math.rad(-12.5)),.05)
  584. end
  585. wtw.C0=Lerp(wtw.C0,CFrame.new(0,.375,-1.7)*CFrame.Angles(math.rad(-20),0,0),.25)
  586. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.35,.425,-.225)*CFrame.Angles(math.rad(67),0,math.rad(12.5)),.05)
  587. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.525,-1.3,.35)*CFrame.Angles(math.rad(-7),0,math.rad(-2.5)),.05)
  588. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.525,-1.3,.35)*CFrame.Angles(math.rad(-7),0,math.rad(2.5)),.05)
  589. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),0,math.cos(syne/30)/25),.05)
  590. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/40)/15-.5,0)*CFrame.Angles(math.rad(125),math.rad(180),0),.05)
  591. end
  592. if anim=="Walking" then if not armmovement then
  593. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.425,-.225)*CFrame.Angles(math.rad(67),0,math.rad(-12.5)),.05)
  594. end
  595. wtw.C0=Lerp(wtw.C0,CFrame.new(0,.375,-1.8)*CFrame.Angles(math.rad(-20),0,0),.25)
  596. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.35,.425,-.225)*CFrame.Angles(math.rad(67),0,math.rad(12.5)),.05)
  597. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.525,(math.cos(syne/10))-1.3,(math.cos(syne/10))+.475)*CFrame.Angles((math.cos(syne/10))*-1,0,math.rad(-2.5)),.05)
  598. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.525,(math.cos(syne/10))*-1-1.3,(math.cos(syne/10))*-1+.475)*CFrame.Angles((math.cos(syne/10)),0,math.rad(2.5)),.05)
  599. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),math.cos(syne/10)/10*-1,math.cos(syne/10)/20),.05)
  600. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/6)/4-.5,0)*CFrame.Angles(math.rad(125),math.cos(syne/10)/10+math.rad(180),0),.05)
  601. end
  602.  
  603. if anim=="Sprinting" then if not armmovement then
  604. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.425,-.225)*CFrame.Angles(math.rad(67),0,math.rad(-12.5)),.05)
  605. end
  606. wtw.C0=Lerp(wtw.C0,CFrame.new(0,.375,-1.8)*CFrame.Angles(math.rad(-20),0,0),.25)
  607. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.35,.425,-.225)*CFrame.Angles(math.rad(67),0,math.rad(12.5)),.05)
  608. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.525,(math.cos(syne/7))-1.3,(math.cos(syne/7))+.475)*CFrame.Angles((math.cos(syne/7))*-1,0,math.rad(-2.5)),.05)
  609. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.525,(math.cos(syne/7))*-1-1.3,(math.cos(syne/7))*-1+.475)*CFrame.Angles((math.cos(syne/7)),0,math.rad(2.5)),.05)
  610. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),math.cos(syne/7)/7*-1,math.cos(syne/7)/20),.05)
  611. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/6)/4-.5,0)*CFrame.Angles(math.rad(125),math.cos(syne/7)/7+math.rad(180),0),.05)
  612. end
  613.  
  614. if anim=="Jumping" then if not armmovement then
  615. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(30),0,math.rad(30)),.15)
  616. end
  617. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(30),0,math.rad(-30)),.15)
  618. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.85,1)*CFrame.Angles(0,0,math.rad(-2.5)),.05)
  619. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.85,1)*CFrame.Angles(0,0,math.rad(2.5)),.05)
  620. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),0,0),.05)
  621. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/50)/20,.5)*CFrame.Angles(math.rad(75),math.rad(180),math.rad(0)),.05)
  622. end
  623.  
  624. if anim=="Falling" then if not armmovement then
  625. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.425,.525,0)*CFrame.Angles(math.cos(syne/10)/5+math.rad(120),0,math.rad(22.5)),.15)
  626. end
  627. wtw.C0=Lerp(wtw.C0,CFrame.new(0,1.25,-2.25)*CFrame.Angles(math.cos(syne/20)/20,math.cos(syne/10)/30,0),.25)
  628. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.425,.525,0)*CFrame.Angles((math.cos(syne/10)/5)*-1+math.rad(120),0,math.rad(-22.5)),.15)
  629. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.725,-1.5,-.3)*CFrame.Angles(math.cos(syne/10)/5+math.rad(33),0,math.rad(-15)),.05)
  630. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.725,-1.5,-.3)*CFrame.Angles(math.cos(syne/10)/5*-1+math.rad(33),0,math.rad(15)),.05)
  631. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),0,0),.05)
  632. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,0,1)*CFrame.Angles(math.rad(125),math.rad(180),math.rad(0)),.05)
  633. end
  634.  
  635. if anim=="PreThrow" then
  636. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.5,-.225)*CFrame.Angles(math.rad(105),0,math.rad(-12.5)),.1)
  637. wtw.C0=Lerp(wtw.C0,CFrame.new(0,1,-2)*CFrame.Angles(math.rad(-10),0,0),.1)
  638. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.35,.425,-.225)*CFrame.Angles(math.rad(105),0,math.rad(12.5)),.1)
  639. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.525,-1.3,.3)*CFrame.Angles(math.rad(-10),0,math.rad(-2.5)),.1)
  640. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.525,-1.3,.3)*CFrame.Angles(math.rad(-10),0,math.rad(2.5)),.1)
  641. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(40),0,0),.1)
  642. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/40)/15-.5,0)*CFrame.Angles(math.rad(132.5),math.rad(180),0),.1)
  643. end
  644.  
  645. if anim=="Throw" then
  646. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.6,-.225)*CFrame.Angles(math.rad(105),0,math.rad(-12.5)),.1)
  647. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.35,.425,-.225)*CFrame.Angles(math.rad(105),0,math.rad(12.5)),.1)
  648. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.525,-1.3,0)*CFrame.Angles(math.rad(40),0,math.rad(-2.5)),.1)
  649. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.525,-1.3,0)*CFrame.Angles(math.rad(40),0,math.rad(2.5)),.1)
  650. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-5),0,0),.1)
  651. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/40)/15-.5,0)*CFrame.Angles(math.rad(75),math.rad(180),0),.1)
  652. end
  653.  
  654. if anim=="Rest" then
  655. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.55,-.225)*CFrame.Angles(math.rad(35),0,math.rad(-12.5)),.1)
  656. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.35,.425,-.225)*CFrame.Angles(math.rad(35),0,math.rad(12.5)),.1)
  657. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.525,-.85,-.25)*CFrame.Angles(math.rad(40),0,math.rad(-2.5)),.1)
  658. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.525,-.85,-.25)*CFrame.Angles(math.rad(40),0,math.rad(2.5)),.1)
  659. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-5),0,0),.1)
  660. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/40)/15-1,0)*CFrame.Angles(math.rad(75),math.rad(180),0),.1)
  661. end
  662.  
  663. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement