-- Place this in a Server Script (e.g., inside a ClickDetector or Tool) local hat = script.Parent -- Reference to the hat accessory local character = hat.Parent local head = character:WaitForChild("Head")