I need to make my game have admin only gear and player only gear. I need it to only let a of my choice have gear.
✓ ANSWER ACCEPTED
How Do I Make User Only Gear?
2 answers
✓ Accepted answer
I didn't really get what you was meant so this might not be right, but did you even attempt this?
function onPlayerEntered(player)
if string.lower(player.Name)==string.lower("NAMEHERE") then
game.Lighting.GEARNAMEHERE:Clone().Parent = player.Backpack
end
end
game.Players.PlayerAdded:connect(function(player)
if player.name == "tkdrocks2017" then
print("GotThru")
game.Lighting.Test:Clone().Parent = game.Players.Player1.Backpack
end
end)
This should work; let me know if it doesn't.
To test it in studio, use this code (Put it in StarterGui with a button):
function onClicked()
game.Lighting.Test:Clone().Parent = game.Players.Player1.Backpack
end
script.Parent.MouseButton1Down:connect(onClicked)
The name of the tool I used was named "Test". Change that to the name of the tool of your liking.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Lol I forgot the ends ;/ Yeah just place 2 ends below like tkdrocks2017 did.
Nvm, I edited the post :P