I’ve had this question for a while, what is self, how do I use it and what is it used for? If you have no idea what I am talking about, take a look at this code sample I found in the dev forum below.
function Appliance:PerformAction()
coroutine.resume(coroutine.create(function()
while true do
wait(self.ActionTimer) -- self.ActionTimer varies depending on the frequency of an object.
print("I'm a potato")
end
end))
end