Script Templates Plugin

script-templates

Script Templates Plugin

This is a simple plugin that makes it super easy to insert Class and Subclass ModuleScript templates with the simple click of a button!

server_components ← This is the button icon, courtesy of FatCow.

Features

  • Zero UI: One toolbar, one button. Couldn’t be simpler.
  • Quick Rename: Rename the ModuleScript to quickly rename the class!
  • Quick Insertion: Inserts into first selected object or ServerScriptService.
  • Class OR Subclass: Inserted ModuleScripts are tagged so that if you have a tagged ModuleScript selected, you’ll insert the subclass template instead!
  • Unique Names: Inserted ModuleScripts to the same parent are named Class, Class2, Class3… you get the idea.
  • Quiet: It never prints anything to the Output! (Except…see below)
  • Update Alerts: Checks for new versions automatically and prints when an update is available.

Template Previews

Class template
local Class = {}
Class.__index = Class

function Class.new()
	local self = setmetatable({
		
	}, Class)
	return self
end

return Class
Subclass template
local super = require(script.Parent)
local Class = setmetatable({}, {__index = super})
Class.__index = Class

function Class.new()
	local self = setmetatable({
		
	}, Class)
	return self
end

return Class

Install to Roblox Studio:

https://www.roblox.com/library/4596373254/Script-Templates

Read on my website, ozzypig.com →

Let me know if this plugin was useful to you here or via Twitter.

24 Likes

The wear hat plugin is broken, are you fixing it any time soon or have you scrapped it :frowning:

1 Like

Simple but very nice and handy. Thank you!

4 Likes