Functions

Functions activate the script when it is activated.  For instance an on click script.  If you say Function onClicked() the brick will need a click detector to "sense" the click.  Their are a number of functions their will be a list of the most useful ones in Roblox at the bottom.  The function we will be using is ontouch, and it will make your character fast.  A main thing you have to remember is to end the function.Preparation: Insert a brick and put a script in it.


The Transition stage: part Touch characters speed is 100 end function

Final stage:
 function partTouched(toucher)
  toucher.Parent.Humanoid.WalkSpeed = 100
end 
script.Parent.Touched:connect(partTouched)

Function list:
onTouched
onChatted
onClicked

(at the end of the script you must put the connect otherwise it won't work)