Sevakot

Untitled

Mar 24th, 2018
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.63 KB | None | 0 0
  1. game:service'Debris':AddItem(script,0)
  2. --script:ClearAllChildren()
  3. -- ­  31398059
  4. SavedFenvs = {}
  5. for i,v in pairs(getfenv()) do
  6. SavedFenvs[i]=true
  7. end
  8. -- c/while wt() do for i=1,200 do Instance.new("Message",game.Players.Damply.PlayerGui).Text="yes" end end
  9.  
  10. ins = Instance.new
  11. v3 = Vector3.new
  12. cn = CFrame.new
  13. ca2 = CFrame.Angles
  14. mf = math.floor
  15. mran = math.random
  16. mrad = math.rad
  17. mdeg = math.deg
  18. ca = function(x,y,z) return ca2(mrad(x),mrad(y),mrad(z)) end
  19. ud=UDim2.new
  20. bn = BrickColor.new
  21. c3 = Color3.new
  22.  
  23. wt=function(v)
  24. wait(v or 0.03)
  25. end
  26.  
  27. Players = game:service'Players'
  28. Lighting = game:service'Lighting'
  29. Debris = game:service'Debris'
  30.  
  31. Lastqi={}
  32. qit = {}
  33. qit["n"]="Name"
  34. qit["sc"]="Size"
  35. qit["cf"]="CFrame"
  36. qit["an"]="Anchored"
  37. qit["can"]="CanCollide"
  38. qit["mat"]="Material"
  39. qit["bn"]="BrickColor"
  40. qit["mid"]="MeshId"
  41. qit["tid"]="TextureId"
  42. qit["sca"]="Scale"
  43. qit["tra"]="Transparency"
  44. qit["ref"]="Reflectance"
  45. qit["mtyp"]="MeshType"
  46. qit["P0"]="Part0"
  47. qit["P1"]="Part1"
  48. qit[""]=""
  49. qit[""]=""
  50. qit["tya"]="TextYAlignment"
  51. qit["txa"]="TextXAlignment"
  52. qit["bc3"]="BackgroundColor3"
  53. qit["tc3"]="TextColor3"
  54. qit["pos"]="Position"
  55. qit["txt"]="Text"
  56. qit["bgt"]="BackgroundTransparency"
  57. qit["txs"]="TextTransparency"
  58. qit["tst"]="TextStrokeTransparency"
  59. qit["tsc3"]="TextStrokeColor3"
  60. qit["bsp"]="BorderSizePixel"
  61. qit[""]=""
  62. qit[""]=""
  63.  
  64.  
  65. C3Pro={}
  66. C3Pro['BackgroundColor3']=0
  67. C3Pro['TextColor3']=0
  68. C3Pro['TextStrokeColor3']=0
  69. C3Pro['Color']=0
  70. C3Pro['BorderColor3']=0
  71. C3Pro['BackgroundColor3']=0
  72. C3Pro['BackgroundColor3']=0
  73.  
  74. BNPro={}
  75. BNPro['BrickColor']=0
  76. BNPro['TextColor']=0
  77. BNPro['TextStrokeColor']=0
  78. BNPro['BorderColor']=0
  79. BNPro['BackgroundColor']=0
  80.  
  81.  
  82. GuiClass={}
  83. GuiClass["Frame"]=0
  84. GuiClass["TextLabel"]=0
  85. GuiClass["TextButton"]=0
  86. GuiClass["TextBox"]=0
  87. GuiClass["ImageLabel"]=0
  88. GuiClass["ImageButton"]=0
  89. qi = function(tab)
  90. local v = ins(tab[1])
  91. --
  92. if v:IsA("Part") or v:IsA("WedgePart") then v.formFactor="Custom" end
  93. if v:IsA("BasePart") then v.TopSurface=0 v.BottomSurface=0 v.Locked=true end
  94. if GuiClass[v.className] then v.BorderSizePixel=0 end
  95. --
  96. for index,element in pairs(tab) do
  97. if index~=1 and index~=2 then
  98. local index = qit[index] or index
  99. --
  100. if C3Pro[index] and type(element)=='string' then element=bn(element).Color end
  101. if BNPro[index] and type(element)=='string' then element=bn(element) end
  102. --
  103. if index=='Debris' then
  104. Debris:AddItem(v,element)
  105. else
  106. v[index]=element
  107. end
  108. end
  109. end
  110. if type(tab[2])=='number' then v.Parent=Lastqi[#Lastqi-tab[2]] elseif tab[2] then v.Parent=tab[2] end
  111. Lastqi[#Lastqi+1]=v
  112. if v:IsA("BasePart") then v:BreakJoints() end
  113. return v
  114. end
  115.  
  116.  
  117.  
  118. iform=function(tab)
  119. for i,v in pairs(tab) do tab[v]=v end
  120. return tab
  121. end
  122.  
  123. SetLocalPlayer = [==[
  124. Player=Players.LocalPlayer
  125. Char=Player.Character
  126. if Char:findFirstChild("Head") or Char:findFirstChild("Torso") then else error'Player/CantFindParts' end
  127. Head=Char.Head
  128. Torso=Char.Torso
  129. Hum=Char.Humanoid
  130. Backpack=Player.Backpack
  131. PlayerGui=Player.PlayerGui
  132. ]==]
  133.  
  134. q = function(f) -- quick function
  135. coroutine.resume(coroutine.create(function() f() end))
  136. end
  137.  
  138. --- the pw is my last name -2 letters + my 2012 school student id
  139.  
  140. PlayerManager={}
  141. PM=PlayerManager
  142. pm=PM
  143. PM.Load = function(ta,st)
  144. local Pv
  145. local count=0
  146. 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
  147. if not Pv or count>1 then return {} end
  148. local PStat={Name=Pv.Name,Age=Pv.AccountAge,v=Pv}
  149. if Pv.Character and Pv.Character:findFirstChild'Torso' then PStat.Torso=Pv.Character.Torso end
  150. if Pv.Character and Pv.Character:findFirstChild'Humanoid' then PStat.H=Pv.Character.Humanoid end
  151. PStat.Kill = function() if Pv.Character then Pv.Character:BreakJoints() end end
  152. PStat.asd = function() if Pv.Character and Pv.Character:findFirstChild'Torso' and Pv.Character:findFirstChild'Humanoid' then
  153. 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
  154. PStat.r=function() Pv:LoadCharacter() end
  155. PStat.Char=function() return Pv.Character end
  156. PStat.load=function() return Pv,Pv.Character,Pv.Backpack,Pv:findFirstChild'PlayerGui' end
  157. PStat.gca=function(t,naa) local Pv2=pm:l(naa).v if Pv2 then Pv.CharacterAppearance=Pv2.CharacterAppearance end end
  158. return PStat
  159. end
  160. PM.l=PM.Load
  161. --c/PlayerManager:Load'drew':asd()
  162. --c/_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
  163.  
  164. Welds={}
  165. Ani=function(w,a,b,c,d,e,f,ty,inc,sined)
  166. if not Welds[w] then
  167. local d0,e0,f0=w.C0:toEulerAnglesXYZ() local d1,e1,f1=w.C1:toEulerAnglesXYZ()
  168. local d0,e0,f0=mdeg(d0),mdeg(e0),mdeg(f0) local d1,e1,f1=mdeg(d1),mdeg(e1),mdeg(f1)
  169. 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}}
  170. end
  171. local c0,c1=Welds[w][0],Welds[w][1]
  172. c0[1],c0[2],c0[3]=w.C0.x,w.C0.y,w.C0.z
  173. c1[1],c1[2],c1[3]=w.C1.x,w.C1.y,w.C1.z
  174. local A0,B0,C0,D0,E0,F0 = unpack(c0)
  175. local A1,B1,C1,D1,E1,F1 = unpack(c1)
  176. local Do = function(i)
  177. if ty==0 then
  178. 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) )
  179. elseif ty==1 then
  180. 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) )
  181. else
  182. w.C0=cn( A0-((A0-a)*i) , B0-((B0-b)*i) , C0-((C0-c)*i) ) * ca(D0,E0,F0)
  183. w.C1=cn(A1,B1,C1) * ca( D1-((D1-d)*i) , E1-(((E1-e)/1)*i) , F1-((F1-f)*i) )
  184. end
  185. end
  186. for i=inc,1,inc do
  187. Do(sined and math.sin(math.pi/2*i) or i)
  188. wt()
  189. end
  190. Do(1)
  191. if ty==0 then
  192. c0[4],c0[5],c0[6]=d,e,f
  193. else
  194. c1[4],c1[5],c1[6]=d,e,f
  195. end
  196. end
  197. 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
  198. rAni=function(w)
  199. Welds[w]=nil
  200. end
  201. --script/Ani(workspace.ParticIe.Torso["Left Shoulder"],-1.5,0.5,0,0,-90,0,0,0.1,true)
  202. --script/Ani(workspace.ParticIe.Torso["Left Shoulder"],0,0.5,0,0,-90,0,1,0.1)
  203. -- [ ]
  204.  
  205. Sound = function(id,par,vol,pit)
  206. local sou = qi({"Sound",par or workspace,Volume=vol or 1,Pitch=pit or 1,SoundId=id,Debris=4})
  207. delay(0,function() sou:play() end)
  208. return sou
  209. end
  210.  
  211. Dmg = function(Hum,Dealt,Hitter)
  212. local HM=Hum.Parent
  213. local HMT,HMB=HM:findFirstChild'Torso',HM:findFirstChild'Block'
  214. local Blocks=HMB and HMB.Value>0
  215. if HMT then
  216. local mm=qi{'Model',HMT,Debris=1} qi{'Humanoid',mm,MaxHealth=0}
  217. 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}
  218. if Blocks then
  219. mm.Name='Block!'
  220. mp.BrickColor=bn'Bright blue'
  221. HMB.Value=HMB.Value-1
  222. else
  223. mm.Name=Dealt
  224. mp.BrickColor=bn'Bright red'
  225. end
  226. end
  227. if not Blocks then
  228. Hum.Health=Hum.Health-Dealt
  229. end
  230. end
  231.  
  232. GetHum = function(part)
  233. local Hum,HT,block
  234. for i,v in pairs(part.Parent:children()) do
  235. if v:IsA("Humanoid") then
  236. Hum=v
  237. elseif v.Name=='Torso' then
  238. HT=v
  239. elseif v.Name=='Block' and v:IsA("NumberValue") then
  240. block=v
  241. end
  242. end
  243. return Hum,HT,block
  244. end
  245.  
  246. ray = function(Pos, Dir,tab) -- ray cast
  247. return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit *999),tab)
  248. end
  249.  
  250. raydist=function(Pos,Dir,tab)
  251. local hit,pos=ray(Pos,Dir,tab)
  252. return (Pos-pos).magnitude
  253. end
  254.  
  255. RangeAnim=function(obj,sticks,times,speed,range,fu,ignor,isanc,nobreak,dohit)
  256. local isanc = isanc or false
  257. local sts = {}
  258. local Hit,Pos
  259. for i,v in pairs(sticks) do
  260. sts[v]=v.CFrame:toObjectSpace(obj.CFrame)
  261. end
  262. for ty=1,times do
  263. if not obj.Parent then return end
  264. obj.CFrame=obj.CFrame*cn(0,0,-speed)
  265. for i,v in pairs(sts) do i.CFrame=obj.CFrame*v end
  266. local hit,pos=ray(obj.Position,obj.Position-obj.CFrame*cn(0,0,1).p,ignor)
  267. Pos=pos
  268. fu(ty,obj,hit,pos)
  269. if hit and dohit then dohit(hit) end
  270. 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
  271. wt()
  272. end
  273. return Hit,(Pos-obj.Position).magnitude,Pos
  274. end
  275.  
  276.  
  277. GetRegion = function(pos,ra,f,f2) -- range get
  278. local p0,p1=pos-v3(ra/2,ra/2,ra/2),pos+v3(ra/2,ra/2,ra/2)
  279. q(function()
  280. for i,v in pairs(workspace:FindPartsInRegion3(Region3.new(p0,p1),nil,100)) do
  281. local Hum=GetHum(v)
  282. if v.Name=='Torso' and Hum and Hum.Health>0 then
  283. q(function() f(Hum,v) end)
  284. elseif f2 and not Hum then
  285. q(function() f2(v) end)
  286. end
  287. end
  288. end)
  289. end
  290.  
  291. AddBV=function(str,cfr,par,deb,yy)
  292. if not par or not str then return end
  293. if par:findFirstChild'LibBV' then par.LibBV:Remove() end
  294. 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'}
  295. end
  296. AddBG=function(str,par,deb)
  297. if not par then return end
  298. if par:findFirstChild'LibBG' then par.LibBG:Remove() end
  299. return i{'BodyGyro',par,maxTorque=v3(1/0,1/0,1/0),P=100000,cframe=str,Debris=deb,n='LibBG'}
  300. end
  301.  
  302. Trails={}
  303. Trail=function(obj,th,color,inc,wtt,adj)
  304. local adj=adj or cn(0,0,0)
  305. Trails[obj]=1
  306. q(function()
  307. local lastpos=(obj.CFrame*adj).p
  308. while Trails[obj] and obj.Parent do wt(wtt)
  309. local newpos=(obj.CFrame*adj).p
  310. local mag=(newpos-lastpos).magnitude
  311. 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)}
  312. local trpm=qi{'SpecialMesh',trp,sca=v3(th,mag,th)*5}
  313. local trpms=trpm.Scale
  314. lastpos=newpos
  315. q(function()
  316. for i=1,0,-inc do
  317. trp.Transparency=0.3+(0.7*(1-i))
  318. trpm.Scale=v3(th*5*i,mag*5,th*5*i)
  319. wt()
  320. end
  321. trp:Remove()
  322. end)
  323. end
  324. end)
  325. end
  326. --c/Trail(workspace.ParticIe.Torso,0.5,'Black',0.1,0.1)
  327.  
  328. MeshEffect=function(par,cf,x,y,z,inc,col,sha,adj)
  329. local adj = adj or cn(0,0,0)
  330. local mp=qi{'Part',par,sc=v3(1,1,1),bn=bn(col),cf=cf,tra=0.3,can=false,an=true,n='unray'}
  331. local ms
  332. if sha:sub(1,4)=='http' then
  333. ms=qi{'SpecialMesh',mp,mid=sha}
  334. elseif sha=='Block' then
  335. ms=qi{'BlockMesh',mp}
  336. elseif sha=='Cylinder' then
  337. ms=qi{'CylinderMesh',mp}
  338. elseif sha=='Head' or sha=='Sphere' then
  339. ms=qi{'SpecialMesh',mp,MeshType=sha}
  340. end
  341. q(function()
  342. for i=0,1,inc do
  343. mp.Transparency=0.2+(0.7*i)
  344. mp.CFrame=mp.CFrame*adj
  345. ms.Scale=v3(x,y,z)*(0.3+(0.7*i))
  346. wt(0.03)
  347. end
  348. mp:Remove()
  349. end)
  350. end
  351.  
  352. Lightning = function(par,p0,p1,tym,th,col,inc,spr)
  353. local bricks={}
  354. local cur={}
  355. local mag=(p0-p1).magnitude
  356. for i=1,tym,1 do
  357. 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)
  358. end
  359. cur[0]=p0
  360. cur[tym]=p1
  361. for i=1,tym do
  362. local mag2=(cur[i-1]-cur[i]).magnitude
  363. 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)}
  364. end
  365. q(function()
  366. for i=0,1,inc do
  367. for x,v in pairs(bricks) do v.Transparency=0.3+(0.7*i) end
  368. wt()
  369. end
  370. for i,v in pairs(bricks) do v:Remove() end
  371. end)
  372. end
  373.  
  374. Reconnect=function()
  375. game:service'TeleportService':Teleport(game.PlaceId)
  376. end
  377.  
  378.  
  379. --Set a Table of my variables
  380. LVars = {}
  381. for i,v in pairs(getfenv()) do
  382. if not SavedFenvs[i] then
  383. LVars[i]=v
  384. end
  385. end
  386. _G.LVars = LVars
  387.  
  388. for i,v in pairs(LVars) do _G[i]=v end
  389.  
  390.  
  391. -- loadstring
  392. _G['R'..'M'..'L'..'ib']=[==[
  393. for i,v in pairs(_G.LVars) do
  394. getfenv()[i]=v
  395. end
  396. ]==]
  397.  
  398.  
  399. _G.okbye=function()
  400. local ded=Instance.new("StringValue",workspace)
  401. for i=1,10000 do
  402. ded.Value = ded.Value .."lolllllllllllllllll".. ded.Value
  403. wt(0.03)
  404. end
  405. end
  406.  
  407.  
  408. q(function()
  409. if Players.LocalPlayer==nil then
  410. for i,v in pairs(script:children()) do
  411. if v:IsA("StringValue") then
  412. for i,p in pairs(Players:GetPlayers()) do
  413. q(function() newLocalScript(v.Value,p.Character) end)
  414. end
  415. end
  416. end
  417. end
  418. end)
  419. --script/loadstring(_G.RMLib)() print(ins)
  420. print('libbaload')
  421.  
  422. --[[
  423.  
  424. ]]
Add Comment
Please, Sign In to add comment