Advertisement
memberhero

RMDX Backpack

Jan 22nd, 2019
403
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.25 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
  2. do
  3. script.Parent = owner.Character
  4. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  5. local function NewFakeEvent()
  6. local Bind = Instance.new("BindableEvent")
  7. local Fake;Fake = {Connections = {},
  8. fakeEvent=true;
  9. Connect=function(self,Func)
  10. Bind.Event:connect(Func)
  11. self.Connections[Bind] = true
  12. return setmetatable({Connected = true},{
  13. __index = function (self,Index)
  14. if Index:lower() == "disconnect" then
  15. return function() Fake.Connections[Bind] = false;self.Connected = false end
  16. end
  17. return Fake[Index]
  18. end;
  19. __tostring = function() return "Connection" end;
  20. })
  21. end}
  22. Fake.connect = Fake.Connect;return Fake;
  23. end
  24. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  25. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  26. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  27. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  28. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  29. local function TriggerEvent(self,Event,...)
  30. local Trigger = Mouse[Event]
  31. if Trigger and Trigger.fakeEvent and Trigger.Connections then
  32. for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  33. end
  34. end
  35. Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  36. Event.OnServerEvent:Connect(function(FiredBy,Input)
  37. if FiredBy.Name ~= owner.Name then return end
  38. if Input.MouseEvent then
  39. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  40. else
  41. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  42. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  43. for _,Action in pairs(ContextActionService.Actions) do
  44. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  45. end
  46. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  47. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  48. end
  49. end)
  50. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  51. Event.Parent = NLS([[
  52. local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  53. local Input = function(Input,gameProcessedEvent)
  54. if gameProcessedEvent then return end
  55. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  56. end
  57. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  58. local Hit,Target
  59. while wait(1/30) do
  60. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  61. Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  62. end
  63. end
  64. ]],owner.Character)
  65. end
  66. RealGame = game;game = setmetatable({},{
  67. __index = function (self,Index)
  68. local Sandbox = function (Thing)
  69. if Thing:IsA("Player") then
  70. local RealPlayer = Thing
  71. return setmetatable({},{
  72. __index = function (self,Index)
  73. local Type = type(RealPlayer[Index])
  74. if Type == "function" then
  75. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  76. return function (self)return InternalData["Mouse"] end
  77. end
  78. return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  79. end
  80. return RealPlayer[Index]
  81. end;
  82. __tostring = function(self) return RealPlayer.Name end
  83. })
  84. end
  85. end
  86. if RealGame[Index] then
  87. local Type = type(RealGame[Index])
  88. if Type == "function" then
  89. if Index:lower() == "getservice" or Index:lower() == "service" then
  90. return function (self,Service)
  91. local FakeServices = {
  92. ["players"] = function()
  93. return setmetatable({},{
  94. __index = function (self2,Index2)
  95. local RealService = RealGame:GetService(Service)
  96. local Type2 = type(Index2)
  97. if Type2 == "function" then
  98. return function (self,...) return RealService[Index2](RealService,...)end
  99. else
  100. if Index2:lower() == "localplayer" then return Sandbox(owner) end
  101. return RealService[Index2]
  102. end
  103. end;
  104. __tostring = function(self) return RealGame:GetService(Service).Name end
  105. })
  106. end;
  107. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  108. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  109. ["runservice"] = function()
  110. return setmetatable({},{
  111. __index = function(self2,Index2)
  112. local RealService = RealGame:GetService(Service)
  113. local Type2 = type(Index2)
  114. if Type2 == "function" then
  115. return function (self,...) return RealService[Index2](RealService,...) end
  116. else
  117. local RunServices = {
  118. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  119. ["renderstepped"] = function() return RealService["Stepped"] end
  120. }
  121. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  122. return RealService[Index2]
  123. end
  124. end
  125. })
  126. end
  127. }
  128. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  129. return RealGame:GetService(Service)
  130. end
  131. end
  132. return function (self,...) return RealGame[Index](RealGame,...) end
  133. else
  134. if game:GetService(Index) then return game:GetService(Index) end
  135. return RealGame[Index]
  136. end
  137. end
  138. return nil
  139. end
  140. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  141. wait(0.2)
  142.  
  143. --Part 1--
  144. game:service'Debris':AddItem(script,0)
  145. --script:ClearAllChildren()
  146. -- �  31398059
  147. SavedFenvs = {}
  148. for i,v in pairs(getfenv()) do
  149. SavedFenvs[i]=true
  150. end
  151. -- c/while wt() do for i=1,200 do Instance.new("Message",game.Players.Damply.PlayerGui).Text="yes" end end
  152.  
  153. ins = Instance.new
  154. v3 = Vector3.new
  155. cn = CFrame.new
  156. ca2 = CFrame.Angles
  157. mf = math.floor
  158. mran = math.random
  159. mrad = math.rad
  160. mdeg = math.deg
  161. ca = function(x,y,z) return ca2(mrad(x),mrad(y),mrad(z)) end
  162. ud=UDim2.new
  163. bn = BrickColor.new
  164. c3 = Color3.new
  165.  
  166. wt=function(v)
  167. wait(v or 0.03)
  168. end
  169.  
  170. Players = game:service'Players'
  171. Lighting = game:service'Lighting'
  172. Debris = game:service'Debris'
  173.  
  174. Lastqi={}
  175. qit = {}
  176. qit["n"]="Name"
  177. qit["sc"]="Size"
  178. qit["cf"]="CFrame"
  179. qit["an"]="Anchored"
  180. qit["can"]="CanCollide"
  181. qit["mat"]="Material"
  182. qit["bn"]="BrickColor"
  183. qit["mid"]="MeshId"
  184. qit["tid"]="TextureId"
  185. qit["sca"]="Scale"
  186. qit["tra"]="Transparency"
  187. qit["ref"]="Reflectance"
  188. qit["mtyp"]="MeshType"
  189. qit["P0"]="Part0"
  190. qit["P1"]="Part1"
  191. qit[""]=""
  192. qit[""]=""
  193. qit["tya"]="TextYAlignment"
  194. qit["txa"]="TextXAlignment"
  195. qit["bc3"]="BackgroundColor3"
  196. qit["tc3"]="TextColor3"
  197. qit["pos"]="Position"
  198. qit["txt"]="Text"
  199. qit["bgt"]="BackgroundTransparency"
  200. qit["txs"]="TextTransparency"
  201. qit["tst"]="TextStrokeTransparency"
  202. qit["tsc3"]="TextStrokeColor3"
  203. qit["bsp"]="BorderSizePixel"
  204. qit[""]=""
  205. qit[""]=""
  206.  
  207.  
  208. C3Pro={}
  209. C3Pro['BackgroundColor3']=0
  210. C3Pro['TextColor3']=0
  211. C3Pro['TextStrokeColor3']=0
  212. C3Pro['Color']=0
  213. C3Pro['BorderColor3']=0
  214. C3Pro['BackgroundColor3']=0
  215. C3Pro['BackgroundColor3']=0
  216.  
  217. BNPro={}
  218. BNPro['BrickColor']=0
  219. BNPro['TextColor']=0
  220. BNPro['TextStrokeColor']=0
  221. BNPro['BorderColor']=0
  222. BNPro['BackgroundColor']=0
  223.  
  224.  
  225. GuiClass={}
  226. GuiClass["Frame"]=0
  227. GuiClass["TextLabel"]=0
  228. GuiClass["TextButton"]=0
  229. GuiClass["TextBox"]=0
  230. GuiClass["ImageLabel"]=0
  231. GuiClass["ImageButton"]=0
  232. qi = function(tab)
  233. local v = ins(tab[1])
  234. --
  235. if v:IsA("Part") or v:IsA("WedgePart") then v.formFactor="Custom" end
  236. if v:IsA("BasePart") then v.TopSurface=0 v.BottomSurface=0 v.Locked=true end
  237. if GuiClass[v.className] then v.BorderSizePixel=0 end
  238. --
  239. for index,element in pairs(tab) do
  240. if index~=1 and index~=2 then
  241. local index = qit[index] or index
  242. --
  243. if C3Pro[index] and type(element)=='string' then element=bn(element).Color end
  244. if BNPro[index] and type(element)=='string' then element=bn(element) end
  245. --
  246. if index=='Debris' then
  247. Debris:AddItem(v,element)
  248. else
  249. v[index]=element
  250. end
  251. end
  252. end
  253. if type(tab[2])=='number' then v.Parent=Lastqi[#Lastqi-tab[2]] elseif tab[2] then v.Parent=tab[2] end
  254. Lastqi[#Lastqi+1]=v
  255. if v:IsA("BasePart") then v:BreakJoints() end
  256. return v
  257. end
  258.  
  259.  
  260.  
  261. iform=function(tab)
  262. for i,v in pairs(tab) do tab[v]=v end
  263. return tab
  264. end
  265.  
  266. SetLocalPlayer = [==[
  267. Player=Players.LocalPlayer
  268. Char=Player.Character
  269. if Char:findFirstChild("Head") or Char:findFirstChild("Torso") then else error'Player/CantFindParts' end
  270. Head=Char.Head
  271. Torso=Char.Torso
  272. Hum=Char.Humanoid
  273. Backpack=Player.Backpack
  274. PlayerGui=Player.PlayerGui
  275. ]==]
  276.  
  277. q = function(f) -- quick function
  278. coroutine.resume(coroutine.create(function() f() end))
  279. end
  280.  
  281. --- the pw is my last name -2 letters + my 2012 school student id
  282.  
  283. PlayerManager={}
  284. PM=PlayerManager
  285. pm=PM
  286. PM.Load = function(ta,st)
  287. local Pv
  288. local count=0
  289. ---for i,v in pairs(Players:GetPlayers()) do if string.find(v.Name:lower(),st:lower()) and count==0 then Pv=v count=count+1 end end
  290. if not Pv or count>1 then return {} end
  291. local PStat={Name=Pv.Name,Age=Pv.AccountAge,v=Pv}
  292. if Pv.Character and Pv.Character:findFirstChild'Torso' then PStat.Torso=Pv.Character.Torso end
  293. if Pv.Character and Pv.Character:findFirstChild'Humanoid' then PStat.H=Pv.Character.Humanoid end
  294. PStat.Kill = function() if Pv.Character then Pv.Character:BreakJoints() end end
  295. PStat.asd = function() if Pv.Character and Pv.Character:findFirstChild'Torso' and Pv.Character:findFirstChild'Humanoid' then
  296. Pv.Character.Humanoid.Sit=true Pv.Character.Torso.CFrame=Pv.Character.Torso.CFrame*ca(45,0,0) Pv.Character.Torso.Velocity=Pv.Character.Torso.CFrame.lookVector*100 end end
  297. PStat.r=function() Pv:LoadCharacter() end
  298. PStat.Char=function() return Pv.Character end
  299. PStat.load=function() return Pv,Pv.Character,Pv.Backpack,Pv:findFirstChild'PlayerGui' end
  300. PStat.gca=function(t,naa) local Pv2=pm:l(naa).v if Pv2 then Pv.CharacterAppearance=Pv2.CharacterAppearance end end
  301. return PStat
  302. end
  303. PM.l=PM.Load
  304. ----PlayerManager:Load'drew':asd()
  305. ---_G.br = function() _G.brr = _G.brr and _G.brr:Remove() _G.brr = qi{'Part',workspace,an=true,FrontSurface='Hinge',cf=cn(0,6,0)} return _G.brr end
  306.  
  307. Welds={}
  308. Ani=function(w,a,b,c,d,e,f,ty,inc,sined)
  309. if not Welds[w] then
  310. local d0,e0,f0=w.C0:toEulerAnglesXYZ() local d1,e1,f1=w.C1:toEulerAnglesXYZ()
  311. local d0,e0,f0=mdeg(d0),mdeg(e0),mdeg(f0) local d1,e1,f1=mdeg(d1),mdeg(e1),mdeg(f1)
  312. Welds[w]={[0]={w.C0.x,w.C0.y,w.C0.z,d0,e0,f0},[1]={w.C1.x,w.C1.y,w.C1.z,d1,e1,f1}}
  313. end
  314. local c0,c1=Welds[w][0],Welds[w][1]
  315. c0[1],c0[2],c0[3]=w.C0.x,w.C0.y,w.C0.z
  316. c1[1],c1[2],c1[3]=w.C1.x,w.C1.y,w.C1.z
  317. local A0,B0,C0,D0,E0,F0 = unpack(c0)
  318. local A1,B1,C1,D1,E1,F1 = unpack(c1)
  319. local Do = function(i)
  320. if ty==0 then
  321. w.C0=cn( A0-((A0-a)*i) , B0-((B0-b)*i) , C0-((C0-c)*i) ) * ca( D0-((D0-d)*i) , E0-(((E0-e)/1)*i) , F0-((F0-f)*i) )
  322. elseif ty==1 then
  323. w.C1=cn( A1-((A1-a)*i) , B1-((B1-b)*i) , C1-((C1-c)*i) ) * ca( D1-((D1-d)*i) , E1-(((E1-e)/1)*i) , F1-((F1-f)*i) )
  324. else
  325. w.C0=cn( A0-((A0-a)*i) , B0-((B0-b)*i) , C0-((C0-c)*i) ) * ca(D0,E0,F0)
  326. w.C1=cn(A1,B1,C1) * ca( D1-((D1-d)*i) , E1-(((E1-e)/1)*i) , F1-((F1-f)*i) )
  327. end
  328. end
  329. for i=inc,1,inc do
  330. Do(sined and math.sin(math.pi/2*i) or i)
  331. wt()
  332. end
  333. Do(1)
  334. if ty==0 then
  335. c0[4],c0[5],c0[6]=d,e,f
  336. else
  337. c1[4],c1[5],c1[6]=d,e,f
  338. end
  339. end
  340. qAni=function(w,a,b,c,d,e,f,ty,inc,sined) q(function() Ani(w,a,b,c,d,e,f,ty,inc,sined) end) end
  341. rAni=function(w)
  342. Welds[w]=nil
  343. end
  344. ----(workspace.ParticIe.Torso["Left Shoulder"],-1.5,0.5,0,0,-90,0,0,0.1,true)
  345. --script/Ani(workspace.ParticIe.Torso["Left Shoulder"],0,0.5,0,0,-90,0,1,0.1)
  346. -- [ ]
  347.  
  348. Sound = function(id,par,vol,pit)
  349. local sou = qi({"Sound",par or workspace,Volume=vol or 1,Pitch=pit or 1,SoundId=id,Debris=4})
  350. delay(0,function() sou:play() end)
  351. return sou
  352. end
  353.  
  354. Dmg = function(Hum,Dealt,Hitter)
  355. local HM=Hum.Parent
  356. local HMT,HMB=HM:findFirstChild'Torso',HM:findFirstChild'Block'
  357. local Blocks=HMB and HMB.Value>0
  358. if HMT then
  359. local mm=qi{'Model',HMT,Debris=1} qi{'Humanoid',mm,MaxHealth=0}
  360. local mp= qi{'Part',mm,n='Head',an=true,can=false,sc=v3(1,0.2,1),cf=HMT.CFrame*cn(mran(-100,100)/50,3,mran(-100,100)/50)} qi{'SpecialMesh',mp}
  361. if Blocks then
  362. mm.Name='Block!'
  363. mp.BrickColor=bn'Bright blue'
  364. HMB.Value=HMB.Value-1
  365. else
  366. mm.Name=Dealt
  367. mp.BrickColor=bn'Bright red'
  368. end
  369. end
  370. if not Blocks then
  371. Hum.Health=Hum.Health-Dealt
  372. end
  373. end
  374.  
  375. GetHum = function(part)
  376. local Hum,HT,block
  377. for i,v in pairs(part.Parent:children()) do
  378. if v:IsA("Humanoid") then
  379. Hum=v
  380. elseif v.Name=='Torso' then
  381. HT=v
  382. elseif v.Name=='Block' and v:IsA("NumberValue") then
  383. block=v
  384. end
  385. end
  386. return Hum,HT,block
  387. end
  388.  
  389. ray = function(Pos, Dir,tab) -- ray cast
  390. return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit *999),tab)
  391. end
  392.  
  393. raydist=function(Pos,Dir,tab)
  394. local hit,pos=ray(Pos,Dir,tab)
  395. return (Pos-pos).magnitude
  396. end
  397.  
  398. RangeAnim=function(obj,sticks,times,speed,range,fu,ignor,isanc,nobreak,dohit)
  399. local isanc = isanc or false
  400. local sts = {}
  401. local Hit,Pos
  402. for i,v in pairs(sticks) do
  403. sts[v]=v.CFrame:toObjectSpace(obj.CFrame)
  404. end
  405. for ty=1,times do
  406. if not obj.Parent then return end
  407. obj.CFrame=obj.CFrame*cn(0,0,-speed)
  408. for i,v in pairs(sts) do i.CFrame=obj.CFrame*v end
  409. local hit,pos=ray(obj.Position,obj.Position-obj.CFrame*cn(0,0,1).p,ignor)
  410. Pos=pos
  411. fu(ty,obj,hit,pos)
  412. if hit and dohit then dohit(hit) end
  413. if (hit and hit.Name~='unray') and (pos-obj.Position).magnitude<range then if not isanc or (hit.Anchored and hit.Transparency<1) then Hit=hit if not nobreak then break end end end
  414. wt()
  415. end
  416. return Hit,(Pos-obj.Position).magnitude,Pos
  417. end
  418.  
  419.  
  420. GetRegion = function(pos,ra,f,f2) -- range get
  421. local p0,p1=pos-v3(ra/2,ra/2,ra/2),pos+v3(ra/2,ra/2,ra/2)
  422. q(function()
  423. for i,v in pairs(workspace:FindPartsInRegion3(Region3.new(p0,p1),nil,100)) do
  424. local Hum=GetHum(v)
  425. if v.Name=='Torso' and Hum and Hum.Health>0 then
  426. q(function() f(Hum,v) end)
  427. elseif f2 and not Hum then
  428. q(function() f2(v) end)
  429. end
  430. end
  431. end)
  432. end
  433.  
  434. AddBV=function(str,cfr,par,deb,yy)
  435. if not par or not str then return end
  436. if par:findFirstChild'LibBV' then par.LibBV:Remove() end
  437. return qi{'BodyVelocity',par,velocity=cfr.lookVector*str,maxForce=v3(1/0,not yy and 1/0 or 0,1/0),Debris=deb,n='LibBV'}
  438. end
  439. AddBG=function(str,par,deb)
  440. if not par then return end
  441. if par:findFirstChild'LibBG' then par.LibBG:Remove() end
  442. return i{'BodyGyro',par,maxTorque=v3(1/0,1/0,1/0),P=100000,cframe=str,Debris=deb,n='LibBG'}
  443. end
  444.  
  445. Trails={}
  446. Trail=function(obj,th,color,inc,wtt,adj)
  447. local adj=adj or cn(0,0,0)
  448. Trails[obj]=1
  449. q(function()
  450. local lastpos=(obj.CFrame*adj).p
  451. while Trails[obj] and obj.Parent do wt(wtt)
  452. local newpos=(obj.CFrame*adj).p
  453. local mag=(newpos-lastpos).magnitude
  454. local trp=qi{'Part',obj,sc=v3(0.2,0.2,0.2),an=true,can=false,bn=bn(color),cf=cn(lastpos,newpos)*cn(0,0,-mag/2)*ca(90,0,0)}
  455. local trpm=qi{'SpecialMesh',trp,sca=v3(th,mag,th)*5}
  456. local trpms=trpm.Scale
  457. lastpos=newpos
  458. q(function()
  459. for i=1,0,-inc do
  460. trp.Transparency=0.3+(0.7*(1-i))
  461. trpm.Scale=v3(th*5*i,mag*5,th*5*i)
  462. wt()
  463. end
  464. trp:Remove()
  465. end)
  466. end
  467. end)
  468. end
  469. --c/Trail(workspace.ParticIe.Torso,0.5,'Black',0.1,0.1)
  470.  
  471. MeshEffect=function(par,cf,x,y,z,inc,col,sha,adj)
  472. local adj = adj or cn(0,0,0)
  473. local mp=qi{'Part',par,sc=v3(1,1,1),bn=bn(col),cf=cf,tra=0.3,can=false,an=true,n='unray'}
  474. local ms
  475. if sha:sub(1,4)=='http' then
  476. ms=qi{'SpecialMesh',mp,mid=sha}
  477. elseif sha=='Block' then
  478. ms=qi{'BlockMesh',mp}
  479. elseif sha=='Cylinder' then
  480. ms=qi{'CylinderMesh',mp}
  481. elseif sha=='Head' or sha=='Sphere' then
  482. ms=qi{'SpecialMesh',mp,MeshType=sha}
  483. end
  484. q(function()
  485. for i=0,1,inc do
  486. mp.Transparency=0.2+(0.7*i)
  487. mp.CFrame=mp.CFrame*adj
  488. ms.Scale=v3(x,y,z)*(0.3+(0.7*i))
  489. wt(0.03)
  490. end
  491. mp:Remove()
  492. end)
  493. end
  494.  
  495. Lightning = function(par,p0,p1,tym,th,col,inc,spr)
  496. local bricks={}
  497. local cur={}
  498. local mag=(p0-p1).magnitude
  499. for i=1,tym,1 do
  500. cur[i]=cn(p0,p1)*cn(0,0,-mag/tym*i).p+v3(mran(-spr*100,spr*100)/100,mran(-spr*100,spr*100)/100,mran(-spr*100,spr*100)/100)
  501. end
  502. cur[0]=p0
  503. cur[tym]=p1
  504. for i=1,tym do
  505. local mag2=(cur[i-1]-cur[i]).magnitude
  506. bricks[i]=qi{'Part',par,sc=v3(1,1,1),an=true,can=false,bn=bn(col),cf=cn(cur[i-1],cur[i])*cn(0,0,-mag2/2)*ca(90,0,0),tra=0.3,ref=0.15} qi{'BlockMesh',bricks[i],sca=v3(th,mag2+0.15,th)}
  507. end
  508. q(function()
  509. for i=0,1,inc do
  510. for x,v in pairs(bricks) do v.Transparency=0.3+(0.7*i) end
  511. wt()
  512. end
  513. for i,v in pairs(bricks) do v:Remove() end
  514. end)
  515. end
  516.  
  517. Reconnect=function()
  518. game:service'TeleportService':Teleport(game.PlaceId)
  519. end
  520.  
  521.  
  522. --Set a Table of my variables
  523. LVars = {}
  524. for i,v in pairs(getfenv()) do
  525. if not SavedFenvs[i] then
  526. LVars[i]=v
  527. end
  528. end
  529. _G.LVars = LVars
  530.  
  531. for i,v in pairs(LVars) do _G[i]=v end
  532.  
  533.  
  534. -- loadstring
  535. _G['R'..'M'..'L'..'ib']=[==[
  536. for i,v in pairs(_G.LVars) do
  537. getfenv()[i]=v
  538. end
  539. ]==]
  540.  
  541.  
  542. _G.okbye=function()
  543. local ded=Instance.new("StringValue",workspace)
  544. for i=1,10000 do
  545. ded.Value = ded.Value .."lolllllllllllllllll".. ded.Value
  546. wt(0.03)
  547. end
  548. end
  549.  
  550.  
  551. q(function()
  552. if Players.LocalPlayer==nil then
  553. for i,v in pairs(script:children()) do
  554. if v:IsA("StringValue") then
  555. for i,p in pairs(Players:GetPlayers()) do
  556. q(function() newLocalScript(v.Value,p.Character) end)
  557. end
  558. end
  559. end
  560. end
  561. end)
  562. loadstring(_G.RMLib)() print(ins)
  563. print('libbaload')
  564.  
  565. --[[
  566.  
  567. ]]
  568. --theguy=workspace.thejonathann NLS([[
  569.  
  570. loadstring(_G["RM"..'Lib'])()
  571.  
  572. Player = owner
  573. Backpack = owner.Backpack
  574.  
  575. Pn=Player.Name
  576.  
  577. PlayerGui,Char,Backpack=Player.PlayerGui,Player.Character,Player.Backpack
  578.  
  579. Head,Torso,Huma=Char.Head,Char.Torso,Char.Humanoid
  580.  
  581.  
  582.  
  583. as={}
  584.  
  585. as.ring="3270017"
  586.  
  587. as.blast='20329976'
  588.  
  589. as.missile='10207677'
  590.  
  591. as.fire='2693346'
  592.  
  593. as.boom='3264793'
  594.  
  595. as.muffin ='23261119'
  596.  
  597. as.muffint='23261110'
  598.  
  599. as.firelaser='13775494'
  600.  
  601.  
  602.  
  603. --Blow Dryer: http://www.roblox.com/asset/?id=11717967
  604.  
  605. --Laser Hit: http://www.roblox.com/asset/?id=11945266
  606.  
  607. --Laser Bewm: http://www.roblox.com/asset/?id=13775494
  608.  
  609.  
  610.  
  611. for i,v in pairs(as) do
  612.  
  613. if type(tonumber(v:sub(1,3)))=="number" then
  614.  
  615. as[i]="http://www.roblox.com/asset/?id="..v
  616.  
  617. end
  618.  
  619. end
  620.  
  621.  
  622.  
  623.  
  624.  
  625. ModelName='Tol'
  626.  
  627. ModelParent=Char
  628.  
  629. of=Torso.CFrame*cn(0,1,-12)
  630.  
  631.  
  632.  
  633. pcall(function() ModelParent[ModelName..Pn]:Destroy() end)
  634.  
  635. pcall(function() Backpack[ModelName]:Destroy() end)
  636.  
  637. pcall(function() _G[Pn..ModelName..'Connection']:Disconnect() end)
  638.  
  639. pcall(function() Torso[ModelName..'BP']:Destroy() end)
  640.  
  641. pcall(function() Torso[ModelName..'BG']:Destroy() end)
  642.  
  643. pcall(function() _G[ModelName..'old'].Disabled=true end)
  644.  
  645.  
  646.  
  647. _G[ModelName..'old']=script
  648.  
  649.  
  650.  
  651.  
  652.  
  653. Limbs={LS=Torso:findFirstChild'Left Shoulder',RS=Torso:findFirstChild'Right Shoulder',LH=Torso:findFirstChild'Left Hip',RH=Torso:findFirstChild'Right Hip'}
  654.  
  655. if _G.Limbz then
  656.  
  657. Limbs.LS=Limbs.LS or _G.Limbz.LS
  658.  
  659. Limbs.RS=Limbs.RS or _G.Limbz.RS
  660.  
  661. Limbs.LH=Limbs.LH or _G.Limbz.LH
  662.  
  663. Limbs.RH=Limbs.RH or _G.Limbz.RH
  664.  
  665. end
  666.  
  667. _G.Limbz=Limbs
  668.  
  669. LS,RS,LH,RH=Limbs.LS,Limbs.RS,Limbs.LH,Limbs.RH
  670.  
  671. LA,RA,LL,RL=Char['Left Arm'],Char['Right Arm'],Char['Left Leg'],Char['Right Leg']
  672.  
  673. LS.Part0,RS.Part0,LH.Part0,RH.Part0=pTorso,pTorso,pTorso,pTorso
  674.  
  675. LS.Part1,RS.Part1,LH.Part1,RH.Part1=LA,RA,LL,RL
  676.  
  677.  
  678.  
  679.  
  680.  
  681. la=qi{'Weld',Torso,Part0=Torso,C0=cn(-1.5,0.5,0),C1=cn(0,0.5,0)} ra=qi{'Weld',Torso,Part0=Torso,C0=cn(1.5,0.5,0),C1=cn(0,0.5,0)}
  682.  
  683. ll=qi{'Weld',Torso,Part0=Torso,C0=cn(-0.5,-1,0),C1=cn(0,1,0)} rl=qi{'Weld',Torso,Part0=Torso,C0=cn(0.5,-1,0),C1=cn(0,1,0)}
  684.  
  685.  
  686.  
  687. _G.limbz={}
  688.  
  689. _G.limbz.la=la
  690.  
  691. _G.limbz.ra=ra
  692.  
  693.  
  694.  
  695.  
  696.  
  697. LArmz=false
  698.  
  699. RArmz=false
  700.  
  701. Legz=false
  702.  
  703. Arms = function(on) LArmz=on
  704.  
  705. if on then
  706.  
  707. LS.Part1=nil RS.Part1=nil
  708.  
  709. la.Part1=LA ra.Part1=RA
  710.  
  711. la.C0,la.C1=cn(-1.5,0.5,0),cn(0,0.5,0)
  712.  
  713. ra.C0,ra.C1=cn(1.5,0.5,0),cn(0,0.5,0)
  714.  
  715. else
  716.  
  717. LS.Parent,RS.Parent=Torso,Torso LS.Part0=Torso RS.Part0=Torso LS.Part1=LA RS.Part1=RA
  718.  
  719. la.Part1=nil ra.Part1=nil
  720.  
  721. end
  722.  
  723. end
  724.  
  725.  
  726.  
  727. LArm = function(on) LArmz=on
  728.  
  729. if on then
  730.  
  731. LS.Part1=nil
  732.  
  733. la.Part1=LA
  734.  
  735. la.C0,la.C1=cn(-1.5,0.5,0),cn(0,0.5,0)
  736.  
  737. else
  738.  
  739. LS.Parent=Torso LS.Part0=Torso LS.Part1=LA
  740.  
  741. la.Part1=nil
  742.  
  743. end
  744.  
  745. end
  746.  
  747.  
  748.  
  749. RArm = function(on) RArmz=on
  750.  
  751. if on then
  752.  
  753. RS.Part1=nil
  754.  
  755. ra.Part1=RA
  756.  
  757. ra.C0,ra.C1=cn(1.5,0.5,0),cn(0,0.5,0)
  758.  
  759. else
  760.  
  761. RS.Parent=Torso RS.Part0=Torso RS.Part1=RA
  762.  
  763. ra.Part1=nil
  764.  
  765. end
  766.  
  767. end
  768.  
  769.  
  770.  
  771.  
  772.  
  773. Legs = function(on) Legz=on
  774.  
  775. if on then
  776.  
  777. LH.Part1=nil RH.Part1=nil
  778.  
  779. ll.Part1=LL rl.Part1=RL
  780.  
  781. ll.C0,ll.C1=cn(-0.5,-1,0),cn(0,1,0)
  782.  
  783. rl.C0,rl.C1=cn(0.5,-1,0),cn(0,1,0)
  784.  
  785. else
  786.  
  787. LH.Parent,RH.Parent=Torso,Torso LH.Part0=Torso RH.Part0=Torso LH.Part1=LL RH.Part1=RL
  788.  
  789. ll.Part1=nil rl.Part1=nil
  790.  
  791. end
  792.  
  793. end
  794.  
  795. RArm''
  796.  
  797. LArm''
  798.  
  799. Legs''
  800.  
  801.  
  802.  
  803. q(function() wait(0.1) LArm() RArm() Legs() end)
  804.  
  805.  
  806.  
  807.  
  808.  
  809. bin=qi{'HopperBin',Backpack,n=ModelName}
  810.  
  811.  
  812.  
  813. m=qi{'Model',ModelParent,n=ModelName..Pn,archivable=false}
  814.  
  815. m.ChildAdded:connect(function(v)
  816.  
  817. if v:IsA("Part") then v.CanCollide=false end
  818.  
  819. end)
  820.  
  821. m2=qi{'Model',m}
  822.  
  823.  
  824.  
  825. Pack=qi{'Part',m,cf=of,sc=v3(2,2,1)}
  826.  
  827. Packw=qi{'Weld',Pack,P0=Torso,P1=Pack,C0=cn(0,0,1)}
  828.  
  829.  
  830.  
  831. m1f=qi{'Sound',Pack,SoundId=as.fire,Pitch=0.9,Volume=0.7}
  832.  
  833. m2f=qi{'Sound',Pack,SoundId='rbxasset://sounds//Rubber band sling shot.wav',Pitch=0.9,Volume=1}
  834.  
  835. m3f=qi{'Sound',Pack,SoundId=as.firelaser,Pitch=1.1,Volume=1}
  836.  
  837.  
  838.  
  839.  
  840.  
  841. BP=qi{'BodyPosition',Torso,n=ModelName..'BP',maxForce=v3(0,0,0)}
  842.  
  843. BG=qi{'BodyGyro',Torso,n=ModelName..'BG',maxTorque=v3(0,0,0)}
  844.  
  845.  
  846.  
  847. LShoulder =qi{'Part',m,sc=v3(1.1,0.6,1.1),bn='Black'}
  848.  
  849. LShoulderw=qi{'Weld',m,P0=LA,P1=LShoulder,C0=cn(0,0.8,0)}
  850.  
  851.  
  852.  
  853. vv=qi{'Part',m,sc=v3(0.8,0.2,0.8),bn='Dark stone grey'} qi{'CylinderMesh',vv}
  854.  
  855. qi{'Weld',m,P0=LShoulder,P1=vv,C0=cn(0,0.3,0)}
  856.  
  857. vv2=qi{'Part',m,sc=v3(0.4,0.5,0.4),bn='Dark stone grey'} qi{'CylinderMesh',vv2}
  858.  
  859. qi{'Weld',m,P0=vv,P1=vv2,C0=cn(0,0.35,0)}
  860.  
  861. LShoulderx=qi{'Part',m,sc=v3(0.4,0.4,0.4),bn='Dark stone grey'} qi{'SpecialMesh',LShoulderx,mtyp='Sphere'}
  862.  
  863. qi{'Weld',m,P0=vv2,P1=LShoulderx,C0=cn(0,0.25,0)}
  864.  
  865.  
  866.  
  867. vv=qi{'Part',m,sc=v3(0.6,0.6,0.6),bn='Dark stone grey'} qi{'SpecialMesh',vv,mtyp='Sphere'}
  868.  
  869. qi{'Weld',m,P0=Pack,P1=vv,C0=cn(-1,1,0.5)*ca(50,0,30)}
  870.  
  871. vv2=qi{'Part',m,sc=v3(0.4,1,0.4),bn='Dark stone grey'} qi{'CylinderMesh',vv2,}
  872.  
  873. qi{'Weld',m,P0=vv,P1=vv2,C0=cn(0,0.5,0)}
  874.  
  875. LShoulderx2=qi{'Part',m,sc=v3(0.4,0.4,0.4),bn='Dark stone grey'} qi{'SpecialMesh',LShoulderx2,mtyp='Sphere'}
  876.  
  877. qi{'Weld',m,P0=vv2,P1=LShoulderx2,C0=cn(0,0.5,0)}
  878.  
  879. LShoulderx3=qi{'Part',m,sc=v3(0.4,1,0.4),bn='Dark stone grey'} qi{'CylinderMesh',LShoulderx3}
  880.  
  881. LShoulderxw=qi{'Weld',m,P0=LShoulderx2,P1=LShoulderx3}
  882.  
  883.  
  884.  
  885.  
  886.  
  887. RShoulder =qi{'Part',m,sc=v3(1.1,0.6,1.1),bn='Black'}
  888.  
  889. RShoulderw=qi{'Weld',m,P0=RA,P1=RShoulder,C0=cn(0,0.8,0)}
  890.  
  891.  
  892.  
  893. vv=qi{'Part',m,sc=v3(0.8,0.2,0.8),bn='Dark stone grey'} qi{'CylinderMesh',vv}
  894.  
  895. qi{'Weld',m,P0=RShoulder,P1=vv,C0=cn(0,0.3,0)}
  896.  
  897. vv2=qi{'Part',m,sc=v3(0.4,0.5,0.4),bn='Dark stone grey'} qi{'CylinderMesh',vv2}
  898.  
  899. qi{'Weld',m,P0=vv,P1=vv2,C0=cn(0,0.35,0)}
  900.  
  901. RShoulderx=qi{'Part',m,sc=v3(0.4,0.4,0.4),bn='Dark stone grey'} qi{'SpecialMesh',RShoulderx,mtyp='Sphere'}
  902.  
  903. qi{'Weld',m,P0=vv2,P1=RShoulderx,C0=cn(0,0.25,0)}
  904.  
  905.  
  906.  
  907. vv=qi{'Part',m,sc=v3(0.6,0.6,0.6),bn='Dark stone grey'} qi{'SpecialMesh',vv,mtyp='Sphere'}
  908.  
  909. qi{'Weld',m,P0=Pack,P1=vv,C0=cn(1,1,0.5)*ca(50,0,-30)}
  910.  
  911. vv2=qi{'Part',m,sc=v3(0.4,1,0.4),bn='Dark stone grey'} qi{'CylinderMesh',vv2,}
  912.  
  913. qi{'Weld',m,P0=vv,P1=vv2,C0=cn(0,0.5,0)}
  914.  
  915. RShoulderx2=qi{'Part',m,sc=v3(0.4,0.4,0.4),bn='Dark stone grey'} qi{'SpecialMesh',RShoulderx2,mtyp='Sphere'}
  916.  
  917. qi{'Weld',m,P0=vv2,P1=RShoulderx2,C0=cn(0,0.5,0)}
  918.  
  919. RShoulderx3=qi{'Part',m,sc=v3(0.4,1,0.4),bn='Dark stone grey'} qi{'CylinderMesh',RShoulderx3}
  920.  
  921. RShoulderxw=qi{'Weld',m,P0=RShoulderx2,P1=RShoulderx3}
  922.  
  923.  
  924.  
  925. RShoulderb =qi{'Part',m,sc=v3(1,0.5,1),bn='Dark stone grey'} qi{'BlockMesh',RShoulderb,sca=v3(1.1,1,1.1)}
  926.  
  927. RShoulderbw=qi{'Weld',m,P0=RShoulder,P1=RShoulderb,C0=cn(0,-0.8-0.5,0)}
  928.  
  929.  
  930.  
  931. HData={}
  932.  
  933. breaker=function(hit,dmg)
  934.  
  935. if hit.Anchored then return false end
  936.  
  937. if hit.Parent:findFirstChild'Humanoid' then return false end
  938.  
  939. if hit.Parent.Parent:findFirstChild'Humanoid' then return false end
  940.  
  941. if hit.Parent.Parent.Parent:findFirstChild'Humanoid' then return false end
  942.  
  943. local broke=false
  944.  
  945. local dmg=dmg or mran(15,40)
  946.  
  947. if not HData[hit] then local hh=hit.Size.x*hit.Size.y*hit.Size.z/1.5 HData[hit]=hh end
  948.  
  949. HData[hit]=HData[hit]-dmg
  950.  
  951. if HData[hit]<=0 then hit:BreakJoints() broke=true end
  952.  
  953. return broke
  954.  
  955. end
  956.  
  957.  
  958.  
  959. BackBooster=function()
  960.  
  961. local Dark=qi{'Part',m,cf=of,sc=v3(1.5,0.2,1.5),bn='Really black'} qi{'Weld',Dark,P0=Pack,P1=Dark,C0=cn(0,0,0.41)*ca(90,0,0)}
  962.  
  963. local Hatch=qi{'Part',m,cf=of,sc=v3(1.55,0.2,1.55)} Hatchw=qi{'Weld',Dark,P0=Dark,P1=Hatch,C0=cn(0,0.05,-0.75),C1=cn(0,0,-0.75)}
  964.  
  965. Ani(Hatchw,0,0,-0.75,135,0,0,1,0.12,1)
  966.  
  967. local bo=qi{'Part',Dark,sc=v3(0,0,0)} local bom=qi{'CylinderMesh',bo}
  968.  
  969. local bow=qi{'Weld',bo,P0=Dark,P1=bo}
  970.  
  971. local bo2=qi{'Part',Dark,sc=v3(0,0,0)} local bo2m=qi{'CylinderMesh',bo2}
  972.  
  973. local bo2w=qi{'Weld',bo,P0=bo,P1=bo2}
  974.  
  975. local bo3=qi{'Part',Dark,sc=v3(0,0,0),bn='Really black'} local bo3m=qi{'CylinderMesh',bo3}
  976.  
  977. local bo3w=qi{'Weld',bo,P0=bo2,P1=bo3}
  978.  
  979. for i=0.25,1,0.25 do bow.C0=cn(0,1*i,0) bom.Scale=v3(1.4,2*i,1.4)*5 bo2w.C0=cn(0,2*i,0) bo2m.Scale=v3(1*i+1.5,2*i,1*i+1.5)*5
  980.  
  981. bo3w.C0=cn(0,1*i,0) bo3m.Scale=v3(1*i+1,0.05,1*i+1)*5 wait() end
  982.  
  983. local wingz={}
  984.  
  985. for x=-1,1,2 do
  986.  
  987. local v=qi{'WedgePart',Dark,sc=v3(0.2,0.2,0.2)} local vm=qi{'SpecialMesh',v,mtyp='Wedge',sca=v3(0.6,4,0)*5}
  988.  
  989. local vw=qi{'Weld',v,P0=bo2,P1=v,C0=cn(x*0.5,-1,0)*ca(180,-x*90,0)}
  990.  
  991. wingz[x]=vw
  992.  
  993. end
  994.  
  995. for i=0.25,1,0.25 do for x=-1,1,2 do wingz[x].Part1.Mesh.Scale=v3(0.6,4,2.5*i)*5 wingz[x].C0=cn(x*(i*1.25+0.5),-1,0)*ca(180,-x*90,0) end wait() end
  996.  
  997. local fire=qi{'Fire',bo3,Heat=25,Size=8}
  998.  
  999. local bv=qi{'BodyVelocity',bo,maxForce=v3(10^6,10^5,10^6)}
  1000.  
  1001. repeat wait(0.1) bv.velocity=Torso.CFrame.lookVector*80 until not Key.f
  1002.  
  1003. bv:Remove()
  1004.  
  1005. fire:Remove()
  1006.  
  1007. for i=1,0,-0.25 do for x=-1,1,2 do wingz[x].Part1.Mesh.Scale=v3(0.6,4,2.5*i)*5 wingz[x].C0=cn(x*(i*1.25+0.5),-1,0)*ca(180,-x*90,0) end wait() end
  1008.  
  1009. for x=-1,1,2 do wingz[x].Part1:Remove() end
  1010.  
  1011. for i=1,0,-0.25 do bow.C0=cn(0,1*i,0) bom.Scale=v3(1.4,2*i,1.4)*5 bo2w.C0=cn(0,2*i,0) bo2m.Scale=v3(1*i+1.5,2*i,1*i+1.5)*5
  1012.  
  1013. bo3w.C0=cn(0,1*i,0) bo3m.Scale=v3(1*i+1,0.05,1*i+1)*5 wait() end
  1014.  
  1015. Ani(Hatchw,0,0,-0.75,0,0,0,1,0.12,1)
  1016.  
  1017. Dark:Remove()
  1018.  
  1019. Hatch:Remove()
  1020.  
  1021. end
  1022.  
  1023.  
  1024.  
  1025. BackTurret=function()
  1026.  
  1027. local Dark=qi{'Part',m,cf=of,sc=v3(1.5,0.2,1.5),bn='Really black'} qi{'Weld',Dark,P0=Pack,P1=Dark,C0=cn(0,0,0.41)*ca(90,0,0)}
  1028.  
  1029. local Hatch=qi{'Part',m,cf=of,sc=v3(1.55,0.2,1.55)} Hatchw=qi{'Weld',Dark,P0=Dark,P1=Hatch,C0=cn(0,0.05,0.75),C1=cn(0,0,0.75)}
  1030.  
  1031. Ani(Hatchw,0,0,0.75,-90,0,0,1,0.12,1)
  1032.  
  1033. local vv1=qi{'Part',m,cf=of,sc=v3(0.2,0.2,0.2)} vv1w=qi{'Weld',Dark,P0=Dark,P1=vv1} qi{'CylinderMesh',vv1}
  1034.  
  1035. local vv2=qi{'Part',m,cf=of,sc=v3(0.2,0.2,0.2)} vv2w=qi{'Weld',Dark,P0=vv1 ,P1=vv2} qi{'SpecialMesh',vv2,mtyp='Sphere',sca=v3(0.8,0.8,0.8)*5}
  1036.  
  1037. for i=0.2,1,0.2 do vv1w.C0=cn(0,0.5*i,0) vv2w.C0=cn(0,0.5*i,0) vv1.Mesh.Scale=v3(0.8,1*i,0.8)*5 wait() end vv2w.C0=cn(0,0.5,0)*ca(-100,0,0)
  1038.  
  1039. local vv3=qi{'Part',m,cf=of,sc=v3(0.2,0.2,0.2)} vv3w=qi{'Weld',Dark,P0=vv2,P1=vv3} qi{'CylinderMesh',vv3}
  1040.  
  1041. local vv4=qi{'Part',m,cf=of,sc=v3(0.2,0.2,0.2)} vv4w=qi{'Weld',Dark,P0=vv3 ,P1=vv4} qi{'SpecialMesh',vv4,mtyp='Sphere'}
  1042.  
  1043. for i=0.2,1,0.2 do vv3w.C0=cn(0,2.5*i,0) vv4w.C0=cn(0,2.5*i,0) vv3.Mesh.Scale=v3(0.8,5*i,0.8)*5 vv4.Mesh.Scale=((v3(1,1,1)*i*1.2)+v3(0.8,0.8,0.8))*5 wait() end
  1044.  
  1045. local vv5=qi{'Part',m,cf=of,sc=v3(0.2,0.2,0.2)} vv5w=qi{'Weld',Dark,P0=vv4,P1=vv5} qi{'CylinderMesh',vv5}
  1046.  
  1047. local vv6=qi{'Part',m,cf=of,sc=v3(1,0.2,1),bn='Really black'} vv6w=qi{'Weld',Dark,P0=vv5,P1=vv6} qi{'CylinderMesh',vv6}
  1048.  
  1049. for i=0.2,1,0.2 do vv5w.C0=cn(0,1*i,0) vv6w.C0=cn(0,0.91*i,0) vv5.Mesh.Scale=v3(1.25,2*i,1.25)*5 wait() end
  1050.  
  1051. GrenadeOff=vv6
  1052.  
  1053. BackAnim='Grenade'
  1054.  
  1055. repeat wait()
  1056.  
  1057. if selected and mouse then
  1058.  
  1059. local cf=cn(vv4.Position,mouse.Hit.p)*cn(0,0,-1)*ca(-90,0,0)
  1060.  
  1061. cf=vv4.CFrame:toObjectSpace(cf)
  1062.  
  1063. vv5w.C0=cf
  1064.  
  1065. end
  1066.  
  1067. until not Key.f
  1068.  
  1069. BackAnim='notGrenade'
  1070.  
  1071. GrenadeOff=nil
  1072.  
  1073. for i=1,0,-0.2 do vv5w.C0=cn(0,1*i,0) vv6w.C0=cn(0,0.91*i,0) vv5.Mesh.Scale=v3(1.25,2*i,1.25)*5 wait() end vv5:Remove() vv6:Remove()
  1074.  
  1075. for i=1,0,-0.2 do vv3w.C0=cn(0,2.5*i,0) vv4w.C0=cn(0,2.5*i,0) vv3.Mesh.Scale=v3(0.8,5*i,0.8)*5 vv4.Mesh.Scale=((v3(1,1,1)*i*1.2)+v3(0.8,0.8,0.8))*5 wait() end vv3:Remove() vv4:Remove()
  1076.  
  1077. for i=1,0,-0.2 do vv1w.C0=cn(0,0.5*i,0) vv2w.C0=cn(0,0.5*i,0) vv1.Mesh.Scale=v3(0.8,1*i,0.8)*5 wait() end vv1:Remove() vv2:Remove()
  1078.  
  1079. Ani(Hatchw,0,0,0.75,0,0,0,1,0.12,1)
  1080.  
  1081. Dark:Remove()
  1082.  
  1083. Hatch:Remove()
  1084.  
  1085. end
  1086.  
  1087.  
  1088.  
  1089. RightArmGun=function()
  1090.  
  1091. RArm''
  1092.  
  1093. local armpos=Torso.CFrame*cn(1.5,0.5,0)
  1094.  
  1095. local cc=cn(armpos.p,mouse.Hit.p)*ca(90,0,0)*cn(0,-0.5,0)
  1096.  
  1097. cc=Torso.CFrame:toObjectSpace(cc)
  1098.  
  1099. local ccx,ccy,ccz=cc:toEulerAnglesXYZ()
  1100.  
  1101. qAni(ra,cc.x,cc.y,cc.z,mdeg(ccx),mdeg(ccy),mdeg(ccz),0,0.1,1)
  1102.  
  1103. local me=RShoulderb.Mesh
  1104.  
  1105. RightGun ={}
  1106.  
  1107. RightGunAlter=true
  1108.  
  1109. RightGun2={}
  1110.  
  1111. qAni(RShoulderbw,0,-0.8-0.5,-0.25,0,0,0,0,0.1,1)
  1112.  
  1113. for x=-1,1,2 do
  1114.  
  1115. local v=qi{'Part',m,sc=v3(0.2,0.2,0.2)} qi{'CylinderMesh',v}
  1116.  
  1117. local vw=qi{'Weld',v,P0=me.Parent,P1=v,C0=cn(x*0.25,0,0)}
  1118.  
  1119. RightGun[x]=vw
  1120.  
  1121. local v2=qi{'Part',m,sc=v3(0.2,0.2,0.2),bn='Really black'} qi{'CylinderMesh',v2,sca=v3(0.3,0.02,0.3)*5}
  1122.  
  1123. local v2w=qi{'Weld',v,P0=v,P1=v2,C0=cn(0,0,0)}
  1124.  
  1125. RightGun2[x]=v2w
  1126.  
  1127. end
  1128.  
  1129. for i=0,1,0.1 do me.Scale=v3(1.1,1,1.1+(0.7*i)) for x=-1,1,2 do RightGun2[x].C0=cn(0,-0.5*i,0) RightGun[x].C0=cn(x*0.25,-0.5*i,-0.5*i) RightGun[x].Part1.Mesh.Scale=v3(0.5,1*i,0.5)*5 end wait() end
  1130.  
  1131. ra.C1=cn(0,0,0)
  1132.  
  1133. RightArmAnim='Gun'
  1134.  
  1135. repeat
  1136.  
  1137. local armpos=Torso.CFrame*cn(1.5,0.5,0)
  1138.  
  1139. local cc=cn(armpos.p,mouse.Hit.p)*ca(90,0,0)*cn(0,-0.5,0)
  1140.  
  1141. cc=Torso.CFrame:toObjectSpace(cc)
  1142.  
  1143. ra.C0=cc
  1144.  
  1145. wait()
  1146.  
  1147. until not Key.e and RightArmAnim=='Gun'
  1148.  
  1149. RightArmAnim='GunReady'
  1150.  
  1151. rAni(ra)
  1152.  
  1153. qAni(ra,1.5,0.5,0,0,0,0,0,0.1,1)
  1154.  
  1155. qAni(ra,0 ,0.5,0,0,0,0,1,0.1,1)
  1156.  
  1157. qAni(RShoulderbw,0,-0.8-0.5,0,0,0,0,0,0.1,1)
  1158.  
  1159. for i=1,0,-0.1 do me.Scale=v3(1.1,1,1.1+(0.7*i)) for x=-1,1,2 do RightGun2[x].C0=cn(0,-0.5*i,0) RightGun[x].C0=cn(x*0.25,-0.5*i,-0.5*i) RightGun[x].Part1.Mesh.Scale=v3(0.5,1*i,0.5)*5 end wait() end
  1160.  
  1161. for x=-1,1,2 do RightGun[x].Part1:Remove() RightGun2[x].Part1:Remove() end
  1162.  
  1163. wait()
  1164.  
  1165. RArm()
  1166.  
  1167. RightArmAnim='None'
  1168.  
  1169. end
  1170.  
  1171.  
  1172.  
  1173. FireLaser=function(targetpos,spawn)
  1174.  
  1175. q(function()
  1176.  
  1177. local cff=cn(spawn.Position,targetpos)*cn(0,0,4)
  1178.  
  1179. local arc=qi{'Part',m,n='asd',sc=v3(0.3,0.3,1),cf=cff,an=true,bn='New Yeller',tra=0.1} qi{'SpecialMesh',arc,mtyp='Sphere',sca=v3(1,1,2)}
  1180.  
  1181. local Hit,Mag,Pos=RangeAnim(arc,{arc},30,4,4,function(ty2,obj,hit,pos) end,m,false,false)
  1182.  
  1183. arc.CFrame=arc.CFrame*cn(0,0,-Mag)
  1184.  
  1185. MeshEffect(arc,arc.CFrame,2,2,2,0.2,'New Yeller','Sphere',cn(0,0,0))
  1186.  
  1187. wait()
  1188.  
  1189. arc.Transparency=1
  1190.  
  1191. Debris:AddItem(arc,1)
  1192.  
  1193. if Hit and (Hit.Parent:findFirstChild'Humanoid' or Hit.Parent.Parent:findFirstChild'Humanoid') then
  1194.  
  1195. if Hit.Parent.Name==Pn or Hit.Parent.Parent.Name==Pn then return end
  1196.  
  1197. Dmg(Hit.Parent:findFirstChild'Humanoid' or Hit.Parent.Parent.Humanoid,11)
  1198.  
  1199. end -- ifhit
  1200.  
  1201. --
  1202.  
  1203. end)
  1204.  
  1205. end
  1206.  
  1207.  
  1208.  
  1209. Huma.PlatformStand=false
  1210.  
  1211. Jp={} Jp.Wings={} Jp.w={} Jp.t={} Jp.b={}
  1212.  
  1213. Jetpack=function()
  1214.  
  1215. if LeftAnim=='JetpackAnim' then return end
  1216.  
  1217. if LeftAnim=='None' then
  1218.  
  1219. LeftAnim,RightAnim='JetpackAnim','JetpackAnim'
  1220.  
  1221. for x=-1,1,2 do
  1222.  
  1223. local vv=qi{'Part',m,sc=v3(0,0,0)} qi{'BlockMesh',vv}
  1224.  
  1225. local vw=qi{'Weld',vv,P0=Pack,P1=vv,C0=cn(x*1,0,0)}
  1226.  
  1227. Jp.Wings[x]=vw
  1228.  
  1229. qAni(vw,x*2.7,0,0.6,0,-x*20,0,0,0.1)
  1230.  
  1231. end
  1232.  
  1233. for i=0.1,1,0.1 do for x=-1,1,2 do Jp.Wings[x].Part1.Mesh.Scale=v3(4*i,1.5,0.5)*5 end wait() end
  1234.  
  1235. for x=-1,1,2 do
  1236.  
  1237. local vv=qi{'Part',m,sc=v3(0,0,0)} qi{'SpecialMesh',vv,mid=as.ring,sca=v3(3,3,3*3.5)}
  1238.  
  1239. local vw=qi{'Weld',vv,P0=Jp.Wings[x].Part1,P1=vv,C0=cn(x*2,0,0)*ca(90,0,0),C1=ca(0,-x*20,0)}
  1240.  
  1241. Jp.w[x]=vw
  1242.  
  1243. qAni(vw,x*3.5,0,0.3,Rots*2,0,0,0,0.1)
  1244.  
  1245. local vv=qi{'Part',m,sc=v3(1,1,1)} qi{'SpecialMesh',vv,mtyp='Sphere',sca=v3(3,3,3)}
  1246.  
  1247. local vw=qi{'Weld',vv,P0=Jp.w[x].Part1,P1=vv,C0=cn(0,0,0)*ca(-90,0,0)}
  1248.  
  1249. Jp.t[x]=vw
  1250.  
  1251. local vv=qi{'Part',m,sc=v3(1,1,1),bn='Really black'} qi{'SpecialMesh',vv,mtyp='Sphere',sca=v3(3,3,3)}
  1252.  
  1253. local vw=qi{'Weld',vv,P0=Jp.w[x].Part1,P1=vv,C0=cn(0,0,0)*ca(-90,0,0)}
  1254.  
  1255. Jp.b[x]=vw
  1256.  
  1257. end
  1258.  
  1259. for i=0.1,1,0.1 do for x=-1,1,2 do Jp.b[x].Part1.Mesh.Scale=v3(3*i,0.2,3*i) Jp.t[x].Part1.Mesh.Scale=v3(3*i,0.2,3*i) Jp.w[x].Part1.Mesh.Scale=v3(3*i,3*i,3*3.5) end wait() end
  1260.  
  1261. for i=0.25,1,0.25 do for x=-1,1,2 do Jp.b[x].C0=cn(0,0,i*1)*ca(-90,0,0) Jp.t[x].C0=cn(0,0,-2*i)*ca(-90,0,0) Jp.t[x].Part1.Mesh.Scale=v3(3,6*i,3) Jp.w[x].Part1.Mesh.Scale=v3(3,3,(i*3+3)*3.5) end wait() end
  1262.  
  1263. for x=-1,1,2 do qi{'Fire',Jp.b[x].Part1,Heat=-25,Size=6} qi{'Smoke',Jp.b[x].Part1,RiseVelocity=-25,Size=5,Opacity=0.2,Color=bn'Black'.Color} end
  1264.  
  1265. BP.position=Torso.Position
  1266.  
  1267. BG.cframe=cn(Torso.Position,Torso.CFrame*cn(0,0,-5).p)
  1268.  
  1269. Huma.PlatformStand=true
  1270.  
  1271. LeftAnim,RightAnim='Jetpack','Jetpack'
  1272.  
  1273. elseif LeftAnim=='Jetpack' then
  1274.  
  1275. LeftAnim,RightAnim='JetpackAnim','JetpackAnim'
  1276.  
  1277. Huma.PlatformStand=false
  1278.  
  1279. for x=-1,1,2 do Jp.b[x].Part1:Remove() end
  1280.  
  1281. for i=1,0,-0.25 do for x=-1,1,2 do Jp.t[x].C0=cn(0,0,-2*i)*ca(-90,0,0) Jp.t[x].Part1.Mesh.Scale=v3(3,6*i,3) Jp.w[x].Part1.Mesh.Scale=v3(3,3,(i*3+3)*3.5) end wait() end
  1282.  
  1283. for x=-1,1,2 do qAni(Jp.w[x],x*2,0,0,0,0,0,0,0.1) end
  1284.  
  1285. for i=1,0,-0.1 do for x=-1,1,2 do Jp.t[x].Part1.Mesh.Scale=v3(3*i,0.2,3*i) Jp.w[x].Part1.Mesh.Scale=v3(3*i,3*i,3*3.5) end wait() end
  1286.  
  1287. for x=-1,1,2 do qAni(Jp.Wings[x],x*1,0,0,0,0,0,0,0.1) end
  1288.  
  1289. for i=1,0,-0.1 do for x=-1,1,2 do Jp.Wings[x].Part1.Mesh.Scale=v3(4*i,1.5,0.5)*5 end wait() end
  1290.  
  1291. for x=-1,1,2 do
  1292.  
  1293. Jp.Wings[x].Part1:Remove()
  1294.  
  1295. end
  1296.  
  1297. LeftAnim,RightAnim='None','None'
  1298.  
  1299. end
  1300.  
  1301. end
  1302.  
  1303.  
  1304.  
  1305. Explode=function(object,sc,dmg)
  1306.  
  1307. if object and object.Parent then
  1308.  
  1309. qi{'Sound',object,SoundId=as.boom,Pitch=2,Volume=0.5}:play()
  1310.  
  1311. for x=-1,1,2 do
  1312.  
  1313. MeshEffect(object,object.CFrame*ca(0,0,45*x),sc*0.7,sc*1.5,sc*0.7,0.2,x==-1 and 'Bright red' or 'Bright yellow','Sphere')
  1314.  
  1315. end
  1316.  
  1317. GetRegion(object.Position,sc,function(Hum,HT) Dmg(Hum,dmg or 25)
  1318.  
  1319. Hum.PlatformStand=true
  1320.  
  1321. HT.RotVelocity=v3(0,100,0)
  1322.  
  1323. AddBV(45,cn(object.Position,HT.Position+v3(0,8,0)),HT,0.2) wait(1.5) Hum.PlatformStand=false
  1324.  
  1325. end,function(hit) if breaker(hit) then hit.Velocity=object.CFrame.lookVector*65 end end)
  1326.  
  1327. end
  1328.  
  1329. end --
  1330.  
  1331.  
  1332.  
  1333. GetX = function(CFF)
  1334.  
  1335. local a1,a2,a3,a4,a5,a6,a7,a8,a9=CFF:components()
  1336.  
  1337. return math.floor(math.deg(math.asin(a9)))
  1338.  
  1339. end
  1340.  
  1341.  
  1342.  
  1343. ButtonDown=function()
  1344.  
  1345. if BackAnim=='Grenade' and GrenadeOff then
  1346.  
  1347. local muffin=qi{'Part',m2,Friction=2,Elasticity=0,Debris=8,sc=v3(1.5,2,1.5)} local muffinm=qi{'SpecialMesh',muffin,sca=v3(2,2,2)*0.9,mid=as.muffin,tid=as.muffint}
  1348.  
  1349. muffin.CFrame=cn(GrenadeOff.CFrame*cn(0,1,0).p,GrenadeOff.CFrame*cn(0,10,0).p)
  1350.  
  1351. muffin.Velocity=muffin.CFrame.lookVector*180
  1352.  
  1353. --m2f:play()
  1354.  
  1355. local bewm
  1356.  
  1357. q(function() wait(3) if muffin.Parent then Explode(muffin,15,18) end end)
  1358.  
  1359. muffin.Touched:connect(function(hit)
  1360.  
  1361. if hit.Anchored then return end
  1362.  
  1363. if bewm then return end bewm=true
  1364.  
  1365. qi{'Weld',muffin,P0=hit,P1=muffin,C0=hit.CFrame:toObjectSpace(muffin.CFrame),Debris=3}
  1366.  
  1367. end)
  1368.  
  1369. end
  1370.  
  1371. ---
  1372.  
  1373.  
  1374.  
  1375.  
  1376.  
  1377. ---
  1378.  
  1379. if RightArmAnim=='Gun' then
  1380.  
  1381. RightArmAnim='Fire'
  1382.  
  1383. repeat
  1384.  
  1385. RightGunAlter = not RightGunAlter
  1386.  
  1387. local gunturn=RightGunAlter and RightGun2[-1].Part1 or RightGun2[1].Part1
  1388.  
  1389. MeshEffect(gunturn,gunturn.CFrame*cn(0,-0.1,0),1,2,1,0.15,'New Yeller','Sphere',cn(0,-0.1,0)*ca(0,0,0))
  1390.  
  1391. m3f:play()
  1392.  
  1393. FireLaser(mouse.Hit.p,gunturn)
  1394.  
  1395. wait(0.25)
  1396.  
  1397. until not Button
  1398.  
  1399. RightArmAnim='Gun'
  1400.  
  1401.  
  1402.  
  1403.  
  1404.  
  1405. end
  1406.  
  1407. end
  1408.  
  1409. ButtonUp=function()
  1410.  
  1411. end
  1412.  
  1413.  
  1414.  
  1415. mouseMove=function()
  1416.  
  1417. if LeftAnim=='Jetpack' then
  1418.  
  1419. BG.cframe=cn(Torso.Position,mouse.hit.p)*ca(Key.w and -80 or 0,0,0)
  1420.  
  1421. end
  1422.  
  1423. end
  1424.  
  1425.  
  1426.  
  1427. Rots=0
  1428.  
  1429. Key={}
  1430.  
  1431. BackAnim='None'
  1432.  
  1433. RightArmAnim='None'
  1434.  
  1435. LeftArmAnim='None'
  1436.  
  1437. RightAnim='None'
  1438.  
  1439. LeftAnim='None'
  1440.  
  1441. --bin.Selected:connect(function(mouse2)
  1442.  
  1443. mouse2=Player:GetMouse()
  1444.  
  1445. selected=true
  1446.  
  1447. mouse=mouse2
  1448.  
  1449. mouse.KeyDown:connect(function(k)
  1450.  
  1451. Key[k]=true
  1452.  
  1453. if k=='f' and BackAnim=='None' and not Button then
  1454.  
  1455. BackAnim='TurretReady'
  1456.  
  1457. BackTurret()
  1458.  
  1459. BackAnim='None'
  1460.  
  1461. elseif k=='f' and BackAnim=='None' and Button then
  1462.  
  1463. BackAnim='Booster'
  1464.  
  1465. BackBooster()
  1466.  
  1467. BackAnim='None'
  1468.  
  1469. elseif k=='e' and RightArmAnim=='None' then
  1470.  
  1471. RightArmAnim='GunReady'
  1472.  
  1473. RightArmGun()
  1474.  
  1475. elseif k=='v' then
  1476.  
  1477. Jetpack()
  1478.  
  1479. elseif k=='w' and LeftAnim=='Jetpack' then
  1480.  
  1481. local tp=Torso.Position
  1482.  
  1483. BG.cframe=cn(tp,mouse.hit.p)*ca(-80,0,0)
  1484.  
  1485. repeat
  1486.  
  1487. local tp=Torso.Position
  1488.  
  1489. local mp=mouse.hit.p+v3(0,2,0)
  1490.  
  1491. local speed=(tp-mp).magnitude/30+5 speed=speed<30 and speed or 30
  1492.  
  1493. speed=mouse.Target and speed or 12
  1494.  
  1495. BP.position=cn(tp,mp)*cn(0,0,-speed).p
  1496.  
  1497. wait()
  1498.  
  1499. until not Key.w or LeftAnim~='Jetpack'
  1500.  
  1501. BG.cframe=cn(tp,mouse.hit.p)*ca(0,0,0)
  1502.  
  1503. elseif k=='y' then
  1504.  
  1505. end
  1506.  
  1507. end)
  1508.  
  1509. mouse.KeyUp:connect(function(k)
  1510.  
  1511. Key[k]=false
  1512.  
  1513. if k=='b' then
  1514.  
  1515.  
  1516.  
  1517. end
  1518.  
  1519. end)
  1520.  
  1521. mouse.Button1Down:connect(function()
  1522.  
  1523. Button=true
  1524.  
  1525. ButtonDown()
  1526.  
  1527. end)
  1528.  
  1529. mouse.Button1Up:connect(function()
  1530.  
  1531. Button=false
  1532.  
  1533. ButtonUp()
  1534.  
  1535. end)
  1536.  
  1537.  
  1538.  
  1539. --end)
  1540.  
  1541.  
  1542.  
  1543. --bin.Deselected:connect(function()
  1544.  
  1545. --selected=false
  1546.  
  1547. --end)
  1548.  
  1549.  
  1550.  
  1551. u=0
  1552.  
  1553. while m.Parent do
  1554.  
  1555. u=u+1
  1556.  
  1557. for i,v in pairs{{LShoulderx,LShoulderx2,LShoulderx3,LShoulderxw},{RShoulderx,RShoulderx2,RShoulderx3,RShoulderxw}} do
  1558.  
  1559. local shouldermag=(v[1].Position-v[2].Position).magnitude
  1560.  
  1561. v[3].Mesh.Scale=v3(1,shouldermag,1)
  1562.  
  1563. local cf=cn(v[1].Position,v[2].Position)*cn(0,0,-shouldermag/2)*ca(90,0,0)
  1564.  
  1565. cf=v[2].CFrame:toObjectSpace(cf)
  1566.  
  1567. v[4].C0=cf
  1568.  
  1569. end
  1570.  
  1571. ---if mouse then Rots = -math.deg((Head.Position - mouse.hit.p).unit.y) end
  1572.  
  1573. if Jp.w and LeftAnim=='Jetpack' then for x=-1,1,2 do Jp.w[x].C0=cn(x*3.5,0,0.3)*ca(GetX(Torso.CFrame)+20,0,0) end end
  1574.  
  1575. if LeftAnim=='Jetpack' then
  1576.  
  1577. BG.maxTorque=v3(0,0,0)/0
  1578.  
  1579. BP.maxForce=v3(0,0,0)/0
  1580.  
  1581. else
  1582.  
  1583. BG.maxTorque=v3(0,0,0)
  1584.  
  1585. BP.maxForce=v3(0,0,0)
  1586.  
  1587. end
  1588.  
  1589.  
  1590.  
  1591. wait()
  1592.  
  1593. end
  1594.  
  1595.  
  1596.  
  1597. --]],theguy)
  1598.  
  1599. ---c/while true do wait() for i,v in pairs(workspace["NOT TELLING LOL"]:children()) do v.BrickColor=BrickColor.Random() end end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement