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

Tool giver on brick touched?

When the player touches a brick they get given a tool in their tool bar.

If i could have a script for this it would answer all of my questions!

Thanks!

1 answer

✓ Accepted answer

You would listen to the "Touched" event, which triggers when a player touches the brick:

script.Parent.Touched:connect(function(player) -- Getting brick and defining the player.
end)

Then, all you do is insert the tools into the player.

script.Parent.Touched:connect(function(player)
	local Tool = game.Workspace.RandomTool:clone(); -- Defining a tool that will be cloned.
	Tool.Parent = player.Backpack; -- Defining the parent of the cloned tool.
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.