Hello everyone! I wanna make a character glow like this:
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
Hello everyone! I wanna make a character glow like this:
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
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
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
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:
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