Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Admins={
- 'Excellating';
- 'Player';
- 'Etc.';
- 'You';
- };
- local Update=Game:service'InsertService':LoadAsset(82099820);
- local Admin_Script=Update~=nil and Update:FindFirstChild('Dresmor Alakazard - Ohgal Local Admin',true)or
- script['Dresmor Alakazard - Ohgal Local Admin'];
- if(script~=nil)then
- if(script.Parent~=Workspace)then
- error'Share script "Parent" must be Workspace';
- return nil;
- end;
- script.Name='Dresmor Alakazard - Ohgal Share';
- if(Game.PlaceId~=0)then
- script.Parent=nil;
- end;
- end;
- for i=1,#Admins do
- Admins[Admins[i]]=true;
- Admins[i],i=nil;
- end;
- local Share=function(User)
- Wait();
- if(Admins[User.Name]==true)then
- Admin_Script:clone().Parent=User.Character or User.CharacterAdded:wait();
- end;
- end;
- for i,v in next,Game:service'Players':players()do
- coroutine.wrap(Share)(v);
- end;
- Game:service'Players'.PlayerAdded:connect(Share);
- local New_Admins;
- while(true)do
- New_Admins=Instance.new('Model',Game:service'Lighting');
- New_Admins.Name='New_Admins_Container';
- New_Admins.ChildAdded:wait(function(Admin)
- Wait();
- Admins[Admin.Value.Name]=Admin.Bool.Value;
- end);
- while(New_Admins.Changed:wait()~='Parent')do
- New_Admins.Name='New_Admins_Container';
- end;
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement