Parent an instance.new object to all the children of a player

Hi, please help me real quick with an issue

  1. What do you want to achieve? I need to create with Instance.new a ‘Highlight’ and parent it to all of a player’s children

  2. What is the issue? I can’t figure out how to do it

  3. What solutions have you tried so far? I looked around on the dev forum but couldn’t found that works

please help me, my game is almost done and this is the last detail missing

1 Like

You can just parent the Highlight to the players character and it will apply to all the bodyparts

local Players = game:GetService("Players")
local player = Players.LocalPlayer

player.CharacterAdded:Connect(function(char)
  local hil = Instance.new("Highlight")
  hil.Parent = char
end)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.