I wan't to know this because I'm trying to add a system where if you touch a specific brick you earn or lose cash, this is my current code,
local part = script.Parent
local player = game.Players.LocalPlayer
local function onTouch(hit)
end
script.Parent.Touched:Connect(onTouch)

4 comments
Where would I put the code I would wan't to run?
Also I wan't to define the player in the players tab not the workspace, does it identify the workspace player or the Players player?
The player in workspace is known as the character, this script defines the player located in "Players". You would put this script directly in the brick that you want touched.
Also, you would put any code you want to add below the 3rd line.