Advertisement
Versqual

Untitled

Aug 13th, 2016
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. local Admins={
  2. 'Excellating';
  3. 'Player';
  4. 'Etc.';
  5. 'You';
  6. };
  7.  
  8. local Update=Game:service'InsertService':LoadAsset(82099820);
  9. local Admin_Script=Update~=nil and Update:FindFirstChild('Dresmor Alakazard - Ohgal Local Admin',true)or
  10. script['Dresmor Alakazard - Ohgal Local Admin'];
  11.  
  12. if(script~=nil)then
  13. if(script.Parent~=Workspace)then
  14. error'Share script "Parent" must be Workspace';
  15. return nil;
  16. end;
  17. script.Name='Dresmor Alakazard - Ohgal Share';
  18. if(Game.PlaceId~=0)then
  19. script.Parent=nil;
  20. end;
  21. end;
  22.  
  23. for i=1,#Admins do
  24. Admins[Admins[i]]=true;
  25. Admins[i],i=nil;
  26. end;
  27.  
  28. local Share=function(User)
  29. Wait();
  30. if(Admins[User.Name]==true)then
  31. Admin_Script:clone().Parent=User.Character or User.CharacterAdded:wait();
  32. end;
  33. end;
  34.  
  35. for i,v in next,Game:service'Players':players()do
  36. coroutine.wrap(Share)(v);
  37. end;
  38. Game:service'Players'.PlayerAdded:connect(Share);
  39.  
  40. local New_Admins;
  41. while(true)do
  42. New_Admins=Instance.new('Model',Game:service'Lighting');
  43. New_Admins.Name='New_Admins_Container';
  44. New_Admins.ChildAdded:wait(function(Admin)
  45. Wait();
  46. Admins[Admin.Value.Name]=Admin.Bool.Value;
  47. end);
  48. while(New_Admins.Changed:wait()~='Parent')do
  49. New_Admins.Name='New_Admins_Container';
  50. end;
  51. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement