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!
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!
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.