Confused with functions

  1. What do you want to achieve?
    I am currently trying to program an inventory system using ModuleScipts but the only problem I have is using functions.
    I want to make a function that prints out 3 words in order but instead, it ignores the first word and prints it as ‘nil’

  2. What is the issue?
    The function prints the 2nd word first and prints the first word as ‘nil’.

-- MODULESCRIPT in ServerScriptService
local Functions = {}

function Functions:Print3Words(Word1,Word2,Word3)

return Functions
--SCRIPT in ServerScriptService
local Module  = require(script.Parent.ModuleScript)

Module.Print3Words('Noob', 'Noob2', 'Milk')
  Noob2  -  Server - ModuleScript:4
  Milk  -  Server - ModuleScript:5
  nil  -  Server - ModuleScript:6

I don’t know what I did wrong here
Why does it ignore the first word and prints it as ‘nil’?

You set up the function with a colon : but call it with a ., I only really recommend using : if you want to use self, which in this case you don’t, change

function Functions:Print3Words(Word1,Word2,Word3)


function Functions.Print3Words(Word1,Word2,Word3)

Thanks! That really helped me a lot.