How could I make a tool that only a certain player could pick up?
example : a person named “zxdeathdarkxz” needs a certain tool, but when I use the script only him has the tool. Nobody else in the server has it.
could anyone help me?
How could I make a tool that only a certain player could pick up?
example : a person named “zxdeathdarkxz” needs a certain tool, but when I use the script only him has the tool. Nobody else in the server has it.
could anyone help me?
The easiest way to go about this is just to insert the tool into player.Backpack using a script.
But if you don’t want to do that, you could always set up a few logic gates that test for the players. You could make it test to see if hit.Parent == chosenPlayer and then give them the tool. I recommend looking at the humanoid.Touch API for Roblox. Might also want to look at the basepart.Touched API too
I hope this answered your question.
If you need anymore help on this topic reply please!
You should commission a scripter to make this for you. You can find someone in many places, for example #collaboration:recruitment
Hey @zXDeathDarkXz! ![]()
This is VERY easy, that’s why I’m here to help you!
local players = {"Characters Name"}
local tool = game.ServerStorage.NameOfTool
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(chr)
for i = 1, #players do
if players[i] == plr.Name then
tool:Clone().Parent = plr:WaitForChild("Backpack")
end
end
end)
end)
If you want multiply players do
local players = {"Characters Name", "Characters Name"}
local tool = game.ServerStorage.NameOfTool
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(chr)
for i = 1, #players do
if players[i] == plr.Name then
tool:Clone().Parent = plr:WaitForChild("Backpack")
end
end
end)
end)
(Put the tool in serverstorage)
Thanks!
I’ll use this.
I hope you have a great day!