Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How Do I Make User Only Gear?

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.

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

2 comments

0

Lol I forgot the ends ;/ Yeah just place 2 ends below like tkdrocks2017 did.

0

Nvm, I edited the post :P

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.