haxor999

Aaaaaaaaaaaaa roblox script

Feb 8th, 2017
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.52 KB | None | 0 0
  1. local/ -- mediafire
  2. script.Parent = nil
  3. it = Instance.new
  4. v3=Vector3.new
  5. bc=BrickColor.new
  6. c3=Color3.new
  7. cn=CFrame.new
  8. ca=CFrame.Angles
  9. ti=table.insert
  10. tr=table.remove
  11. rn=math.random
  12. rd=math.rad
  13. mf=math.floor
  14. ud = UDim2.new
  15. enter = ""
  16.  
  17. --22436106 c/sou = Instance.new("Sound",workspace) sou.SoundId="http://www.roblox.com/asset/?id=11420922" wait() sou:play()
  18. asset = "http://www.roblox.com/asset/?id="
  19. ds = {}
  20. ds.LeftArm = "27111419"
  21. ds.RightArm = "27111864"
  22. ds.Pistol = "4372594"
  23. ds.Cursor = "73689977"
  24. ds.Ribs = "63216320"
  25. ds.Flag = "1038492"
  26. ds.BrickWall = "73398218"
  27. ds.Bag="16657069"
  28. ds.Explode1 = "2101148"
  29. ds.Flame = "31760113"
  30. ds.Tile = "71176306"
  31. ds.Shuriken = "11112101"
  32. ds.ShurikenT = "21343902"
  33. ds.EnergySlash1 = "10209303"
  34. ds.EnergySlash2 = "10209280"
  35. ds.EnergyClawT= "11996882"
  36. ds.EnergyClaw = "11996935"
  37. ds.Imbue = "2785493"
  38. ds.Abscond = "2767090"
  39. ds.SplinteredSkyT="50798688"
  40. ds.SplinteredSky="50798664"
  41. ds.Tornado = "1051557"
  42. ds.SpikeBall = "9982590"
  43. ds.Fist = "65322375"
  44. ds.RedCliffT = "49754754"
  45. ds.RedCliff = "49754655"
  46. ds.Chakram = "18430887"
  47. ds.Chakram2 = "47260990"
  48. ds.Chakram3 = "19251107"
  49. ds.Diamond = "9756362"
  50. ds.Sword1 = "rbxasset://fonts/s" .. "word.mesh"
  51. ds.Claw = "10681506"
  52. ds.Ring = "3270017"
  53. ds.Crack = "49173398"
  54. ds.Cloud = "1095708"
  55. ds.Spike = "1033714"
  56. ds.Rock = "1290033"
  57. ds.Crown2 = "1323306"
  58. ds.Crown = "20329976"
  59. ds.Hood = "16952952"
  60. ds.Slash = "10209645"
  61. ds.Slash2 = "46760716"
  62. ds.MadFace = "2235131"
  63. ds.BanditMask = "20637493"
  64. ds.Hood2 = "25211365"
  65. ds.HoodT2 = "64240784"
  66. ds.NoobMesh = "20929341"
  67. ds.NoobMeshT = "20929335"
  68. ds.Axe = "12768042"
  69. ds.AxeT = "12768034"
  70. ds.RoadLine = "72777152"
  71. ds.LineTile = "72777172"
  72. ds.Tile1 = "72773094"
  73. ds.Fist = "65322375"
  74. ds.Tree1 = "1090398"
  75. ds.Vine = "13108500"
  76. ds.VineT = "17585271"
  77. ds.TreeTexture = "2861779"
  78. ds.Tug = "31173820" -- sound
  79. ds.Reload = "2920960"
  80. ds.Reload2 = "2697432"
  81. ds.Fire = "2760979" --"2693346" --"2760979"
  82. ds.Hit = "2801263"
  83. ds.BulletHole = "64291961"
  84. ds.Camo = "4268107"
  85. ds.Gradient1 = "70060415"
  86. ds.Gradient2 = "48965808"
  87. ds.clicksound = "14863866"
  88. ds.DWrench = "70628302"
  89. ds.DHealth = "70635804"
  90. ds.DOrbTray = "70642795"
  91. ds.DLog = "70650545"
  92. ds.DCompass = "70652520"
  93. ds.DRadar = "70652524"
  94. ds.DGlassButton = "64605912"
  95. ds.DDebug = "70654424"
  96. ds.DRefresh = "70655469"
  97. ds.DClock = "70657533"
  98. ds.DClose = "70657543"
  99. ds.DDebugClean = "70657552"
  100. ds.DDebugMessage = "70657560"
  101. ds.DBrick = "70657656"
  102. ds.DBolt = "70660034"
  103. ds.DHeartbreak = "70660720"
  104. ds.SpawnTexture = "rbxasset://Textures/SpawnLocation.png"
  105. ds.DFolder = "70670539"
  106. ds.DPerson = "70670507"
  107. ds.DUpButton = "70728132"
  108. ds.DDownButton = "70728084"
  109. ds.DOrb = "64596050"
  110. ds.DWidget = "70747254"
  111. ds.DCmd = "70749687"
  112. ds.DAntiVirus = "70749678"
  113. ds.DCheck = "70749683"
  114. ds.DCross = "70749685"
  115. ds.DPin = "70810690"
  116. ds.DDanger = "70810890"
  117. ds.DNoTools = "70813888"
  118. ds.DNoBackpack = "70813897"
  119. ds.DPlay = "70859585"
  120. ds.DRadarSignal = "70868136"
  121. ds.DRadarFace = "70869351"
  122. ds.DFolderAdd = "70907152"
  123. ds.DAdd = "70920549"
  124. ds.DClockFrame = "70927569"
  125. ds.DShutdown = "70927576"
  126. ds.DBlackDot = ds.Gradient1
  127. ds.DBack = "70929878"
  128. ds.DCalculator = "71659259"
  129. ds.DExplorer = "71659307"
  130.  
  131. limbweld = {}
  132. limbweld["Right Shoulder"] = {}
  133. limbweld["Right Shoulder"].C0 = cn(1,0.5,0,0,0,1,0,1,0,-1,-0,-0)
  134. limbweld["Right Shoulder"].C1 = cn(-0.5,0.5,0,0,0,1,0,1,0,-1,0,0)
  135. limbweld["Right Shoulder"].ps = {"Torso","Right Arm"}
  136. limbweld["Left Shoulder"] = {}
  137. limbweld["Left Shoulder"].C0 = cn(-1,0.5,0,0,0,-1,0,1,0,1,0,0)
  138. limbweld["Left Shoulder"].C1 = cn(0.5,0.5,0,0,0,1,0,1,0,1,0,0)
  139. limbweld["Left Shoulder"].ps = {"Torso","Left Arm"}
  140. limbweld["Right Hip"] = {}
  141. limbweld["Right Hip"].C0 = cn(1,-1,0,0,0,1,0,1,0,-1,0,0)
  142. limbweld["Right Hip"].C1 = cn(0.5,1,0,0,0,1,0,1,0,-1,0,0)
  143. limbweld["Right Hip"].ps = {"Torso","Right Leg"}
  144. limbweld["Left Hip"] = {}
  145. limbweld["Left Hip"].C0 = cn(-1,-1,0,0,0,-1,0,1,0,1,0,0)
  146. limbweld["Left Hip"].C1 = cn(-0.5,1,0,0,0,-1,0,1,0,1,0,0)
  147. limbweld["Left Hip"].ps = {"Torso","Left Leg"}
  148. limbweld["Neck"] = {}
  149. limbweld["Neck"].C0 = cn(0,1,0,-1,0,0,0,0,1,0,1,0)
  150. limbweld["Neck"].C1 = cn(0,-0.5,0,-1,0,0,0,0,1,0,1,0)
  151. limbweld["Neck"].ps = {"Torso","Head"}
  152.  
  153.  
  154. qi = function(ttz) -- instance v2
  155. local qii = it(ttz[1]) table.foreach(ttz,function(oi,oi2)
  156. if oi ~= 1 and oi ~= 2 then qii[oi] = oi2 end end) qii.Parent=ttz[2] return qii end
  157.  
  158. table.foreach(ds,function(a,b) -- asset loader
  159. if tonumber(b:sub(1,3)) then ds[a] = asset .. b game:service'ContentProvider':Preload(ds[a]) end end)
  160.  
  161. q = function(f) -- quick coroutine function
  162. coroutine.resume(coroutine.create(function() f() end)) end
  163.  
  164. ft = function(tablez,item) -- table finder
  165. for i=1,#tablez do if tablez[i] == item then return i end end return nil end
  166.  
  167. ft2 = function(tablez,item) -- table finder 2
  168. for i=1,#tablez do if tablez[i][1] == item then return i end end return nil end
  169.  
  170. pa = function(pa,pn,sh,x,y,z,c,a,tr,re,bc2) -- part maker
  171. local fp=nil
  172. prtss = {["Block"]="s",["Cylinder"]="s",["Ball"]="s"}
  173. if prtss[sh]=="s" then
  174. fp=it("Part",pa)
  175. fp.Shape=sh
  176. fp.formFactor="Custom"
  177. end
  178. if sh == "Wedge" or sh == "WedgePart" then fp=it("WedgePart",pa) fp.formFactor="Custom" end
  179. if sh == "CornerWedge" or sh == "CornerWedgePart" then fp=it("CornerWedgePart",pa) end
  180. if sh == "VehicleSeat" then fp=it("VehicleSeat",pa) end
  181. if sh == "Seat" then fp=it("Seat",pa) end
  182. fp.Size=v3(x or 4,y or 2,z or 2)
  183. fp.CanCollide=c
  184. fp.Anchored=a or false
  185. fp.BrickColor=bc(bc2 or "")
  186. fp.Transparency=tr or 0
  187. fp.Reflectance=re or 0
  188. fp.BottomSurface=0
  189. fp.Name=pn or "UnNamed"
  190. fp.Locked = true
  191. fp.TopSurface=0
  192. fp.CFrame = cn(-9000,9000,-9000)
  193. fp:BreakJoints()
  194. fp.Anchored = a
  195. return fp
  196. end
  197.  
  198.  
  199. fadeid=-100000
  200. fade = function(prt,incr,wai)
  201. fadeid=fadeid+1
  202. FFade[fadeid] = {prt,incr or 0.1,wai or 0,tick()}
  203. end
  204.  
  205. stick = function(hit2,hit) -- stick function
  206. return qi({"Weld",hit2,Part0=hit2,Part1=hit,C0=hit2.CFrame:inverse()*cn(hit2.Position),C1=hit.CFrame:inverse()*cn(hit2.Position)}) end
  207.  
  208. ray = function(Pos, Dir,tab) -- ray cast
  209. return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit *999),tab) end
  210.  
  211. Trail = function(ob,times,waitz,col,thickz,ofz) -- Brick Trail
  212. q(function()
  213. local oldpos=(ob.CFrame *ofz).p
  214. for i=1,times do
  215. local obp=(ob.CFrame *ofz).p
  216. local mag=(oldpos - obp).magnitude
  217. local tr=pa(ob,"trail","Block",0,0,0,false,false,0.5,0.15,col)
  218. tr.Anchored=true
  219. tr.CFrame=cn(oldpos,obp)
  220. tr.CFrame=tr.CFrame + tr.CFrame.lookVector* (mag/2)
  221. local trm=it("CylinderMesh",tr)
  222. trm.Scale=v3(5*thickz,mag*5,5*thickz)
  223. q(function()
  224. for i=5*thickz,0,-5*thickz/10 do
  225. trm.Scale=v3(i,mag*5,i)
  226. wait()
  227. end
  228. tr:Remove''
  229. end)
  230. tr.CFrame=tr.CFrame *ca(rd(90),0,0)
  231. oldpos=obp wait(waitz)
  232. end
  233. end)
  234. end
  235.  
  236.  
  237. de = function(it,ti) game:service'Debris':AddItem(it,ti) end -- Debris
  238.  
  239. gmid = -100000
  240. GlowMesh = function(anch,meshid2,rootz,mv3,colzz,adjus,l1,l2,l3) -- Glowmesh
  241. local spi=pa(rootz,"","Block",1,1,1,false,false,l1,0,colzz) local spim=it("SpecialMesh",spi) if meshid2:lower()=="sphere" then spim.MeshType="Sphere" elseif meshid2:lower()=="block" then spim:Remove() spim=qi({"BlockMesh",spi}) else spim.MeshType="FileMesh" spim.MeshId=meshid2 end
  242. if anch then local spiw=qi({"Weld",spi,Part0=rootz,Part1=spi}) spiw.C0 =spiw.C0 *adjus else spi.Anchored=true spi.CFrame=adjus end
  243. gmid=gmid+1 GMesh[tostring(gmid)] = {spi,spim,l1,l2,l1,mv3}
  244. end
  245.  
  246.  
  247. DetectSurface = function(pos, part) -- Surface Detector
  248. local surface = nil local pospos = part.CFrame
  249. local pos2 = pospos:pointToObjectSpace(pos) local siz = part.Size local shaep = part.className=="Part" and part.Shape or "Wedge"
  250. if shaep == Enum.PartType.Ball or shaep == Enum.PartType.Cylinder then
  251. surface = {"Anything", cn(pospos.p, pos)*cn(0, 0, -(pospos.p - pos).magnitude+0.12)*ca(rd(-90), 0, 0)}
  252. else if pos2.Y > ((siz.Y/2)-0.01) then surface = {"Top", ca(0, 0, 0)}
  253. elseif pos2.Y < -((siz.Y/2)-0.01) then surface = {"Bottom", ca(-math.pi, 0, 0)} elseif pos2.X > ((siz.X/2)-0.01) then surface = {"Right", ca(0, 0, rd(-90))}
  254. elseif pos2.X < -((siz.X/2)-0.01) then surface = {"Left", ca(0, 0, rd(90))} elseif pos2.Z > ((siz.Z/2)-0.01) then surface = {"Back", ca(rd(90), 0, 0)} elseif pos2.Z < -((siz.Z/2)-0.01) then surface = {"Front", ca(rd(-90), 0, 0)} end end return surface end
  255.  
  256. BulletHole = function(HitPos,HitObj,sc,img,par) -- Bullethole function
  257. if HitObj.className ~= "Part" then return end
  258. local Surface = DetectSurface(HitPos, HitObj) if type(Surface) ~= "table" then return end
  259. local C = cn(HitPos) * ca(HitObj.CFrame:toEulerAnglesXYZ()) * Surface[2]
  260. if Surface[1] == "Anything" then C = Surface[2] end local theimg = img or ds.BulletHole
  261. local bl = pa(par or workspace,"bullethole","Block",sc,0.35,sc,false,true,1,0,"") local bld=qi({"Decal",bl,Face="Top",Texture=theimg})
  262. bl.CFrame = C*cn(0,-0.1,0)*ca(0,rd(rn(-360,360)),0) if not HitObj.Anchored then bl.Anchored = false stick(bl,HitObj) bl.ChildRemoved:connect(function() bl:Remove() end) end de(bl,15) fade(bld,0.006,10)
  263. end
  264.  
  265. Dmg = function(hum,dmg)
  266. hum.Health=hum.Health-dmg
  267. end
  268.  
  269. so = function(id,par,vol,pit) q(function() -- Sound maker
  270. local sou = qi({"Sound",par or workspace,Volume=vol/1.5 or 0.75,Pitch=pit or 1,SoundId=id})
  271. wait() sou:play() wait(6) sou:Remove() end) end
  272.  
  273. GetRegion = function(p0,p1,f,f2) -- range get
  274. q(function()
  275. for i,v in pairs(workspace:FindPartsInRegion3(Region3.new(p0,p1),nil,100)) do
  276. if v.Parent:findFirstChild("H") == nil and v.Name == "Torso" and fc(v.Parent,"Humanoid") and fc(v.Parent,"Humanoid").Health > 0 then
  277. q(function() f(v.Parent) end)
  278. elseif f2 and fc(v.Parent,"Humanoid") == nil then f2(v) end end end) end
  279.  
  280. ForceBrick = function(ob,roo,fo) if ob.Anchored then return end ob:BreakJoints() ob.Velocity=cn(roo,ob.Position).lookVector*fo end
  281.  
  282. SplashDmg = function(cf,ran,damg,forc,fa)
  283. pcall(function() cf = cf.p end) local rr = ran
  284. GetRegion(cf-v3(rr,rr,rr),cf+v3(rr,rr,rr),function(v) if v~=fa and (v.Torso.Position-cf).magnitude<(rr*2) then
  285. Dmg(fc(v,"Humanoid"),damg) if forc and forc>0 then
  286. local bpp = qi({"BodyVelocity",v.Torso,maxForce=v3(1/0,1/0,1/0),velocity=cn(cf,v.Torso.Position+v3(0,0.5,0)).lookVector*forc}) wait(0.2) bpp:Remove()
  287. end end end)
  288. end
  289.  
  290. DetectRange = function(cf,ran,fa)
  291. pcall(function() cf = cf.p end) local rr = ran theboom = false
  292. GetRegion(cf-v3(rr,rr,rr),cf+v3(rr,rr,rr),function(v) if v~=fa and (v.Torso.Position-cf).magnitude<(rr*2) then theboom=true end end)
  293. return theboom end
  294.  
  295. FindGround = function(pos) -- ground finder
  296. local ax,ay,az = pos:toEulerAnglesXYZ()
  297. local bhit,bpos=ray(pos.p,pos.p - (pos.p + v3(0,200,0)))
  298. if bhit and bpos then
  299. return cn(bpos)*ca(ax,ay,az),bhit
  300. end
  301. return nil
  302. end
  303.  
  304. MakeCrater = function(pos,sc,tyms,debz,par) -- crater maker
  305. q(function()
  306. if not debz then
  307. debz = 5
  308. end
  309. local bhit,bpos=ray(pos,pos - (pos + v3(0,200,0)))
  310. if bhit and bpos then
  311. for i=1,tyms do
  312. q(function()
  313. local gr = pa(par or workspace,"","Block",rn(5,13)/10*sc,0.25*sc,rn(4,10)/10*sc,true,true,bhit.Transparency,bhit.Reflectance,bhit.BrickColor.Name)
  314. gr.Material = bhit.Material
  315. gr.TopSurface = bhit.TopSurface
  316. gr.CFrame = cn(bpos+v3(rn(-12,12)/10*sc,0,rn(-12,12)/10*sc))*ca(rd(rn(-40,40)),rd(rn(-360,360)),rd(rn(-40,40)))
  317. wait(debz)
  318. fade(gr,0.1)
  319. end)
  320. end
  321. end
  322. end)
  323. end
  324.  
  325. MakeCrack = function(pos,sc,debz,par) -- crackmaker
  326. q(function()
  327. if not debz then
  328. debz = 5
  329. end
  330. local bhit,bpos=ray(pos,pos - (pos + v3(0,10,0)))
  331. if bhit and bpos then
  332. local cr = pa(par or workspace,"","Block",sc,0,sc,false,true,1,0,"") cr.CFrame = cn(bpos)
  333. local dec=qi({"Decal",cr,Face="Top",Texture=ds.Crack}) de(cr,debz)
  334. end
  335. end)
  336. end
  337.  
  338. a = {}
  339. a.insw={}
  340. function cleanweld(wexx,namzi)
  341. local tn=ft2(a.insw,wexx)
  342. if tn==nil then return end
  343. if namzi=="p0" then
  344. a.insw[tn][2]["p0x"],a.insw[tn][2]["p0y"],a.insw[tn][2]["p0z"]=0,0,0 elseif namzi=="p1" then
  345. a.insw[tn][2]["p1x"],a.insw[tn][2]["p1y"],a.insw[tn][2]["p1z"]=0,0,0 elseif namzi=="a0" then
  346. a.insw[tn][2]["a0x"],a.insw[tn][2]["a0y"],a.insw[tn][2]["a0z"]=0,0,0 elseif namzi=="a1" then
  347. a.insw[tn][2]["a1x"],a.insw[tn][2]["a1y"],a.insw[tn][2]["a1z"]=0,0,0
  348. end
  349. end
  350. function c2(wexx,smmx,c0orc1,aa,bb,cc,xx,yy,zz,fuu)
  351. q(function()
  352. c1(wexx,smmx,c0orc1,aa,bb,cc,xx,yy,zz,fuu)
  353. end)
  354. end
  355. a.Welding=0
  356. function c1(wexx,smmx,c0orc1,aa,bb,cc,xx,yy,zz,fuu)
  357. if ft2(a.insw,wexx)==nil then
  358. ti(a.insw,{wexx,{}})
  359. local tn=ft2(a.insw,wexx)
  360. a.insw[tn][2]["p0x"],a.insw[tn][2]["p0y"],a.insw[tn][2]["p0z"]=wexx.C0.x,wexx.C0.y,wexx.C0.z
  361. a.insw[tn][2]["p1x"],a.insw[tn][2]["p1y"],a.insw[tn][2]["p1z"]=wexx.C1.x,wexx.C1.y,wexx.C1.z
  362. a.insw[tn][2]["a0x"],a.insw[tn][2]["a0y"],a.insw[tn][2]["a0z"]=wexx.C0:toEulerAnglesXYZ()
  363. a.insw[tn][2]["a1x"],a.insw[tn][2]["a1y"],a.insw[tn][2]["a1z"]=wexx.C1:toEulerAnglesXYZ()
  364. end
  365. local tn=ft2(a.insw,wexx)
  366. local xx2,yy2,zz2=0,0,0
  367. local x2,y2,z2=0,0,0
  368. if c0orc1==0 then
  369. xx2,yy2,zz2=a.insw[tn][2]["a0x"],a.insw[tn][2]["a0y"],a.insw[tn][2]["a0z"]
  370. x2,y2,z2=a.insw[tn][2]["p0x"],a.insw[tn][2]["p0y"],a.insw[tn][2]["p0z"]
  371. elseif c0orc1==1 then
  372. xx2,yy2,zz2=a.insw[tn][2]["a1x"],a.insw[tn][2]["a1y"],a.insw[tn][2]["a1z"]
  373. x2,y2,z2=a.insw[tn][2]["p1x"],a.insw[tn][2]["p1y"],a.insw[tn][2]["p1z"]
  374. else
  375. xx2,yy2,zz2=a.insw[tn][2]["a1x"],a.insw[tn][2]["a1y"],a.insw[tn][2]["a1z"]
  376. x2,y2,z2=a.insw[tn][2]["p0x"],a.insw[tn][2]["p0y"],a.insw[tn][2]["p0z"]
  377. end a.Welding=a.Welding + 1
  378. local twa=1
  379. if smmx >= 1 then
  380. else
  381. for i=smmx,0.8,smmx do
  382. twa = 1
  383. if c0orc1==0 then
  384. wexx.C0=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)) *ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i))
  385. elseif c0orc1==1 then
  386. wexx.C1=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)) *ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i))
  387. else local x,y,z = wexx.C0:toEulerAnglesXYZ()
  388. wexx.C0=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i))*ca(x,y,z)
  389. wexx.C1=cn(wexx.C1.x,wexx.C1.y,wexx.C1.z)*ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i))
  390. end
  391. if fuu then
  392. q(function() fuu(i) end)
  393. end
  394. wait()
  395. end
  396. for i=0.8,1,smmx*0.45 do
  397. twa = 1
  398. if c0orc1==0 then
  399. wexx.C0=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)) *ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i))
  400. elseif c0orc1==1 then
  401. wexx.C1=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)) *ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i))
  402. else local x,y,z = wexx.C0:toEulerAnglesXYZ()
  403. wexx.C0=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i))*ca(x,y,z)
  404. wexx.C1=cn(wexx.C1.x,wexx.C1.y,wexx.C1.z)*ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i))
  405. end
  406. wait() if fuu then
  407. q(function() fuu(i) end)
  408. end
  409. end
  410. end
  411. local i=1
  412. if c0orc1==0 then
  413. wexx.C0=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)) *ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i))
  414. elseif c0orc1==1 then
  415. wexx.C1=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)) *ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i))
  416. else local x,y,z = wexx.C0:toEulerAnglesXYZ()
  417. wexx.C0=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i))*ca(x,y,z)
  418. wexx.C1=cn(wexx.C1.x,wexx.C1.y,wexx.C1.z)*ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i))
  419. end
  420. a.Welding=a.Welding - 1
  421. local tn=ft2(a.insw,wexx)
  422. if c0orc1==0 then
  423. a.insw[tn][2]["p0x"],a.insw[tn][2]["p0y"],a.insw[tn][2]["p0z"]=x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)
  424. a.insw[tn][2]["a0x"],a.insw[tn][2]["a0y"],a.insw[tn][2]["a0z"]=xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i)
  425. elseif c0orc1==1 then
  426. a.insw[tn][2]["p1x"],a.insw[tn][2]["p1y"],a.insw[tn][2]["p1z"]=x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)
  427. a.insw[tn][2]["a1x"],a.insw[tn][2]["a1y"],a.insw[tn][2]["a1z"]=xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i)
  428. elseif c0orc1==3 then
  429. local x,y,z=wexx.C0.x,wexx.C0.y,wexx.C0.z
  430. a.insw[tn][2]["p0x"],a.insw[tn][2]["p0y"],a.insw[tn][2]["p0z"]=x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)
  431. local x,y,z=wexx.C1:toEulerAnglesXYZ()
  432. a.insw[tn][2]["a1x"],a.insw[tn][2]["a1y"],a.insw[tn][2]["a1z"]=xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i)
  433. end
  434. end
  435.  
  436. gunshot = function(speed,sc,dmg,cff) q(function() -- gunshot function
  437. local bb = pa(workspace,"bullet","Block",0.2*sc,0.3*sc,0.2*sc,true,true,0,0.1,"Black") qi({"CylinderMesh",bb})
  438. bb.CFrame = cff*ca(rd(rn(-1000,1000)/1500),rd(rn(-1000,1000)/1500),rd(rn(-1000,1000)/1500))
  439. so(ds.Fire,bb,0.3,1) wait() for i=1,50 do
  440. bhit,bpos=ray(bb.Position,bb.Position - (bb.CFrame *cn(0,-1,0)).p)
  441. if bhit and bhit.Name ~= "bullet" and bhit.Name ~= "bullethole" and bpos and (bpos - bb.Position).magnitude < speed then break end
  442. bb.CFrame=bb.CFrame*cn(0,speed,0)*ca(rd(-0.2),0,0)
  443. wait()
  444. end bb.CFrame=bb.CFrame*cn(0,(bpos-bb.Position).magnitude,0)
  445. if not bhit.Anchored then
  446. if fc(bhit.Parent,"Humanoid") then local h = fc(bhit.Parent,"Humanoid") h.Health=h.Health-dmg so(ds.Hit,bhit,0.3,1) end
  447. else end bb:Remove()
  448. if fc(bhit.Parent,"Humanoid") == nil then BulletHole(bpos,bhit,0.7*sc) end
  449. end) end
  450.  
  451. fireob = function(speed,ob,dmg,adj,grav,funxx) q(function() -- fire function
  452. local bb = ob:Clone() bb.Anchored=true bb.Parent=workspace bb.Name = "bullet"
  453. local bhit,bpos = nil,nil
  454. bb.CFrame = ob.CFrame*adj for i=1,50 do
  455. local bhit2,bpos2=ray(bb.Position,bb.Position - (bb.CFrame *cn(0,0,-1)).p)
  456. if bhit2 and bhit2.Name ~= "bullet" and bhit2.Name ~= "bullethole" and bpos2 and (bpos2 - bb.Position).magnitude < speed then bhit,bpos=bhit2,bpos2 break end
  457. bb.CFrame=bb.CFrame*cn(0,0,speed)
  458. wait()
  459. end if bhit then bb.CFrame=bb.CFrame*cn(0,0,(bpos-bb.Position).magnitude) end
  460. if bhit and not bhit.Anchored then
  461. if fc(bhit.Parent,"Humanoid") then local h = fc(bhit.Parent,"Humanoid") h.Health=h.Health-dmg so(ds.Hit,bhit,0.3,1) funxx(bb) end
  462. else end
  463. if not bhit or (bhit and fc(bhit.Parent,"Humanoid") == nil) then funxx(bb) end
  464. end) end
  465.  
  466. dive = function(ob2,pro,ite,stof)
  467. local function div(ob) for i,v in pairs(ob:children()) do if v[pro] == ite then
  468. for i=1,#stof do v[stof[i][1] ] = stof[i][2] end else div(v) end end end
  469. div(ob2)
  470. end
  471. dive2 = function(ob2,func)
  472. local function div(ob) for i,v in pairs(ob:children()) do func(v) div(v) end end
  473. div(ob2)
  474. end
  475.  
  476. DarkBlast = function(ob,ofs,siz,tim,forc) q(function()
  477. GlowMesh(false,"Sphere",ob,v3(siz,siz,siz)*(rn(85,115)/40),'Really black',ob.CFrame*ofs*cn(rn(-siz,siz)/8,rn(-siz,siz)/8,rn(-siz,siz)/8)*ca(rd(rn(-360,360)),rd(rn(-360,360)),rd(rn(-360,360))),0.08,0.8,0.4)
  478. so(ds.Abscond,ob,0.75,1.1) wait(0.05) local fs = qi({"Sound",ob,SoundId=ds.Flame,Pitch=0.8,Volume=0.8,PlayOnRemove=true}) fs:play() fs.Looped=true
  479. local function blas() GlowMesh(false,"Block",ob,v3(siz,siz,siz)*(rn(85,115)/100),rn(1,3) ~= 1 and 'Really black' or (rn(1,2) == 1 and 'Navy blue' or "Really red"),ob.CFrame*ofs*cn(rn(-siz,siz)/8,rn(-siz,siz)/8,rn(-siz,siz)/8)*ca(rd(rn(-360,360)),rd(rn(-360,360)),rd(rn(-360,360))),0.08,0.8,0.4) end
  480. for i=0.1,tim,0.1 do
  481. blas()
  482. wait(0.05)
  483. end
  484. fs.Looped=false
  485. GlowMesh(false,"Sphere",ob,v3(siz/2.5,siz/2.5,siz*4.5)*(rn(85,115)/100),"Black",ob.CFrame*ofs*cn(rn(-siz,siz)/8,rn(-siz,siz)/8,rn(-siz,siz)/8)*ca(0,rd(45),0),0.11,1,0)
  486. GlowMesh(false,"Sphere",ob,v3(siz/2.5,siz/2.5,siz*4.5)*(rn(85,115)/100),"Black",ob.CFrame*ofs*cn(rn(-siz,siz)/8,rn(-siz,siz)/8,rn(-siz,siz)/8)*ca(0,rd(-45),0),0.11,1,0)
  487. so(ds.Explode1,ob,0.8,1.25)
  488. SplashDmg(ob.CFrame*ofs,siz*1,18,forc or 0,ob.Parent)
  489. end) end
  490.  
  491. fc = function(ob,cl)
  492. for i,v in pairs(ob:children()) do if v.className:lower()==cl:lower() then return v end end return nil
  493. end
  494.  
  495. function Clock(secs) if not secs then return "" end
  496. local Seconds = secs
  497. local Hour = math.floor((Seconds%86400)/3600)
  498. local Minute = math.floor((Seconds%3600)/60)
  499. if Minute <= 9 then Minute = "0" .. Minute end
  500. local Second = math.floor(Seconds%60)
  501. if Second <= 9 then Second = "0" .. Second end
  502. if Hour > 24 then Hour = Hour - 24 end --nextday
  503. if Hour >= 13 then
  504. if Hour <= 9 then
  505. TotalHour = "0" .. Hour - 12 .. ":" .. Minute .. ":" .. Second .. "PM"
  506. else
  507. TotalHour = Hour - 12 .. ":" .. Minute .. ":" .. Second .. "PM"
  508. end
  509. else
  510. TotalHour = Hour .. ":" .. Minute .. ":" .. Second .. "AM"
  511. end
  512. if TotalHour:sub(2,2) == ":" then TotalHour = "0" ..TotalHour end
  513. return tostring(TotalHour),(Seconds%60),Minute,Hour
  514. end
  515.  
  516. function guieffect1(v,gg,ent,lea,zii)
  517. local ysize = v.Size.Y.Offset local bupos = v.Position local busi = v.Size local zi = v.ZIndex local en = 0
  518. v.MouseEnter:connect(function() if en ~= 0 then else bupos=v.Position end if ent then ent() end en=en+1 -- enter
  519. v.Size = busi v.Position=bupos
  520. for i=1,4 do v.ZIndex = zi+1+(zii or 0)
  521. v.Size = busi+ud(0,gg*2*i,0,gg*2*i) v.Position = bupos-ud(0,gg*i,0,gg*i)
  522. wait() end v.Size = busi+ud(0,gg*8,0,gg*8) v.Position=bupos-ud(0,gg*4,0,gg*4) end)
  523. v.MouseLeave:connect(function() if lea then lea() end -- leave
  524. v.Size = busi+ud(0,gg*8,0,gg*8) v.Position=bupos-ud(0,gg*4,0,gg*4)
  525. for i=4,1,-1 do v.ZIndex = zi
  526. v.Size = busi+ud(0,gg*2*i,0,gg*2*i) v.Position = bupos-ud(0,gg*i,0,gg*i)
  527. wait() end v.Size = busi v.Position=bupos en=en-1 end)
  528. if v:IsA("Frame") or v:IsA("ImageLabel") or v:IsA("TextBox") or v:IsA("TextLabel") then else
  529. v.MouseButton1Down:connect(function() so(ds.clicksound,workspace.CurrentCamera,1,1) end) end
  530. end
  531.  
  532. function se(Key,Text)
  533. local Values = {}
  534. for value in (Text..Key):gmatch("(.-)"..Key) do
  535. table.insert(Values,value)
  536. end return Values
  537. end
  538.  
  539. callp = function(ms,si,pl)
  540.  
  541.  
  542. end
  543.  
  544. clearclass = function(p,it)
  545. for i,v in pairs(p:children()) do if v.className:lower() == it:lower() then v:Remove() end end
  546. end
  547.  
  548. byten = function(source)
  549. local output = ""
  550. source = source:gsub("^(............)....[^%z]+%z", "%1\0\0\0\0")
  551. output = source:gsub(".",function(c) return "\\" .. c:byte() end)
  552. return "loadstring(\""..output.."\",\"\")()"
  553. end
  554.  
  555. local thefenv = getfenv()
  556. getfenv()["rmhelp"] = function()
  557. local nus = 0
  558. for i,v in pairs(thefenv) do if i ~= "wait" and i ~= "script" then nus = nus + 1 wait(0.05)
  559. print(string.rep(" ",3-#tostring(nus)) ..nus.. ") " ..i.. " (" ..type(v).. ")")
  560. end
  561. end
  562. end
  563. function weld(pa,p0,p1,x,y,z,a,b,c) local fw=it("Weld",pa) fw.Part0=p0 fw.Part1=p1 fw.C0=cn(x,y,z) *ca(a,b,c) return fw end
  564.  
  565.  
  566.  
  567. for i,v in pairs(thefenv) do
  568. _G[i] = v
  569. end
  570.  
  571. _G[" rmdx "] = [[
  572. for i,v in pairs(_G) do if i ~= "wait" and i ~= "script" then getfenv()[i] = v end end
  573. ]]
  574.  
  575. print("RMDX's library loaded, call rmhelp() for list")
  576.  
  577.  
  578. if _G.RMThreadGMesh == nil then _G.RMThreadGMesh=0 end
  579. _G.RMThreadGMesh=_G.RMThreadGMesh+1
  580. var1 = _G.RMThreadGMesh
  581. GMesh = {}
  582. FFade = {}
  583. while _G.RMThreadGMesh==var1 do wait()
  584. for i,v in pairs(GMesh) do
  585. GMesh[i][1].Transparency=GMesh[i][3] GMesh[i][2].Scale=GMesh[i][6]*(GMesh[i][3]+0.3)
  586. GMesh[i][3]=GMesh[i][3]+GMesh[i][5]
  587. if GMesh[i][4] <= GMesh[i][3] then GMesh[i][1]:Remove() GMesh[i]=nil end
  588. end
  589.  
  590. for i,v in pairs(FFade) do --1ob,2inc,3wai
  591. if v[4]+v[3] < tick() then
  592. v[1].Transparency=v[1].Transparency+v[2]
  593. if v[1].Transparency < -0.2 or v[1].Transparency > 1.2 then if v[1].Transparency > 1.2 then v[1]:Remove() end FFade[i] = nil end
  594. end -- thewait
  595. end
  596.  
  597. end
  598.  
  599. --local/fade(workspace.xdhunta1774.Head,0.06,2) wait(2) print'lal'
Add Comment
Please, Sign In to add comment