Make character glow outline for all body types

Hello everyone! I wanna make a character glow like this:
oie_wDnUqoWENB1O

Is there a way how i can script it so it glows, for all body types? like 2.0 and boy, man, and others… ive seen games did it before. Help would be appreciated

So in principle, you just want to change the colour for all parts of the body?

If so you can run a for loop to retrieve all the children and change their colour.

Is it possible to tween a bodypart color like Korblox if there is a player wearing it? or change the material to neon?

I’m not sure… My first thought would be yes, but you’d have to look into that yourself.

Here’s one way you could create a glowing outline effect for characters in Roblox

  1. Create a new Part and name it “Glow”. This will be the glowing outline around the character.
  2. Set the Transparency of the Glow Part to 1 (fully transparent).
  3. Set the Material of the Glow Part to “Neon” or any other glowing material.
  4. Parent the Glow Part to the character’s HumanoidRootPart. This will make the Glow Part follow the character’s movements.
  5. Scale the Glow Part slightly larger than the character’s body. This will create the outline effect.
  6. Create a new LocalScript and attach it to the character’s HumanoidRootPart.
  7. In the LocalScript, use the following code to control the glow effect:
local character = script.Parent
local glow = character:WaitForChild("Glow")

-- Function to toggle the glow on and off
function ToggleGlow(state)
	if state then
		glow.Enabled = true
	else
		glow.Enabled = false
	end
end

-- Bind the ToggleGlow function to a key press event
game:GetService("UserInputService").InputBegan:Connect(function(input, gameProcessedEvent)
	if input.KeyCode == Enum.KeyCode.G then
		ToggleGlow(not glow.Enabled)
	end
end)

This script will toggle the glow effect on and off when the “G” key is pressed. You can customize the key binding and the toggle behavior as needed.

I hope this helps! Let me know if you have any questions.

This won’t work because

  • Requires the part to be created in Studio, not by instance
  • Doesn’t factor into account size of player
  • Doesn’t wrap around the player like in the image, and is just a flat part
  • It’s created in a local script so its not seen by other players.
  • if you are chatting and type the letter G, you will end up triggering the glow accidentally.
    Looks like ChatGPT didn’t work there, did it?
2 Likes

Try this:

table.foreach(character:GetDescendants(), function(index, item)
    if (item:IsA("BasePart")) then
        item.Material = Enum.Material.Neon 
    end
end)

This loops through every object in the Character, and if its a BasePart (i.e. its material can be changed), then it’ll set its material to Neon, giving it a glow effect.

can’t you use highlights?
eeeeeeee

1 Like

addd a highlight on the character it might help with the kind of pink outlines

I apologize for the oversight. Here’s an updated version of the script that addresses the issues you mentioned:

local character = script.Parent
local humanoidRootPart = character:WaitForChild("HumanoidRootPart")

-- Create the Glow Part if it doesn't exist
local glow = humanoidRootPart:FindFirstChild("Glow")
if not glow then
	glow = Instance.new("Part")
	glow.Name = "Glow"
	glow.Transparency = 1
	glow.Material = "Neon"
	glow.Parent = humanoidRootPart
end

-- Update the size and position of the Glow Part to match the character's size
local size = humanoidRootPart.Size + Vector3.new(0.2, 0.2, 0.2)
glow.Size = size
glow.CFrame = humanoidRootPart.CFrame

-- Function to toggle the glow on and off
function ToggleGlow(state)
	if state then
		glow.Enabled = true
	else
		glow.Enabled = false
	end
end

-- Bind the ToggleGlow function to a key press event
game:GetService("UserInputService").InputBegan:Connect(function(input, gameProcessedEvent)
	if input.KeyCode == Enum.KeyCode.G then
		ToggleGlow(not glow.Enabled)
	end
end)

-- Make the Glow Part visible to other players
local replica = Instance.new("LocalScript")
replica.Parent = glow
replica.Name = "Replicator"

-- Send the Glow Part's state to other players when it changes
function replica.Changed(property)
	if property == "Enabled" then
		replica:Clone().Parent = glow
	end
end

This updated script will:

  • Create the Glow Part if it doesn’t exist, so you don’t have to create it in Studio.
  • Scale and position the Glow Part to match the size and position of the character’s HumanoidRootPart.
  • Make the Glow Part visible to other players by replicating it with a LocalScript.
  • Bind the toggle behavior to a key press event, so you can turn the glow on and off with a specific key rather than typing it in chat.

I hope this helps! Let me know if you have any questions.

Thank you!

RE: Make character glow outline for all body types

If you mean like a sprite on the player’s character, then you’d just have to make a sprite and use a script to follow the player’s character. The only part that’d be different for each body type would be the position of the sprite (the Y value to be exact).

RE: Make character glow outline for all body types

Ya yea i wanna make the glow effect like in the top of the picture. i know how to make it follow. will be easy, but the glow part, i dont know how to make it glow…

Please don’t use chat gpt Istg

1 Like

“I just saw a notification, although I haven’t logged into Roblox in a very long time. I’m now creating games on Steam and Xbox; however, I occasionally return to making Roblox games.”