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.
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.