I made a fun little gradient nametag module

Hi there!

I’ve been a little too lazy to properly create good-looking nametags, so i’ve made a module for it!

get it here! SiebeYolo's Fancy Nametag Module - Roblox

Some sample code:

local nametag = require(6638489340) -- Get the module

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(char)
		
		
		nametag.Create(					-- Create nametag
			char, 						-- Player's character
			Color3.new(1, 0.666667, 0), -- First gradient color (Top)
			Color3.new(1, 0.2, 0)       -- Second gradient color (Bottom)
			)
		
		
	end)
	
	
end)

The result:

Edit: Rainbow nametags!
To make your nametag into a rainbow nametag, just add “Rainbow” or “rainbow” like this:

local nametag = require(6638489340) -- Get the module

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(char)
		
		
		nametag.Create(					-- Create nametag
			char, 						-- Player's character
			Color3.new(1, 0.666667, 0), -- First gradient color (Will be ignored)
			Color3.new(1, 0.2, 0) ,     -- Second color(will be ignored)
            "Rainbow",       -- Name of the effect we'll be using
             5 -- Rainbow wave speed (optional)
			)
		
		
	end)
	
	
end)
14 Likes

I would recommend adding some cool special effects or people will get mad you made a community resource for inserting an instance xD

2 Likes

May I ask why you felt the need to make this resource require other modules? Couldn’t you just have created this in a simple ServerScript? What you displayed here does not require the use of any external module

Just like @Zued pointed out, this is legit just inserting a couple instances and calling it a resource.

This looks cool. I probably add it to my game. :+1: Sorry if this is a bad question because I am not good at scripting. Is there a way to make your title rainbow and change colors?

1 Like

I wanted to share this for people that have little to no scripting experience.
I will ofcourse add some effects in the future, but I thought sharing it already was a good idea, but yeah, it clearly wasn’t.

You can only add two colors for now but i’ll make sure to add some effect options soon.

It’s a good idea sharing it to people

1 Like

I’ve updated the module, you can add a rainbow effect now.

Very nice master Siebe. Good work, sir.

1 Like

Thank you master Galactiq, appreciate it.

1 Like