Colon usage and basepart meaning

Hello. I was just scripting and watching some tutorials when I passed by this line of code:

local baseplate: BasePart = workspace.Baseplate

I have no idea what the colon and basepart means, and would like to know that. I’ve tried printing the baseplates name and parent and got the following result: Baseplate, Workspace.

The colon is just there to show what the type of the variable is. For instance, if I do the following:

local Name: String = 'John'

It’s just declaring that the variable Name is a String. As far as I know, it doesn’t really change much.

1 Like