What is a function used for?
A function is a set of things that happens when it is called.
--Here is one way to do it local function Func () print("Hello!") end --Some other code can go here Func() -- Heres a way for it to wait for something to happen! you dont need to set it up like this but i prefer this way workspace.BasePlate.Changed:connect(function() print("Something happened to the plate!") end) --Heres the other way local function Listen() print("Something happened to the plate!") end workspace.BasePlate.Changed:connect(Listen)