Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I make a script that makes you start with a tool? [closed]

Asked by
Tripyfy 28
6 years ago

Hello! I'm making a game and I need a script that you join the server and you start with a tool in your hand (equipped) How could I do that? Thanks.

PD: The tool is in ServerStorage.

Closed as Not Constructive by RubenKan

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

Please provide explanation with your answers. Simply posting code does not spread knowledge of integral scripting processes which helps people understand the logic and reasoning behind your answer.
local tool = game.ServerStorage["TOOL NAME"]

game.Players.PlayerAdded:Connect(function(player)
    player.CharacterAdded:Connect(function(char)
        char:WaitForChild("Humanoid"):EquipTool(tool)
    end)
end)
Ad