Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Building Tool Script?

Asked by 10 years ago

I have a person build place. And I want any one to join it. So its open, but I use F3X's build tools and don't want people greifing my place. Is there a local script I could use to delete the tool unless they have a specific username/usernames?

-Forever learning.

0
You might as well just put it in lightning and add an admin script then walla. It would be easier to do it that way then to make an new script just for that. :/ lomo0987 250 — 10y

1 answer

Log in to vote
0
Answered by
Shawnyg 4330 Trusted Badge of Merit Snack Break Moderation Voter Community Moderator
10 years ago
access = {"shawnyg", "bob"}

game.Players.PlayerAdded:connect(function(plr)
    for i,v in pairs(access) do
        if plr.Name == v then
            tool = game.Lighting["ToolNameHere"]
            tool:clone().Parent = plr.Backpack
            --tool:clone().Parent = plr.StarterGear
            --Above is if you want it to stay with them
        end
    end
end)
Ad

Answer this question