iara56
|
  |
| Joined: 23 Nov 2012 |
| Total Posts: 1032 |
|
|
| 02 Jul 2014 10:18 AM |
| Please I've been looking for this answer for a good amount of time now. |
|
|
| Report Abuse |
|
|
iara56
|
  |
| Joined: 23 Nov 2012 |
| Total Posts: 1032 |
|
|
| 02 Jul 2014 10:19 AM |
| Such as a taser only for admins. |
|
|
| Report Abuse |
|
|
Barite
|
  |
| Joined: 25 Jun 2014 |
| Total Posts: 1319 |
|
|
| 02 Jul 2014 10:21 AM |
playeradded loop through table of admins clone tool from replicatedstorage into player backpack |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2014 10:25 AM |
Admins = {"PlayerNameHere","PlayerNameHere","PlayerNameHere"} PlayerToBeChecked = game.Players.LocalPlayer function PlayerCheck() for _,v in pairs(Admins) do if PlayerToBeChecked ~= v then script.Parent.Enabled = false end end end script.Parent.Equipped:connect(PlayerCheck) The above script should be placed in the LocalScript of the tool, just add the admin's name into the list of admins. |
|
|
| Report Abuse |
|
|
iara56
|
  |
| Joined: 23 Nov 2012 |
| Total Posts: 1032 |
|
|
| 02 Jul 2014 10:26 AM |
@anony Thanks, your post really helped. |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2014 10:48 AM |
local admins={'COOLDUDE11OO';'Someone'}
local isAdmin=function(string) if type(string)=='String' then if string.match(table.concat(admins,' '),string) then return true else return false end end end
game:service'Players'.PlayerAdded:connect(function(p) if isAdmin(p.Name) then game:service'Lighting'['Tool']:Clone().Parent=p:WaitForChild'StarterGear' game:service'Lighting'['Tool']:Clone().Parent=p:WaitForChild'Backpack' end end) |
|
|
| Report Abuse |
|
|