How to make an part fades glow ,Normal to Neon

  1. What do you want to achieve? Keep it simple and clear!
    I want to make an part slowly becomes Neon
  2. What is the issue? Include screenshots / videos if possible!

They slowly fades to…


3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
Theres no solutions in Developer Hub ,so maybe this becomes OP

I dont think if this texture i should use

I don’t think that’s really possible, but you can try making 2 parts, one that’s neon, and one that’s plastic, and tween the transparency of the plastic one until its invisible.

I would love to see other comments though.

5 Likes

i’ve got an idea: it goes from low reflectivity plastic to the neon part

So here’s a way to do what the post above me said.
First, make a (folder, model, idk) that contains 2 parts: one whos material is set to plastic, and another with the exact same position, size, shape and color, and its material is set to neon. Set the plastic brick’s transparency to be 1 and the neon’s to be 0. Now, make a script that just interpolates between the two, and put it in the same folder/model the two parts are. Now, we’re not gonna be like the dumb free model makers that don’t know how to use loops, we’re gonna use TweenService.
What this script does is that it slowly changes the transparency of the 2 parts so it gives the illusion that the plastic part is turning into neon.
Just read this article, i’m wayy to lazy to describe this in detail:

Here is the code:

local tweens = game:GetService("TweenService")
local plastic = script.Parent. -- put the name of the plastic part here
local neon = script.Parent. -- put the name of the neon part here
local pgoal = {Transparency = 1}
local ngoal = {Transparency = 0}
local tweeninfo = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.In, -1, true, 0)
local ptween = tweens:Create(plastic, tweeninfo, pgoal)
local ntween = tweens:Create(plastic, tweeninfo, pgoal)
ptween:Play()
ntween:Play()

This repeats every time, so if you only want to change that, change the -1 to a 0 and the true to a false (if you need more info, just read the article I trhew at you)
Also, I just realized that um… This code isn’t very pretty

2 Likes

It will at best fade to the other a bit then kind of pop in at the end.
SkellytonJAcoboiskaka1121 Ideal would work out better than a fade to for a smoother effect.
(in my opinion)

Here is a crazy workaround … still has a bit of a pop to it but works a lot better for being smooth.
Testing with a part on the workspace.

task.wait(3)

local part = workspace:WaitForChild("Part")
local cover = part:Clone()

cover.Size = part.Size + Vector3.new(0.01, 0.01, 0.01)
cover.CanCollide = false
cover.Transparency = 0
cover.Parent = workspace

task.wait(0.33)
part.Material = Enum.Material.Neon

local tweenService = game:GetService("TweenService")
local info = TweenInfo.new(1, Enum.EasingStyle.Linear)
local goal = {Transparency = 1}
local tween = tweenService:Create(cover, info, goal)
tween:Play() tween.Completed:Wait() 
cover:Destroy()
3 Likes

Ok ,i would use for my new project called Atari Blackout

1 Like

local info = TweenInfo.new(0.5, Enum.EasingStyle.Linear)
looks pretty smooth without that pop at the end.

I should use an solid white color to make the transparency fade

A dimmer color of the neon part shifting to a glow.

task.wait(3)

local part = workspace:WaitForChild("Part")
local tweenService = game:GetService("TweenService")
part.Color = Color3.fromRGB(117, 80, 21) -- color of the neon part 

local info = TweenInfo.new(1, Enum.EasingStyle.Circular, Enum.EasingDirection.In)
local goal = {Color = Color3.fromRGB(255, 113, 47)}
local tween = tweenService:Create(part, info, goal)
tween:Play() tween.Completed:Wait()