local function OnCharacterAdded(Character)
Player.CharacterAdded:Connect(function(Character)
local LeftHand = Character:WaitForChild("LeftHand")
local Attachment = Instance.new("Attachment",LeftHand)
Attachment.Name = "Attachment1"
end)
end
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(OnCharacterAdded)
end)
for _, Player in ipairs(game.Players:GetPlayer()) do
local Character = Player.Character or Player.CharacterAdded:Wait()
OnCharacterAdded(Character)
end
In this case, it seems like it’s just a problem with roblox’s explorer being lazy. I have had this same issue before. I wouldn’t worry about it, as long as it prints fine and you can still reference it from code.
You may be experiencing this issue:
If this really bugs you a lot, try restarting studio. It often whips the explorer back into shape.
Thanks for the help everyone. I have figured Client Explorer does not update properly for me.
It does print attachment1 which means the script has found the attachment.