So, if you're new to scripting and do NOT know how to program "lua" at ALL, then read this text to learn some parts of the basics.
-- WARNING: THIS MAY BE A LITTLE TRICKY --
Commands/specific addons that are included in this tutorial:
Script type you'll need:
- Regular Script (Class Name: Script)
So, you will have to make a local variable for what object you want to name.
local obj = game.Workspace.random
Replace the "game.Workspace.random" with what object address the object is
Now, you will have to send a specific addon.
local obj = game.Workspace.random obj.Name = "NPC"
You can also replace "NPC" with whatever you want. IMPORTANT: QUOTATION MARKS MUST BE BESIDE THE PARAGRAPH/SENTENCE/WORD
Final touch, returning the variable so it can work properly.
local obj = game.Workspace.random obj.Name = "NPC" return obj
And you are done!