Ok so, i don't know if any of yall played east brickton, but when you equip a gun or a tool, you can say /give name of the player and it will give to the other player the tool, i need a script that can help me with that
COMMUNITY QUESTION
Ok so, i need to make a script that allows me to give a tool to another player, can anyone help me?
2 answers
This is not a request site. Show us the code you have problems and bugs with before blindly asking for a script. On another note, use a remote event for when a player inputs the command, then when its fired in the server check if player has the permissions to use the command along with the parameters sent which is the player the command is being used on. Then just insert the tool into the player's folder.
Make a tool then put it in serverstorage, you can use :Clone() on the tool and set the parent to the players backpack you want to give it to.
Example:
game.ReplicatedStorage.RemoteEvent.onServerEvent:Connect(function(player, givetoplayer)
game.ServerStorage.Tool:Clone().Parent = game:GetService("Players")[givetoplayer].Backpack
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
