So I have watched a youtube tutorial and something caught my attention, when he wrote his functions it was something like this
local function FunctionName(Player : Player , SelectedTool : Tool)
end
I’ve searched everywhere but didn’t find anything Can someone explain what does : do in this case? and if there is a wiki to it can you please link it to me?
I could be wrong, but I’m pretty sure those are just comparisons, and the : separates the difference between a custom parameter name (Examples being Plr, Onion, WasTriggered), and the actual ClassNames (Examples being Attachment, Tool, AngularVelocity)
So simply put, this function:
local function FunctionName(Player : Player , SelectedTool : Tool)
end
Is referring to 2 variables with separations, the Player being a Player Class Object, and the SelectedTool being a Tool Class Object
local function FunctionName(PlayerObject, ToolObject) -- It would basically be this
end